Uh oh!
There was an error while loading. Please reload this page.
[fix](Tvf) return empty set when tvf queries an empty file or an error uri - #25280
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
BePPPower
commented
Oct 11, 2023
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Oct 11, 2023
TeamCity be ut coverage result: |
doris-robot
commented
Oct 11, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
| bool is_parse_name = false; | ||
| RETURN_IF_ERROR(_prepare_parse(&read_line, &is_parse_name)); | ||
| if (_file_reader->size() == 0) { |
There was a problem hiding this comment.
Need to add comment to explain why return OK when file size is 0
| RETURN_IF_ERROR(_line_reader->read_line(&ptr, &size, &_line_reader_eof, _io_ctx)); | ||
| if (size == 0) { | ||
| return Status::InternalError("The first line is empty, can not parse column names"); | ||
| return Status::OK(); |
| TNetworkAddress address = new TNetworkAddress(be.getHost(), be.getBrpcPort()); | ||
| try { | ||
| PFetchTableSchemaRequest request = getFetchTableStructureRequest(); | ||
| if (request == null) { |
BePPPower
commented
Oct 12, 2023
run buildall |
doris-robot
commented
Oct 12, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
BePPPower
commented
Oct 12, 2023
run buildall |
1 similar comment
BePPPower
commented
Oct 12, 2023
run buildall |
doris-robot
commented
Oct 12, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
doris-robot
commented
Oct 12, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
BePPPower
commented
Oct 12, 2023
run buildall |
doris-robot
commented
Oct 12, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
BePPPower
commented
Oct 12, 2023
run feut |
eada360 to
a51b15eCompareBePPPower
commented
Oct 13, 2023
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
doris-robot
commented
Oct 13, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
a51b15e to
df2fd0fComparedf2fd0f to
94d168bComparePR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
morningman
commented
Oct 13, 2023
run buildall |
doris-robot
commented
Oct 13, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
BePPPower
commented
Oct 13, 2023
run p0 |
BePPPower
commented
Oct 13, 2023
run buildall |
doris-robot
commented
Oct 13, 2023
(From new machine)TeamCity pipeline, clickbench performance test result: |
PR approved by at least one committer and no changes requested. |
…r uri (apache#25280) ### Before: return errors when tvf queries an empty file or an error uri: 1. get parsed schema failed, empty csv file 2. Can not get first file, please check uri. ### Now: we just return empty set when tvf queries an empty file or an error uri. ```sql mysql> select * from s3( "uri" = "https://error_uri/exp_1.csv", "s3.access_key"= "xx", "s3.secret_key" = "yy", "format" = "csv") limit 10; Empty set (1.29 sec) ```
…r uri (apache#25280) ### Before: return errors when tvf queries an empty file or an error uri: 1. get parsed schema failed, empty csv file 2. Can not get first file, please check uri. ### Now: we just return empty set when tvf queries an empty file or an error uri. ```sql mysql> select * from s3( "uri" = "https://error_uri/exp_1.csv", "s3.access_key"= "xx", "s3.secret_key" = "yy", "format" = "csv") limit 10; Empty set (1.29 sec) ```
…r uri (apache#25280) return errors when tvf queries an empty file or an error uri: 1. get parsed schema failed, empty csv file 2. Can not get first file, please check uri. we just return empty set when tvf queries an empty file or an error uri. ```sql mysql> select * from s3( "uri" = "https://error_uri/exp_1.csv", "s3.access_key"= "xx", "s3.secret_key" = "yy", "format" = "csv") limit 10; Empty set (1.29 sec) ```
…r uri (#25280) (#31110) return errors when tvf queries an empty file or an error uri: 1. get parsed schema failed, empty csv file 2. Can not get first file, please check uri. we just return empty set when tvf queries an empty file or an error uri. ```sql mysql> select * from s3( "uri" = "https://error_uri/exp_1.csv", "s3.access_key"= "xx", "s3.secret_key" = "yy", "format" = "csv") limit 10; Empty set (1.29 sec) ``` Co-authored-by: Tiewei Fang <43782773+BePPPower@users.noreply.github.com>
…r uri (apache#25280) (apache#31110) return errors when tvf queries an empty file or an error uri: 1. get parsed schema failed, empty csv file 2. Can not get first file, please check uri. we just return empty set when tvf queries an empty file or an error uri. ```sql mysql> select * from s3( "uri" = "https://error_uri/exp_1.csv", "s3.access_key"= "xx", "s3.secret_key" = "yy", "format" = "csv") limit 10; Empty set (1.29 sec) ``` Co-authored-by: Tiewei Fang <43782773+BePPPower@users.noreply.github.com>
Proposed changes
Issue Number:
Before:
return errors when tvf queries an empty file or an error uri:
Now:
we just return empty set when tvf queries an empty file or an error uri.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...