-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](tvf) Partition columns in CTAS need to be compatible with the STRING type of external tables/TVF #35489
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
1 similar comment
|
run buildall |
TPC-H: Total hot run time: 41484 ms |
TPC-DS: Total hot run time: 172657 ms |
ClickBench: Total hot run time: 29.65 s |
|
run buildall |
TPC-H: Total hot run time: 41732 ms |
TPC-DS: Total hot run time: 171530 ms |
ClickBench: Total hot run time: 30.96 s |
|
run buildall |
TPC-H: Total hot run time: 40241 ms |
TPC-DS: Total hot run time: 168917 ms |
ClickBench: Total hot run time: 30.42 s |
|
run buildall |
TPC-H: Total hot run time: 40639 ms |
TPC-DS: Total hot run time: 167949 ms |
ClickBench: Total hot run time: 30.2 s |
|
run p0 external |
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
Outdated
Show resolved
Hide resolved
|
run buildall |
1 similar comment
|
run buildall |
TPC-H: Total hot run time: 41406 ms |
TPC-DS: Total hot run time: 168882 ms |
ClickBench: Total hot run time: 30.81 s |
morningman
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
run buildall |
TPC-H: Total hot run time: 39811 ms |
TPC-DS: Total hot run time: 174815 ms |
ClickBench: Total hot run time: 30.7 s |
|
run feut |
fe/fe-core/src/main/java/org/apache/doris/tablefunction/ExternalFileTableValuedFunction.java
Outdated
Show resolved
Hide resolved
|
run buildall |
TPC-H: Total hot run time: 39907 ms |
TPC-DS: Total hot run time: 173249 ms |
ClickBench: Total hot run time: 30.54 s |
morningman
left a comment
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.
LGTM
|
run p0 |
1 similar comment
|
run p0 |
|
run cloud_p1 |
…TRING type of external tables/TVF (#35489) Partition columns in CTAS need to be compatible with the STRING type of external tables/TVF 1. For TVF queries with partition columns in the file path, map these partition columns to the `VARCHAR(65533)` type. (Previously, they were of `STRING` type.) 3. If you use the `STRING` type of an external table as a partition column, CTAS will automatically convert it to `VARCHAR(65535)` type."
…TRING type of external tables/TVF (apache#35489) Partition columns in CTAS need to be compatible with the STRING type of external tables/TVF 1. For TVF queries with partition columns in the file path, map these partition columns to the `VARCHAR(65533)` type. (Previously, they were of `STRING` type.) 3. If you use the `STRING` type of an external table as a partition column, CTAS will automatically convert it to `VARCHAR(65535)` type."
) Fix 2 bugs: 1. introduced from #35489 When the target table is unpartitioned with text type column from external table, NPE will be thrown. Only happen when using old planner. The new planner works well. 2. If first column is varchar type, the new planner will change it to string type and then failed because first column can not be string type.
…che#39744) Fix 2 bugs: 1. introduced from apache#35489 When the target table is unpartitioned with text type column from external table, NPE will be thrown. Only happen when using old planner. The new planner works well. 2. If first column is varchar type, the new planner will change it to string type and then failed because first column can not be string type.
) Fix 2 bugs: 1. introduced from #35489 When the target table is unpartitioned with text type column from external table, NPE will be thrown. Only happen when using old planner. The new planner works well. 2. If first column is varchar type, the new planner will change it to string type and then failed because first column can not be string type.
Proposed changes
Issue Number: close #xxx
Partition columns in CTAS need to be compatible with the STRING type of external tables/TVF
For TVF queries with partition columns in the file path, map these partition columns to the
VARCHAR(65533)type. (Previously, they were ofSTRINGtype.)If you use the
STRINGtype of an external table as a partition column, CTAS will automatically convert it toVARCHAR(65535)type."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...