branch-2.1: [fix](parser) Syntax error for add partition with null null #45865 (#45913)

Cherry-picked from #45865

Co-authored-by: Uniqueyou <wangyixuan@selectdb.com>
This commit is contained in:
github-actions[bot]
2024-12-25 22:15:20 +08:00
committed by GitHub
parent c94ac6c9f8
commit bccfb04436
2 changed files with 66 additions and 0 deletions

View File

@ -3455,6 +3455,20 @@ partition_key_item_list ::=
{:
RESULT = Lists.newArrayList(new PartitionValue("", true));
:}
| partition_key_item_list:l COMMA KW_NULL
{:
l.add(new PartitionValue("", true));
RESULT = l;
:}
| KW_MAX_VALUE
{:
RESULT = Lists.newArrayList(PartitionValue.MAX_VALUE);
:}
| partition_key_item_list:l COMMA KW_MAX_VALUE
{:
l.add(PartitionValue.MAX_VALUE);
RESULT = l;
:}
;
partition_key_list ::=