Skip to content

Commit 4a9681e

Browse files
authored
fix(impala): fix alter table change statement (#332)
1 parent 2b0de6a commit 4a9681e

File tree

6 files changed

+1922
-1930
lines changed

6 files changed

+1922
-1930
lines changed

src/grammar/impala/ImpalaSqlParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ alterPartitionCache
169169
;
170170

171171
changeColumnDefine
172-
: KW_ALTER KW_TABLE tableNamePath KW_CHANGE KW_COLUMN columnSpecWithKudu
172+
: KW_ALTER KW_TABLE tableNamePath KW_CHANGE columnNamePath columnSpecWithKudu
173173
;
174174

175175
alterDropSingleColumn
@@ -635,7 +635,7 @@ kuduColumnDefinition
635635
;
636636

637637
columnSpecWithKudu
638-
: columnSpec? (kuduAttributes kuduAttributes*?)?
638+
: columnSpec (kuduAttributes kuduAttributes*?)?
639639
;
640640

641641
createColumnSpecWithKudu

src/lib/impala/ImpalaSqlParser.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)