Skip to content

Commit

Permalink
fix: #298 support hive set configuration properties
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Apr 20, 2024
1 parent fa30fe9 commit 9b67543
Show file tree
Hide file tree
Showing 6 changed files with 5,899 additions and 5,726 deletions.
6 changes: 6 additions & 0 deletions src/grammar/hive/HiveSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ execStatement
| mergeStatement
| prepareStatement
| executeStatement
| setConfigPropertiesStatement
;

loadStatement
Expand Down Expand Up @@ -2217,6 +2218,7 @@ constant
| booleanValue
| KW_NULL
| prepareStmtParam
| Identifier
;

prepareStmtParam
Expand Down Expand Up @@ -2898,6 +2900,10 @@ executeStatement
: KW_EXECUTE id_ KW_USING executeParamList
;

setConfigPropertiesStatement
: KW_SET Identifier (DOT Identifier)* EQUAL expression
;

//TODO: instead of constant using expression will provide richer and broader parameters
executeParamList
: constant (COMMA constant)*
Expand Down
3 changes: 2 additions & 1 deletion src/lib/hive/HiveSqlParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit 9b67543

Please sign in to comment.