dt-sql-parser 4.5.0-beta.3 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +2 -1
  2. package/dist/index.d.ts +3 -2
  3. package/dist/index.js +2 -2
  4. package/dist/lib/SQLParserBase.d.ts +13 -1
  5. package/dist/lib/SQLParserBase.js +40 -5
  6. package/dist/lib/flink/FlinkSqlParser.d.ts +229 -186
  7. package/dist/lib/flink/FlinkSqlParser.js +3508 -3156
  8. package/dist/lib/flink/FlinkSqlParserListener.d.ts +33 -0
  9. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +21 -0
  10. package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
  11. package/dist/lib/generic/GenericSqlLexer.js +603 -0
  12. package/dist/lib/generic/GenericSqlListener.d.ts +1089 -0
  13. package/dist/lib/generic/GenericSqlListener.js +11 -0
  14. package/dist/lib/generic/GenericSqlParser.d.ts +1272 -0
  15. package/dist/lib/generic/GenericSqlParser.js +7641 -0
  16. package/dist/lib/generic/GenericSqlVisitor.d.ts +684 -0
  17. package/dist/lib/generic/GenericSqlVisitor.js +12 -0
  18. package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
  19. package/dist/lib/hive/HiveSqlParser.js +6304 -5912
  20. package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
  21. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
  22. package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
  23. package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
  24. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
  25. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
  26. package/dist/lib/index.d.ts +2 -0
  27. package/dist/lib/index.js +2 -0
  28. package/dist/lib/mysql/MySqlParser.d.ts +161 -94
  29. package/dist/lib/mysql/MySqlParser.js +9959 -9499
  30. package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
  31. package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
  32. package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
  33. package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
  34. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
  35. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
  36. package/dist/lib/spark/SparkSqlParser.d.ts +186 -146
  37. package/dist/lib/spark/SparkSqlParser.js +5368 -5095
  38. package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
  39. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
  40. package/dist/lib/trino/TrinoSqlLexer.d.ts +297 -296
  41. package/dist/lib/trino/TrinoSqlLexer.js +1451 -1445
  42. package/dist/lib/trino/TrinoSqlListener.d.ts +13 -0
  43. package/dist/lib/trino/TrinoSqlParser.d.ts +308 -297
  44. package/dist/lib/trino/TrinoSqlParser.js +2381 -2300
  45. package/dist/lib/trino/TrinoSqlVisitor.d.ts +8 -0
  46. package/dist/parser/common/basicSQL.d.ts +5 -5
  47. package/dist/parser/common/basicSQL.js +3 -3
  48. package/dist/parser/common/entityCollector.js +14 -2
  49. package/dist/parser/flink/index.js +5 -2
  50. package/dist/parser/generic/genericEntityCollector.d.ts +30 -0
  51. package/dist/parser/generic/genericEntityCollector.js +116 -0
  52. package/dist/parser/generic/genericErrorListener.d.ts +6 -0
  53. package/dist/parser/generic/genericErrorListener.js +56 -0
  54. package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
  55. package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
  56. package/dist/parser/generic/genericSplitListener.d.ts +6 -0
  57. package/dist/parser/generic/genericSplitListener.js +6 -0
  58. package/dist/parser/generic/index.d.ts +33 -0
  59. package/dist/parser/generic/index.js +94 -0
  60. package/dist/parser/index.d.ts +1 -0
  61. package/dist/parser/index.js +1 -0
  62. package/dist/parser/mysql/index.js +3 -1
  63. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  64. package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
  65. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  66. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  67. package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
  68. package/dist/parser/spark/index.js +3 -1
  69. package/package.json +1 -1
