-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[enhance](nereids) SqlParser support load data into temporary partition #45025
Conversation
Change-Id: Id977545450b5d71da5ae932bd0b52a5dfdda8600
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Change-Id: I37e080786b56f5a12c7eac3a84e9301de66c6812
9790fe8
to
cdd856c
Compare
run buildall |
TPC-H: Total hot run time: 39809 ms
|
TPC-DS: Total hot run time: 197805 ms
|
ClickBench: Total hot run time: 33.03 s
|
run p0 |
@@ -927,7 +927,7 @@ identityOrFunction | |||
dataDesc | |||
: ((WITH)? mergeType)? DATA INFILE LEFT_PAREN filePaths+=STRING_LITERAL (COMMA filePath+=STRING_LITERAL)* RIGHT_PAREN | |||
INTO TABLE targetTableName=identifier | |||
(PARTITION partition=identifierList)? | |||
(partitionSpec)? |
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.
should also change from data
in L945 ?
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.
done
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.
will change it later
@@ -927,7 +927,7 @@ identityOrFunction | |||
dataDesc | |||
: ((WITH)? mergeType)? DATA INFILE LEFT_PAREN filePaths+=STRING_LITERAL (COMMA filePath+=STRING_LITERAL)* RIGHT_PAREN | |||
INTO TABLE targetTableName=identifier | |||
(PARTITION partition=identifierList)? | |||
(partitionSpec)? |
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.
there are two (PARTITION partition=identifierList)? ,please replace them both with (partitionSpec)? and continue the work
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.
done
run buildall |
1 similar comment
run buildall |
5c694a6
to
cdd856c
Compare
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…45025) Problem Summary: Currently, use DorisParser.g4 parse sql, and not support specified temporary partition while load data now. LOAD LABEL db.label ( DATA INFILE("hdfs://hdfs:9000/user/partition/partition_type") INTO TABLE `tb` TEMPORARY PARTITION (partition_g)) WITH BROKER "ahdfs" ( "username" = "xxx", "password" = "") PROPERTIES( "max_filter_ratio"="0.5" ) ERROR 1105 (HY000): errCode = 2, detailMessage = mismatched input 'TEMPORARY' expecting {')', ','}(line 1, pos xxx) This pr support specified temporary partition while load data, because load operation will backup to old optimizer, so only support specified temporary partition while load data can successfully load data into the temporary partition. TODO: 1.nereids need support load data to temporary partition. 2.nereids need support export data from temporary partition.
…45025) Problem Summary: Currently, use DorisParser.g4 parse sql, and not support specified temporary partition while load data now. LOAD LABEL db.label ( DATA INFILE("hdfs://hdfs:9000/user/partition/partition_type") INTO TABLE `tb` TEMPORARY PARTITION (partition_g)) WITH BROKER "ahdfs" ( "username" = "xxx", "password" = "") PROPERTIES( "max_filter_ratio"="0.5" ) ERROR 1105 (HY000): errCode = 2, detailMessage = mismatched input 'TEMPORARY' expecting {')', ','}(line 1, pos xxx) This pr support specified temporary partition while load data, because load operation will backup to old optimizer, so only support specified temporary partition while load data can successfully load data into the temporary partition. TODO: 1.nereids need support load data to temporary partition. 2.nereids need support export data from temporary partition.
…rary partition #45025 (#45228) Cherry-picked from #45025 Co-authored-by: zxealous <[email protected]>
…rary partition #45025 (#45227) Cherry-picked from #45025 Co-authored-by: zxealous <[email protected]>
Change-Id: Id977545450b5d71da5ae932bd0b52a5dfdda8600
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Currently, use DorisParser.g4 parse sql, and not support specified temporary partition while load data now.
This pr support specified temporary partition while load data, because load operation will backup to old optimizer, so only support specified temporary partition while load data can successfully load data into the temporary partition.
TODO:
1.nereids need support load data to temporary partition.
2.nereids need support export data from temporary partition.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)