diff --git a/src/jison/sql_create.jison b/src/jison/sql_create.jison index 7787c30..6d3b46d 100755 --- a/src/jison/sql_create.jison +++ b/src/jison/sql_create.jison @@ -1130,7 +1130,7 @@ HiveDelimitedRowFormat_EDIT ; ImpalaRowFormat - : 'DELIMITED' OptionalFieldsTerminatedBy OptionalLinesTerminatedBy + : 'DELIMITED' OptionalFieldsTerminatedBy OptionalLinesTerminatedBy OptionalWithSerdeproperties { if (!$2 && !$3) { $$ = { suggestKeywords: [{ value: 'FIELDS TERMINATED BY', weight: 2 }, { value: 'LINES TERMINATED BY', weight: 1 }] }; @@ -1143,8 +1143,8 @@ ImpalaRowFormat ; ImpalaRowFormat_EDIT - : 'DELIMITED' OptionalFieldsTerminatedBy_EDIT OptionalLinesTerminatedBy - | 'DELIMITED' OptionalFieldsTerminatedBy OptionalLinesTerminatedBy_EDIT + : 'DELIMITED' OptionalFieldsTerminatedBy_EDIT OptionalLinesTerminatedBy OptionalWithSerdeproperties + | 'DELIMITED' OptionalFieldsTerminatedBy OptionalLinesTerminatedBy_EDIT OptionalWithSerdeproperties ; OptionalFieldsTerminatedBy diff --git a/src/jison/sql_insert.jison b/src/jison/sql_insert.jison index 61dc992..4611b40 100755 --- a/src/jison/sql_insert.jison +++ b/src/jison/sql_insert.jison @@ -382,7 +382,7 @@ ImpalaInsertOrUpsertStatement_EDIT ImpalaInsertOrUpsertStatementWithoutCTE : ImpalaInsertOrUpsertLeftPart OptionalImpalaShuffleOrNoShuffle SelectStatement OptionalUnions - | ImpalaInsertOrUpsertLeftPart 'VALUES' '(' ImpalaRowValuesLists ')' + | ImpalaInsertOrUpsertLeftPart 'VALUES' ImpalaRowValuesLists ; ImpalaInsertOrUpsertStatementWithoutCTE_EDIT @@ -400,8 +400,8 @@ ImpalaInsertOrUpsertStatementWithoutCTE_EDIT | ImpalaInsertOrUpsertLeftPart_EDIT OptionalImpalaShuffleOrNoShuffle SelectStatement OptionalUnions | ImpalaInsertOrUpsertLeftPart OptionalImpalaShuffleOrNoShuffle SelectStatement_EDIT OptionalUnions | ImpalaInsertOrUpsertLeftPart OptionalImpalaShuffleOrNoShuffle SelectStatement OptionalUnions_EDIT - | ImpalaInsertOrUpsertLeftPart_EDIT 'VALUES' '(' ImpalaRowValuesLists ')' - | ImpalaInsertOrUpsertLeftPart 'VALUES' '(' ImpalaRowValuesLists_EDIT ')' + | ImpalaInsertOrUpsertLeftPart_EDIT 'VALUES' ImpalaRowValuesLists + | ImpalaInsertOrUpsertLeftPart 'VALUES' ImpalaRowValuesLists_EDIT ; ImpalaInsertOrUpsertLeftPart