@@ -572,229 +572,232 @@ export declare class HiveSqlParser extends SQLParserBase {
572
572
  static readonly RULE_columnNameList = 127;
573
573
  static readonly RULE_columnName = 128;
574
574
  static readonly RULE_columnNamePath = 129;
575
- static readonly RULE_columnNameCreate = 130;
576
- static readonly RULE_extColumnName = 131;
577
- static readonly RULE_columnNameOrderList = 132;
578
- static readonly RULE_columnParenthesesList = 133;
579
- static readonly RULE_enableValidateSpecification = 134;
580
- static readonly RULE_enableSpecification = 135;
581
- static readonly RULE_validateSpecification = 136;
582
- static readonly RULE_enforcedSpecification = 137;
583
- static readonly RULE_relySpecification = 138;
584
- static readonly RULE_createConstraint = 139;
585
- static readonly RULE_alterConstraintWithName = 140;
586
- static readonly RULE_tableLevelConstraint = 141;
587
- static readonly RULE_pkUkConstraint = 142;
588
- static readonly RULE_checkConstraint = 143;
589
- static readonly RULE_createForeignKey = 144;
590
- static readonly RULE_alterForeignKeyWithName = 145;
591
- static readonly RULE_skewedValueElement = 146;
592
- static readonly RULE_skewedColumnValuePairList = 147;
593
- static readonly RULE_skewedColumnValuePair = 148;
594
- static readonly RULE_constantList = 149;
595
- static readonly RULE_orderSpecification = 150;
596
- static readonly RULE_nullOrdering = 151;
597
- static readonly RULE_columnNameOrder = 152;
598
- static readonly RULE_columnNameCommentList = 153;
599
- static readonly RULE_columnNameComment = 154;
600
- static readonly RULE_columnRefOrder = 155;
601
- static readonly RULE_columnNameType = 156;
602
- static readonly RULE_columnNameTypeOrConstraint = 157;
603
- static readonly RULE_tableConstraint = 158;
604
- static readonly RULE_columnNameTypeConstraint = 159;
605
- static readonly RULE_columnConstraint = 160;
606
- static readonly RULE_foreignKeyConstraint = 161;
607
- static readonly RULE_colConstraint = 162;
608
- static readonly RULE_alterColumnConstraint = 163;
609
- static readonly RULE_alterForeignKeyConstraint = 164;
610
- static readonly RULE_alterColConstraint = 165;
611
- static readonly RULE_columnConstraintType = 166;
612
- static readonly RULE_defaultVal = 167;
613
- static readonly RULE_tableConstraintType = 168;
614
- static readonly RULE_constraintOptsCreate = 169;
615
- static readonly RULE_constraintOptsAlter = 170;
616
- static readonly RULE_columnNameColonType = 171;
617
- static readonly RULE_columnType = 172;
618
- static readonly RULE_columnTypeList = 173;
619
- static readonly RULE_type = 174;
620
- static readonly RULE_primitiveType = 175;
621
- static readonly RULE_listType = 176;
622
- static readonly RULE_structType = 177;
623
- static readonly RULE_mapType = 178;
624
- static readonly RULE_unionType = 179;
625
- static readonly RULE_setOperator = 180;
626
- static readonly RULE_queryStatementExpression = 181;
627
- static readonly RULE_queryStatementExpressionBody = 182;
628
- static readonly RULE_withClause = 183;
629
- static readonly RULE_cteStatement = 184;
630
- static readonly RULE_fromStatement = 185;
631
- static readonly RULE_singleFromStatement = 186;
632
- static readonly RULE_regularBody = 187;
633
- static readonly RULE_atomSelectStatement = 188;
634
- static readonly RULE_selectStatement = 189;
635
- static readonly RULE_setOpSelectStatement = 190;
636
- static readonly RULE_selectStatementWithCTE = 191;
637
- static readonly RULE_insertClause = 192;
638
- static readonly RULE_destination = 193;
639
- static readonly RULE_limitClause = 194;
640
- static readonly RULE_columnAssignmentClause = 195;
641
- static readonly RULE_precedencePlusExpressionOrDefault = 196;
642
- static readonly RULE_setColumnsClause = 197;
643
- static readonly RULE_sqlTransactionStatement = 198;
644
- static readonly RULE_transactionMode = 199;
645
- static readonly RULE_whenClauses = 200;
646
- static readonly RULE_whenNotMatchedClause = 201;
647
- static readonly RULE_whenMatchedAndClause = 202;
648
- static readonly RULE_whenMatchedThenClause = 203;
649
- static readonly RULE_compactionPool = 204;
650
- static readonly RULE_compactionType = 205;
651
- static readonly RULE_compactionStatus = 206;
652
- static readonly RULE_alterStatement = 207;
653
- static readonly RULE_alterTableStatementSuffix = 208;
654
- static readonly RULE_alterTblPartitionStatementSuffix = 209;
655
- static readonly RULE_alterViewStatementSuffix = 210;
656
- static readonly RULE_alterDatabaseStatementSuffix = 211;
657
- static readonly RULE_alterDataConnectorStatementSuffix = 212;
658
- static readonly RULE_locationPath = 213;
659
- static readonly RULE_alterStatementSuffixDropPartitions = 214;
660
- static readonly RULE_skewedLocationMap = 215;
661
- static readonly RULE_alterStatementSuffixExecute = 216;
662
- static readonly RULE_fileFormat = 217;
663
- static readonly RULE_likeTableOrFile = 218;
664
- static readonly RULE_createTableStatement = 219;
665
- static readonly RULE_createDataConnectorStatement = 220;
666
- static readonly RULE_dropDataConnectorStatement = 221;
667
- static readonly RULE_tableAllColumns = 222;
668
- static readonly RULE_expressionList = 223;
669
- static readonly RULE_aliasList = 224;
670
- static readonly RULE_fromClause = 225;
671
- static readonly RULE_fromSource = 226;
672
- static readonly RULE_atomjoinSource = 227;
673
- static readonly RULE_joinSource = 228;
674
- static readonly RULE_joinSourcePart = 229;
675
- static readonly RULE_uniqueJoinSource = 230;
676
- static readonly RULE_joinToken = 231;
677
- static readonly RULE_lateralView = 232;
678
- static readonly RULE_tableAlias = 233;
679
- static readonly RULE_tableSample = 234;
680
- static readonly RULE_tableSource = 235;
681
- static readonly RULE_asOfClause = 236;
682
- static readonly RULE_dbSchemaName = 237;
683
- static readonly RULE_dbSchemaNameCreate = 238;
684
- static readonly RULE_tableOrView = 239;
685
- static readonly RULE_tableName = 240;
686
- static readonly RULE_tableNameCreate = 241;
687
- static readonly RULE_viewName = 242;
688
- static readonly RULE_viewNameCreate = 243;
689
- static readonly RULE_subQuerySource = 244;
690
- static readonly RULE_partitioningSpec = 245;
691
- static readonly RULE_partitionTableFunctionSource = 246;
692
- static readonly RULE_partitionedTableFunction = 247;
693
- static readonly RULE_atomPartitionedTableFunction = 248;
694
- static readonly RULE_whereClause = 249;
695
- static readonly RULE_valuesClause = 250;
696
- static readonly RULE_atomValuesClause = 251;
697
- static readonly RULE_virtualTableSource = 252;
698
- static readonly RULE_selectClause = 253;
699
- static readonly RULE_selectTrfmClause = 254;
700
- static readonly RULE_selectList = 255;
701
- static readonly RULE_selectItem = 256;
702
- static readonly RULE_selectLiteralColumnName = 257;
703
- static readonly RULE_selectExpressionColumnName = 258;
704
- static readonly RULE_trfmClause = 259;
705
- static readonly RULE_selectExpression = 260;
706
- static readonly RULE_selectExpressionList = 261;
707
- static readonly RULE_window_clause = 262;
708
- static readonly RULE_window_specification = 263;
709
- static readonly RULE_window_frame = 264;
710
- static readonly RULE_window_frame_boundary = 265;
711
- static readonly RULE_groupByClause = 266;
712
- static readonly RULE_rollupStandard = 267;
713
- static readonly RULE_rollupOldSyntax = 268;
714
- static readonly RULE_groupingSetExpression = 269;
715
- static readonly RULE_havingClause = 270;
716
- static readonly RULE_qualifyClause = 271;
717
- static readonly RULE_expressionOrDefault = 272;
718
- static readonly RULE_firstExpressionsWithAlias = 273;
719
- static readonly RULE_expressions = 274;
720
- static readonly RULE_expressionsInParenthesis = 275;
721
- static readonly RULE_expressionsNotInParenthesis = 276;
722
- static readonly RULE_orderByClause = 277;
723
- static readonly RULE_partitionByClause = 278;
724
- static readonly RULE_clusterByClause = 279;
725
- static readonly RULE_distributeByClause = 280;
726
- static readonly RULE_sortByClause = 281;
727
- static readonly RULE_function_ = 282;
728
- static readonly RULE_null_treatment = 283;
729
- static readonly RULE_functionNameCreate = 284;
730
- static readonly RULE_functionNameForDDL = 285;
731
- static readonly RULE_functionNameForInvoke = 286;
732
- static readonly RULE_castExpression = 287;
733
- static readonly RULE_caseExpression = 288;
734
- static readonly RULE_whenExpression = 289;
735
- static readonly RULE_floorExpression = 290;
736
- static readonly RULE_extractExpression = 291;
737
- static readonly RULE_timeQualifiers = 292;
738
- static readonly RULE_constant = 293;
739
- static readonly RULE_intervalValue = 294;
740
- static readonly RULE_intervalExpression = 295;
741
- static readonly RULE_intervalQualifiers = 296;
742
- static readonly RULE_expression = 297;
743
- static readonly RULE_atomExpression = 298;
744
- static readonly RULE_precedenceUnaryPrefixExpression = 299;
745
- static readonly RULE_precedenceBitwiseXorExpression = 300;
746
- static readonly RULE_precedenceStarExpression = 301;
747
- static readonly RULE_precedencePlusExpression = 302;
748
- static readonly RULE_precedenceConcatenateExpression = 303;
749
- static readonly RULE_precedenceAmpersandExpression = 304;
750
- static readonly RULE_precedenceBitwiseOrExpression = 305;
751
- static readonly RULE_precedenceSimilarOperator = 306;
752
- static readonly RULE_subQueryExpression = 307;
753
- static readonly RULE_precedenceSimilarExpression = 308;
754
- static readonly RULE_precedenceSimilarExpressionPart = 309;
755
- static readonly RULE_precedenceSimilarExpressionAtom = 310;
756
- static readonly RULE_precedenceSimilarExpressionIn = 311;
757
- static readonly RULE_precedenceSimilarExpressionPartNot = 312;
758
- static readonly RULE_precedenceDistinctOperator = 313;
759
- static readonly RULE_precedenceEqualOperator = 314;
760
- static readonly RULE_precedenceEqualExpression = 315;
761
- static readonly RULE_isCondition = 316;
762
- static readonly RULE_precedenceNotExpression = 317;
763
- static readonly RULE_precedenceAndExpression = 318;
764
- static readonly RULE_tableOrPartition = 319;
765
- static readonly RULE_partitionSpec = 320;
766
- static readonly RULE_partitionVal = 321;
767
- static readonly RULE_partitionSelectorSpec = 322;
768
- static readonly RULE_partitionSelectorVal = 323;
769
- static readonly RULE_subQuerySelectorOperator = 324;
770
- static readonly RULE_sysFuncNames = 325;
771
- static readonly RULE_id_ = 326;
772
- static readonly RULE_functionIdentifier = 327;
773
- static readonly RULE_principalIdentifier = 328;
774
- static readonly RULE_nonReserved = 329;
775
- static readonly RULE_sql11ReservedKeywordsUsedAsFunctionName = 330;
776
- static readonly RULE_configPropertiesItem = 331;
777
- static readonly RULE_resourcePlanDdlStatements = 332;
778
- static readonly RULE_mappingTypes = 333;
779
- static readonly RULE_rpAssign = 334;
780
- static readonly RULE_rpAssignList = 335;
781
- static readonly RULE_rpUnassign = 336;
782
- static readonly RULE_activate = 337;
783
- static readonly RULE_enable = 338;
784
- static readonly RULE_disable = 339;
785
- static readonly RULE_year = 340;
786
- static readonly RULE_month = 341;
787
- static readonly RULE_week = 342;
788
- static readonly RULE_day = 343;
789
- static readonly RULE_hour = 344;
790
- static readonly RULE_minute = 345;
791
- static readonly RULE_second = 346;
792
- static readonly RULE_decimal = 347;
793
- static readonly RULE_poolPath = 348;
794
- static readonly RULE_triggerAtomExpression = 349;
795
- static readonly RULE_triggerActionExpression = 350;
796
- static readonly RULE_poolAssign = 351;
797
- static readonly RULE_poolAssignList = 352;
575
+ static readonly RULE_columnNamePathAllowEmpty = 130;
576
+ static readonly RULE_columnNameCreate = 131;
577
+ static readonly RULE_extColumnName = 132;
578
+ static readonly RULE_columnNameOrderList = 133;
579
+ static readonly RULE_columnParenthesesList = 134;
580
+ static readonly RULE_enableValidateSpecification = 135;
581
+ static readonly RULE_enableSpecification = 136;
582
+ static readonly RULE_validateSpecification = 137;
583
+ static readonly RULE_enforcedSpecification = 138;
584
+ static readonly RULE_relySpecification = 139;
585
+ static readonly RULE_createConstraint = 140;
586
+ static readonly RULE_alterConstraintWithName = 141;
587
+ static readonly RULE_tableLevelConstraint = 142;
588
+ static readonly RULE_pkUkConstraint = 143;
589
+ static readonly RULE_checkConstraint = 144;
590
+ static readonly RULE_createForeignKey = 145;
591
+ static readonly RULE_alterForeignKeyWithName = 146;
592
+ static readonly RULE_skewedValueElement = 147;
593
+ static readonly RULE_skewedColumnValuePairList = 148;
594
+ static readonly RULE_skewedColumnValuePair = 149;
595
+ static readonly RULE_constantList = 150;
596
+ static readonly RULE_orderSpecification = 151;
597
+ static readonly RULE_nullOrdering = 152;
598
+ static readonly RULE_columnNameOrder = 153;
599
+ static readonly RULE_columnNameCommentList = 154;
600
+ static readonly RULE_columnNameComment = 155;
601
+ static readonly RULE_columnRefOrder = 156;
602
+ static readonly RULE_columnNameType = 157;
603
+ static readonly RULE_columnNameTypeOrConstraint = 158;
604
+ static readonly RULE_tableConstraint = 159;
605
+ static readonly RULE_columnNameTypeConstraint = 160;
606
+ static readonly RULE_columnConstraint = 161;
607
+ static readonly RULE_foreignKeyConstraint = 162;
608
+ static readonly RULE_colConstraint = 163;
609
+ static readonly RULE_alterColumnConstraint = 164;
610
+ static readonly RULE_alterForeignKeyConstraint = 165;
611
+ static readonly RULE_alterColConstraint = 166;
612
+ static readonly RULE_columnConstraintType = 167;
613
+ static readonly RULE_defaultVal = 168;
614
+ static readonly RULE_tableConstraintType = 169;
615
+ static readonly RULE_constraintOptsCreate = 170;
616
+ static readonly RULE_constraintOptsAlter = 171;
617
+ static readonly RULE_columnNameColonType = 172;
618
+ static readonly RULE_columnType = 173;
619
+ static readonly RULE_columnTypeList = 174;
620
+ static readonly RULE_type = 175;
621
+ static readonly RULE_primitiveType = 176;
622
+ static readonly RULE_listType = 177;
623
+ static readonly RULE_structType = 178;
624
+ static readonly RULE_mapType = 179;
625
+ static readonly RULE_unionType = 180;
626
+ static readonly RULE_setOperator = 181;
627
+ static readonly RULE_queryStatementExpression = 182;
628
+ static readonly RULE_queryStatementExpressionBody = 183;
629
+ static readonly RULE_withClause = 184;
630
+ static readonly RULE_cteStatement = 185;
631
+ static readonly RULE_fromStatement = 186;
632
+ static readonly RULE_singleFromStatement = 187;
633
+ static readonly RULE_regularBody = 188;
634
+ static readonly RULE_atomSelectStatement = 189;
635
+ static readonly RULE_selectStatement = 190;
636
+ static readonly RULE_setOpSelectStatement = 191;
637
+ static readonly RULE_selectStatementWithCTE = 192;
638
+ static readonly RULE_insertClause = 193;
639
+ static readonly RULE_destination = 194;
640
+ static readonly RULE_limitClause = 195;
641
+ static readonly RULE_columnAssignmentClause = 196;
642
+ static readonly RULE_precedencePlusExpressionOrDefault = 197;
643
+ static readonly RULE_setColumnsClause = 198;
644
+ static readonly RULE_sqlTransactionStatement = 199;
645
+ static readonly RULE_transactionMode = 200;
646
+ static readonly RULE_whenClauses = 201;
647
+ static readonly RULE_whenNotMatchedClause = 202;
648
+ static readonly RULE_whenMatchedAndClause = 203;
649
+ static readonly RULE_whenMatchedThenClause = 204;
650
+ static readonly RULE_compactionPool = 205;
651
+ static readonly RULE_compactionType = 206;
652
+ static readonly RULE_compactionStatus = 207;
653
+ static readonly RULE_alterStatement = 208;
654
+ static readonly RULE_alterTableStatementSuffix = 209;
655
+ static readonly RULE_alterTblPartitionStatementSuffix = 210;
656
+ static readonly RULE_alterViewStatementSuffix = 211;
657
+ static readonly RULE_alterDatabaseStatementSuffix = 212;
658
+ static readonly RULE_alterDataConnectorStatementSuffix = 213;
659
+ static readonly RULE_locationPath = 214;
660
+ static readonly RULE_alterStatementSuffixDropPartitions = 215;
661
+ static readonly RULE_skewedLocationMap = 216;
662
+ static readonly RULE_alterStatementSuffixExecute = 217;
663
+ static readonly RULE_fileFormat = 218;
664
+ static readonly RULE_likeTableOrFile = 219;
665
+ static readonly RULE_createTableStatement = 220;
666
+ static readonly RULE_createDataConnectorStatement = 221;
667
+ static readonly RULE_dropDataConnectorStatement = 222;
668
+ static readonly RULE_tableAllColumns = 223;
669
+ static readonly RULE_expressionList = 224;
670
+ static readonly RULE_aliasList = 225;
671
+ static readonly RULE_fromClause = 226;
672
+ static readonly RULE_fromSource = 227;
673
+ static readonly RULE_atomjoinSource = 228;
674
+ static readonly RULE_joinSource = 229;
675
+ static readonly RULE_joinSourcePart = 230;
676
+ static readonly RULE_uniqueJoinSource = 231;
677
+ static readonly RULE_joinToken = 232;
678
+ static readonly RULE_lateralView = 233;
679
+ static readonly RULE_tableAlias = 234;
680
+ static readonly RULE_tableSample = 235;
681
+ static readonly RULE_tableSource = 236;
682
+ static readonly RULE_asOfClause = 237;
683
+ static readonly RULE_dbSchemaName = 238;
684
+ static readonly RULE_dbSchemaNameCreate = 239;
685
+ static readonly RULE_tableOrView = 240;
686
+ static readonly RULE_tableName = 241;
687
+ static readonly RULE_tableNameCreate = 242;
688
+ static readonly RULE_viewName = 243;
689
+ static readonly RULE_viewNameCreate = 244;
690
+ static readonly RULE_subQuerySource = 245;
691
+ static readonly RULE_partitioningSpec = 246;
692
+ static readonly RULE_partitionTableFunctionSource = 247;
693
+ static readonly RULE_partitionedTableFunction = 248;
694
+ static readonly RULE_atomPartitionedTableFunction = 249;
695
+ static readonly RULE_whereClause = 250;
696
+ static readonly RULE_valuesClause = 251;
697
+ static readonly RULE_atomValuesClause = 252;
698
+ static readonly RULE_virtualTableSource = 253;
699
+ static readonly RULE_selectClause = 254;
700
+ static readonly RULE_selectTrfmClause = 255;
701
+ static readonly RULE_selectList = 256;
702
+ static readonly RULE_selectItem = 257;
703
+ static readonly RULE_selectLiteralColumnName = 258;
704
+ static readonly RULE_selectExpressionColumnName = 259;
705
+ static readonly RULE_trfmClause = 260;
706
+ static readonly RULE_selectExpression = 261;
707
+ static readonly RULE_selectExpressionList = 262;
708
+ static readonly RULE_window_clause = 263;
709
+ static readonly RULE_window_specification = 264;
710
+ static readonly RULE_window_frame = 265;
711
+ static readonly RULE_window_frame_boundary = 266;
712
+ static readonly RULE_groupByClause = 267;
713
+ static readonly RULE_rollupStandard = 268;
714
+ static readonly RULE_rollupOldSyntax = 269;
715
+ static readonly RULE_groupingSetExpression = 270;
716
+ static readonly RULE_havingClause = 271;
717
+ static readonly RULE_qualifyClause = 272;
718
+ static readonly RULE_expressionOrDefault = 273;
719
+ static readonly RULE_firstExpressionsWithAlias = 274;
720
+ static readonly RULE_expressions = 275;
721
+ static readonly RULE_expressionsInParenthesis = 276;
722
+ static readonly RULE_expressionsNotInParenthesis = 277;
723
+ static readonly RULE_orderByClause = 278;
724
+ static readonly RULE_partitionByClause = 279;
725
+ static readonly RULE_clusterByClause = 280;
726
+ static readonly RULE_distributeByClause = 281;
727
+ static readonly RULE_sortByClause = 282;
728
+ static readonly RULE_function_ = 283;
729
+ static readonly RULE_null_treatment = 284;
730
+ static readonly RULE_functionNameCreate = 285;
731
+ static readonly RULE_functionNameForDDL = 286;
732
+ static readonly RULE_functionNameForInvoke = 287;
733
+ static readonly RULE_castExpression = 288;
734
+ static readonly RULE_caseExpression = 289;
735
+ static readonly RULE_whenExpression = 290;
736
+ static readonly RULE_floorExpression = 291;
737
+ static readonly RULE_extractExpression = 292;
738
+ static readonly RULE_timeQualifiers = 293;
739
+ static readonly RULE_constant = 294;
740
+ static readonly RULE_intervalValue = 295;
741
+ static readonly RULE_intervalExpression = 296;
742
+ static readonly RULE_intervalQualifiers = 297;
743
+ static readonly RULE_expression = 298;
744
+ static readonly RULE_atomExpression = 299;
745
+ static readonly RULE_precedenceUnaryPrefixExpression = 300;
746
+ static readonly RULE_precedenceBitwiseXorExpression = 301;
747
+ static readonly RULE_precedenceStarExpression = 302;
748
+ static readonly RULE_precedencePlusExpression = 303;
749
+ static readonly RULE_precedenceConcatenateExpression = 304;
750
+ static readonly RULE_precedenceAmpersandExpression = 305;
751
+ static readonly RULE_precedenceBitwiseOrExpression = 306;
752
+ static readonly RULE_precedenceSimilarOperator = 307;
753
+ static readonly RULE_subQueryExpression = 308;
754
+ static readonly RULE_precedenceSimilarExpression = 309;
755
+ static readonly RULE_precedenceSimilarExpressionPart = 310;
756
+ static readonly RULE_precedenceSimilarExpressionAtom = 311;
757
+ static readonly RULE_precedenceSimilarExpressionIn = 312;
758
+ static readonly RULE_precedenceSimilarExpressionPartNot = 313;
759
+ static readonly RULE_precedenceDistinctOperator = 314;
760
+ static readonly RULE_precedenceEqualOperator = 315;
761
+ static readonly RULE_precedenceEqualExpression = 316;
762
+ static readonly RULE_isCondition = 317;
763
+ static readonly RULE_precedenceNotExpression = 318;
764
+ static readonly RULE_precedenceAndExpression = 319;
765
+ static readonly RULE_tableOrPartition = 320;
766
+ static readonly RULE_partitionSpec = 321;
767
+ static readonly RULE_partitionVal = 322;
768
+ static readonly RULE_partitionSelectorSpec = 323;
769
+ static readonly RULE_partitionSelectorVal = 324;
770
+ static readonly RULE_subQuerySelectorOperator = 325;
771
+ static readonly RULE_sysFuncNames = 326;
772
+ static readonly RULE_id_ = 327;
773
+ static readonly RULE_functionIdentifier = 328;
774
+ static readonly RULE_principalIdentifier = 329;
775
+ static readonly RULE_nonReserved = 330;
776
+ static readonly RULE_sql11ReservedKeywordsUsedAsFunctionName = 331;
777
+ static readonly RULE_configPropertiesItem = 332;
778
+ static readonly RULE_resourcePlanDdlStatements = 333;
779
+ static readonly RULE_mappingTypes = 334;
780
+ static readonly RULE_rpAssign = 335;
781
+ static readonly RULE_rpAssignList = 336;
782
+ static readonly RULE_rpUnassign = 337;
783
+ static readonly RULE_activate = 338;
784
+ static readonly RULE_enable = 339;
785
+ static readonly RULE_disable = 340;
786
+ static readonly RULE_year = 341;
787
+ static readonly RULE_month = 342;
788
+ static readonly RULE_week = 343;
789
+ static readonly RULE_day = 344;
790
+ static readonly RULE_hour = 345;
791
+ static readonly RULE_minute = 346;
792
+ static readonly RULE_second = 347;
793
+ static readonly RULE_decimal = 348;
794
+ static readonly RULE_emptyColumn = 349;
795
+ static readonly RULE_poolPath = 350;
796
+ static readonly RULE_poolPathAllowEmpty = 351;
797
+ static readonly RULE_triggerAtomExpression = 352;
798
+ static readonly RULE_triggerActionExpression = 353;
799
+ static readonly RULE_poolAssign = 354;
800
+ static readonly RULE_poolAssignList = 355;
798
801
  static readonly literalNames: (string | null)[];
799
802
  static readonly symbolicNames: (string | null)[];
800
803
  static readonly ruleNames: string[];
@@ -935,6 +938,7 @@ export declare class HiveSqlParser extends SQLParserBase {
935
938
  columnNameList(): ColumnNameListContext;
936
939
  columnName(): ColumnNameContext;
937
940
  columnNamePath(): ColumnNamePathContext;
941
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext;
938
942
  columnNameCreate(): ColumnNameCreateContext;
939
943
  extColumnName(): ExtColumnNameContext;
940
944
  columnNameOrderList(): ColumnNameOrderListContext;
@@ -1153,13 +1157,18 @@ export declare class HiveSqlParser extends SQLParserBase {
1153
1157
  minute(): MinuteContext;
1154
1158
  second(): SecondContext;
1155
1159
  decimal(): DecimalContext;
1160
+ emptyColumn(): EmptyColumnContext;
1156
1161
  poolPath(): PoolPathContext;
1162
+ poolPathAllowEmpty(): PoolPathAllowEmptyContext;
1157
1163
  triggerAtomExpression(): TriggerAtomExpressionContext;
1158
1164
  triggerActionExpression(): TriggerActionExpressionContext;
1159
1165
  poolAssign(): PoolAssignContext;
1160
1166
  poolAssignList(): PoolAssignListContext;
1161
1167
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
1162
1168
  private columnName_sempred;
1169
+ private columnNamePathAllowEmpty_sempred;
1170
+ private selectItem_sempred;
1171
+ private poolPathAllowEmpty_sempred;
1163
1172
  static readonly _serializedATN: number[];
1164
1173
  private static __ATN;
1165
1174
  static get _ATN(): antlr.ATN;
@@ -2970,7 +2979,8 @@ export declare class ColumnNameListContext extends antlr.ParserRuleContext {
2970
2979
  }
2971
2980
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
2972
2981
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2973
- poolPath(): PoolPathContext | null;
2982
+ poolPathAllowEmpty(): PoolPathAllowEmptyContext | null;
2983
+ emptyColumn(): EmptyColumnContext | null;
2974
2984
  get ruleIndex(): number;
2975
2985
  enterRule(listener: HiveSqlParserListener): void;
2976
2986
  exitRule(listener: HiveSqlParserListener): void;
@@ -2984,6 +2994,15 @@ export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
2984
2994
  exitRule(listener: HiveSqlParserListener): void;
2985
2995
  accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
2986
2996
  }
2997
+ export declare class ColumnNamePathAllowEmptyContext extends antlr.ParserRuleContext {
2998
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2999
+ poolPathAllowEmpty(): PoolPathAllowEmptyContext | null;
3000
+ emptyColumn(): EmptyColumnContext | null;
3001
+ get ruleIndex(): number;
3002
+ enterRule(listener: HiveSqlParserListener): void;
3003
+ exitRule(listener: HiveSqlParserListener): void;
3004
+ accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
3005
+ }
2987
3006
  export declare class ColumnNameCreateContext extends antlr.ParserRuleContext {
2988
3007
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2989
3008
  id_(): Id_Context;
@@ -4460,12 +4479,16 @@ export declare class JoinSourceContext extends antlr.ParserRuleContext {
4460
4479
  joinSourcePart(i: number): JoinSourcePartContext | null;
4461
4480
  KW_ON(): antlr.TerminalNode[];
4462
4481
  KW_ON(i: number): antlr.TerminalNode | null;
4463
- expression(): ExpressionContext[];
4464
- expression(i: number): ExpressionContext | null;
4465
4482
  KW_USING(): antlr.TerminalNode[];
4466
4483
  KW_USING(i: number): antlr.TerminalNode | null;
4467
4484
  columnParenthesesList(): ColumnParenthesesListContext[];
4468
4485
  columnParenthesesList(i: number): ColumnParenthesesListContext | null;
4486
+ expression(): ExpressionContext[];
4487
+ expression(i: number): ExpressionContext | null;
4488
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext[];
4489
+ columnNamePathAllowEmpty(i: number): ColumnNamePathAllowEmptyContext | null;
4490
+ EQUAL(): antlr.TerminalNode[];
4491
+ EQUAL(i: number): antlr.TerminalNode | null;
4469
4492
  get ruleIndex(): number;
4470
4493
  enterRule(listener: HiveSqlParserListener): void;
4471
4494
  exitRule(listener: HiveSqlParserListener): void;
@@ -4762,7 +4785,8 @@ export declare class AtomPartitionedTableFunctionContext extends antlr.ParserRul
4762
4785
  export declare class WhereClauseContext extends antlr.ParserRuleContext {
4763
4786
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
4764
4787
  KW_WHERE(): antlr.TerminalNode;
4765
- expression(): ExpressionContext;
4788
+ expression(): ExpressionContext | null;
4789
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext | null;
4766
4790
  get ruleIndex(): number;
4767
4791
  enterRule(listener: HiveSqlParserListener): void;
4768
4792
  exitRule(listener: HiveSqlParserListener): void;
@@ -4871,6 +4895,7 @@ export declare class SelectItemContext extends antlr.ParserRuleContext {
4871
4895
  id_(i: number): Id_Context | null;
4872
4896
  COMMA(): antlr.TerminalNode[];
4873
4897
  COMMA(i: number): antlr.TerminalNode | null;
4898
+ emptyColumn(): EmptyColumnContext | null;
4874
4899
  get ruleIndex(): number;
4875
4900
  enterRule(listener: HiveSqlParserListener): void;
4876
4901
  exitRule(listener: HiveSqlParserListener): void;
@@ -5062,7 +5087,8 @@ export declare class GroupingSetExpressionContext extends antlr.ParserRuleContex
5062
5087
  export declare class HavingClauseContext extends antlr.ParserRuleContext {
5063
5088
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5064
5089
  KW_HAVING(): antlr.TerminalNode;
5065
- expression(): ExpressionContext;
5090
+ expression(): ExpressionContext | null;
5091
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext | null;
5066
5092
  get ruleIndex(): number;
5067
5093
  enterRule(listener: HiveSqlParserListener): void;
5068
5094
  exitRule(listener: HiveSqlParserListener): void;
@@ -6425,6 +6451,13 @@ export declare class DecimalContext extends antlr.ParserRuleContext {
6425
6451
  exitRule(listener: HiveSqlParserListener): void;
6426
6452
  accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
6427
6453
  }
6454
+ export declare class EmptyColumnContext extends antlr.ParserRuleContext {
6455
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6456
+ get ruleIndex(): number;
6457
+ enterRule(listener: HiveSqlParserListener): void;
6458
+ exitRule(listener: HiveSqlParserListener): void;
6459
+ accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
6460
+ }
6428
6461
  export declare class PoolPathContext extends antlr.ParserRuleContext {
6429
6462
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6430
6463
  id_(): Id_Context[];
@@ -6436,6 +6469,19 @@ export declare class PoolPathContext extends antlr.ParserRuleContext {
6436
6469
  exitRule(listener: HiveSqlParserListener): void;
6437
6470
  accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
6438
6471
  }
6472
+ export declare class PoolPathAllowEmptyContext extends antlr.ParserRuleContext {
6473
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6474
+ id_(): Id_Context[];
6475
+ id_(i: number): Id_Context | null;
6476
+ DOT(): antlr.TerminalNode[];
6477
+ DOT(i: number): antlr.TerminalNode | null;
6478
+ emptyColumn(): EmptyColumnContext[];
6479
+ emptyColumn(i: number): EmptyColumnContext | null;
6480
+ get ruleIndex(): number;
6481
+ enterRule(listener: HiveSqlParserListener): void;
6482
+ exitRule(listener: HiveSqlParserListener): void;
6483
+ accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
6484
+ }
6439
6485
  export declare class TriggerAtomExpressionContext extends antlr.ParserRuleContext {
6440
6486
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
6441
6487
  id_(): Id_Context;