@@ -182,7 +182,7 @@ statement
182
182
KW_USING indexType=identifier
183
183
)? LEFT_PAREN multipartIdentifierPropertyList RIGHT_PAREN (KW_OPTIONS options=propertyList)? # createIndex
184
184
| KW_DROP KW_INDEX (ifExists)? identifier KW_ON KW_TABLE? tableName # dropIndex
185
- | KW_OPTIMIZE tableName whereClause? zorderClause # optimizeTable
185
+ | KW_OPTIMIZE tableName whereClause? zOrderClause # optimizeTable
186
186
| unsupportedHiveNativeCommands .*? # unsupportHiveCommands
187
187
;
188
188
@@ -595,7 +595,7 @@ hintStatement
595
595
;
596
596
597
597
fromClause
598
- : KW_FROM relation (COMMA relation)* lateralView* pivotClause? unpivotClause ?
598
+ : KW_FROM relation (COMMA relation)* lateralView* pivotClause? unPivotClause ?
599
599
;
600
600
601
601
functionKind
@@ -657,55 +657,55 @@ pivotValue
657
657
: expression (KW_AS ? identifier)?
658
658
;
659
659
660
- unpivotClause
661
- : KW_UNPIVOT nullOperator=unpivotNullClause ? LEFT_PAREN operator=unpivotOperator RIGHT_PAREN (
660
+ unPivotClause
661
+ : KW_UNPIVOT nullOperator=unPivotNullClause ? LEFT_PAREN operator=unPivotOperator RIGHT_PAREN (
662
662
KW_AS ? identifier
663
663
)?
664
664
;
665
665
666
- unpivotNullClause
666
+ unPivotNullClause
667
667
: (KW_INCLUDE | KW_EXCLUDE ) KW_NULLS
668
668
;
669
669
670
- unpivotOperator
671
- : (unpivotSingleValueColumnClause | unpivotMultiValueColumnClause )
670
+ unPivotOperator
671
+ : (unPivotSingleValueColumnClause | unPivotMultiValueColumnClause )
672
672
;
673
673
674
- unpivotSingleValueColumnClause
675
- : unpivotValueColumn KW_FOR unpivotNameColumn KW_IN LEFT_PAREN unpivotColumns+=unpivotColumnAndAlias (
676
- COMMA unpivotColumns+=unpivotColumnAndAlias
674
+ unPivotSingleValueColumnClause
675
+ : unPivotValueColumn KW_FOR unPivotNameColumn KW_IN LEFT_PAREN unPivotColumns+=unPivotColumnAndAlias (
676
+ COMMA unPivotColumns+=unPivotColumnAndAlias
677
677
)* RIGHT_PAREN
678
678
;
679
679
680
- unpivotMultiValueColumnClause
681
- : LEFT_PAREN unpivotValueColumns+=unpivotValueColumn (
682
- COMMA unpivotValueColumns+=unpivotValueColumn
683
- )* RIGHT_PAREN KW_FOR unpivotNameColumn KW_IN LEFT_PAREN unpivotColumnSets+=unpivotColumnSet (
684
- COMMA unpivotColumnSets+=unpivotColumnSet
680
+ unPivotMultiValueColumnClause
681
+ : LEFT_PAREN unPivotValueColumns+=unPivotValueColumn (
682
+ COMMA unPivotValueColumns+=unPivotValueColumn
683
+ )* RIGHT_PAREN KW_FOR unPivotNameColumn KW_IN LEFT_PAREN unPivotColumnSets+=unPivotColumnSet (
684
+ COMMA unPivotColumnSets+=unPivotColumnSet
685
685
)* RIGHT_PAREN
686
686
;
687
687
688
- unpivotColumnSet
689
- : LEFT_PAREN unpivotColumns+=unpivotColumn (COMMA unpivotColumns+=unpivotColumn )* RIGHT_PAREN unpivotAlias ?
688
+ unPivotColumnSet
689
+ : LEFT_PAREN unPivotColumns+=unPivotColumn (COMMA unPivotColumns+=unPivotColumn )* RIGHT_PAREN unPivotAlias ?
690
690
;
691
691
692
- unpivotValueColumn
692
+ unPivotValueColumn
693
693
: identifier
694
694
;
695
695
696
- unpivotNameColumn
696
+ unPivotNameColumn
697
697
: identifier
698
698
;
699
699
700
- unpivotColumnAndAlias
701
- : unpivotColumn unpivotAlias ?
700
+ unPivotColumnAndAlias
701
+ : unPivotColumn unPivotAlias ?
702
702
;
703
703
704
- unpivotColumn
704
+ unPivotColumn
705
705
: multipartIdentifier
706
706
;
707
707
708
- unpivotAlias
708
+ unPivotAlias
709
709
: KW_AS ? identifier
710
710
;
711
711
@@ -736,7 +736,7 @@ relation
736
736
relationExtension
737
737
: joinRelation
738
738
| pivotClause
739
- | unpivotClause
739
+ | unPivotClause
740
740
;
741
741
742
742
joinRelation
@@ -1269,7 +1269,7 @@ windowClause
1269
1269
: KW_WINDOW namedWindow (COMMA namedWindow)*
1270
1270
;
1271
1271
1272
- zorderClause
1272
+ zOrderClause
1273
1273
: KW_ZORDER KW_BY columnNameSeq
1274
1274
;
1275
1275
0 commit comments