-
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
[fix](parser) Syntax error for add partition with null null #45865
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
regression-test/suites/partition_p0/auto_partition/test_auto_list_partition_null.groovy
Outdated
Show resolved
Hide resolved
b02cf5a
to
8267636
Compare
run buildall |
TPC-H: Total hot run time: 39945 ms
|
run p0 |
TPC-DS: Total hot run time: 197684 ms
|
ClickBench: Total hot run time: 33.52 s
|
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.
see fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4#L681
. the Nereids seems already supported alter table add partition ...
. So we should only make sure the execution of Nereids is ok. ignore legacy planner.
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
``` mysql> alter table t add partition p1 values in (("1", NULL)); ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 1: alter table t add partition p1 values in (("1", NULL)) ^ Encountered: NULL Expected ```
``` mysql> alter table t add partition p1 values in (("1", NULL)); ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 1: alter table t add partition p1 values in (("1", NULL)) ^ Encountered: NULL Expected ```
#45865 (#45912) Cherry-picked from #45865 Co-authored-by: Uniqueyou <[email protected]>
#45865 (#45913) Cherry-picked from #45865 Co-authored-by: Uniqueyou <[email protected]>
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)