-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(format): refactor output format #5422
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Thanks for the contribution! Please review the labels and make any necessary changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
I think this is useful for the result cache cc @youngsofun @flaneur2020
The unit-test is skipped because the disk space is full:
Re-run the job to check it. |
@sundy-li Seems some tests break the unit-test in this patch. There is no space left for the CI, so the unit-test is skipped every time. |
Oops, it's not related to this patch, another PR has the same issue too: |
let column: &StringColumn = Series::check_get(column)?; | ||
let result: Vec<String> = column | ||
.iter() | ||
.map(|v| format!("{:?}", String::from_utf8_lossy(v))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need escape, but we can do it later.
Maybe related to our rust cache, I have reset it to see whether it works. |
@@ -186,6 +186,7 @@ fn test_query() { | |||
let mut mint = Mint::new("tests/it/testdata"); | |||
let mut file = mint.new_goldenfile("query.txt").unwrap(); | |||
let cases = &[ | |||
r#"select * from a limit 3 offset 4 format csv"#, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sundy-li where supposed to use the format in this SQL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the end of the sql.
Now unit tests have some bugs, I'll fix them later. |
Is test_unit able to run without hitting |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Summary about this PR:
Changelog
Related Issues
Fixes #5433