dt-sql-parser 4.5.0-beta.3 → 4.5.1-beta.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.
- package/README.md +2 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/lib/SQLParserBase.d.ts +13 -1
- package/dist/lib/SQLParserBase.js +40 -5
- package/dist/lib/flink/FlinkSqlLexer.d.ts +397 -399
- package/dist/lib/flink/FlinkSqlLexer.js +2489 -2504
- package/dist/lib/flink/FlinkSqlParser.d.ts +617 -726
- package/dist/lib/flink/FlinkSqlParser.js +3605 -4908
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +33 -90
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +21 -57
- package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
- package/dist/lib/generic/GenericSqlLexer.js +603 -0
- package/dist/lib/generic/GenericSqlListener.d.ts +1174 -0
- package/dist/lib/generic/GenericSqlListener.js +11 -0
- package/dist/lib/generic/GenericSqlParser.d.ts +1341 -0
- package/dist/lib/generic/GenericSqlParser.js +8041 -0
- package/dist/lib/generic/GenericSqlVisitor.d.ts +737 -0
- package/dist/lib/generic/GenericSqlVisitor.js +12 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
- package/dist/lib/hive/HiveSqlParser.js +6304 -5912
- package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
- package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/mysql/MySqlParser.d.ts +161 -94
- package/dist/lib/mysql/MySqlParser.js +9959 -9499
- package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
- package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
- package/dist/lib/spark/SparkSqlParser.d.ts +185 -145
- package/dist/lib/spark/SparkSqlParser.js +5463 -5152
- package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
- package/dist/parser/common/basicSQL.d.ts +5 -17
- package/dist/parser/common/basicSQL.js +3 -74
- package/dist/parser/common/entityCollector.js +14 -2
- package/dist/parser/flink/index.js +5 -2
- package/dist/parser/generic/genericEntityCollector.d.ts +33 -0
- package/dist/parser/generic/genericEntityCollector.js +124 -0
- package/dist/parser/generic/genericErrorListener.d.ts +6 -0
- package/dist/parser/generic/genericErrorListener.js +56 -0
- package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
- package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
- package/dist/parser/generic/genericSplitListener.d.ts +6 -0
- package/dist/parser/generic/genericSplitListener.js +6 -0
- package/dist/parser/generic/index.d.ts +33 -0
- package/dist/parser/generic/index.js +109 -0
- package/dist/parser/index.d.ts +1 -0
- package/dist/parser/index.js +1 -0
- package/dist/parser/mysql/index.js +3 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
- package/dist/parser/mysql/mysqlErrorListener.js +2 -0
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
- package/dist/parser/spark/index.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Generated from dt-sql-parser/src/grammar/generic/GenericSql.g4 by ANTLR 4.13.1
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
import { AbstractParseTreeVisitor } from "antlr4ng";
|
|
4
|
+
/**
|
|
5
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
6
|
+
* by `GenericSqlParser`.
|
|
7
|
+
*
|
|
8
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
9
|
+
* operations with no return type.
|
|
10
|
+
*/
|
|
11
|
+
export class GenericSqlVisitor extends AbstractParseTreeVisitor {
|
|
12
|
+
}
|
|
@@ -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
|
|
576
|
-
static readonly
|
|
577
|
-
static readonly
|
|
578
|
-
static readonly
|
|
579
|
-
static readonly
|
|
580
|
-
static readonly
|
|
581
|
-
static readonly
|
|
582
|
-
static readonly
|
|
583
|
-
static readonly
|
|
584
|
-
static readonly
|
|
585
|
-
static readonly
|
|
586
|
-
static readonly
|
|
587
|
-
static readonly
|
|
588
|
-
static readonly
|
|
589
|
-
static readonly
|
|
590
|
-
static readonly
|
|
591
|
-
static readonly
|
|
592
|
-
static readonly
|
|
593
|
-
static readonly
|
|
594
|
-
static readonly
|
|
595
|
-
static readonly
|
|
596
|
-
static readonly
|
|
597
|
-
static readonly
|
|
598
|
-
static readonly
|
|
599
|
-
static readonly
|
|
600
|
-
static readonly
|
|
601
|
-
static readonly
|
|
602
|
-
static readonly
|
|
603
|
-
static readonly
|
|
604
|
-
static readonly
|
|
605
|
-
static readonly
|
|
606
|
-
static readonly
|
|
607
|
-
static readonly
|
|
608
|
-
static readonly
|
|
609
|
-
static readonly
|
|
610
|
-
static readonly
|
|
611
|
-
static readonly
|
|
612
|
-
static readonly
|
|
613
|
-
static readonly
|
|
614
|
-
static readonly
|
|
615
|
-
static readonly
|
|
616
|
-
static readonly
|
|
617
|
-
static readonly
|
|
618
|
-
static readonly
|
|
619
|
-
static readonly
|
|
620
|
-
static readonly
|
|
621
|
-
static readonly
|
|
622
|
-
static readonly
|
|
623
|
-
static readonly
|
|
624
|
-
static readonly
|
|
625
|
-
static readonly
|
|
626
|
-
static readonly
|
|
627
|
-
static readonly
|
|
628
|
-
static readonly
|
|
629
|
-
static readonly
|
|
630
|
-
static readonly
|
|
631
|
-
static readonly
|
|
632
|
-
static readonly
|
|
633
|
-
static readonly
|
|
634
|
-
static readonly
|
|
635
|
-
static readonly
|
|
636
|
-
static readonly
|
|
637
|
-
static readonly
|
|
638
|
-
static readonly
|
|
639
|
-
static readonly
|
|
640
|
-
static readonly
|
|
641
|
-
static readonly
|
|
642
|
-
static readonly
|
|
643
|
-
static readonly
|
|
644
|
-
static readonly
|
|
645
|
-
static readonly
|
|
646
|
-
static readonly
|
|
647
|
-
static readonly
|
|
648
|
-
static readonly
|
|
649
|
-
static readonly
|
|
650
|
-
static readonly
|
|
651
|
-
static readonly
|
|
652
|
-
static readonly
|
|
653
|
-
static readonly
|
|
654
|
-
static readonly
|
|
655
|
-
static readonly
|
|
656
|
-
static readonly
|
|
657
|
-
static readonly
|
|
658
|
-
static readonly
|
|
659
|
-
static readonly
|
|
660
|
-
static readonly
|
|
661
|
-
static readonly
|
|
662
|
-
static readonly
|
|
663
|
-
static readonly
|
|
664
|
-
static readonly
|
|
665
|
-
static readonly
|
|
666
|
-
static readonly
|
|
667
|
-
static readonly
|
|
668
|
-
static readonly
|
|
669
|
-
static readonly
|
|
670
|
-
static readonly
|
|
671
|
-
static readonly
|
|
672
|
-
static readonly
|
|
673
|
-
static readonly
|
|
674
|
-
static readonly
|
|
675
|
-
static readonly
|
|
676
|
-
static readonly
|
|
677
|
-
static readonly
|
|
678
|
-
static readonly
|
|
679
|
-
static readonly
|
|
680
|
-
static readonly
|
|
681
|
-
static readonly
|
|
682
|
-
static readonly
|
|
683
|
-
static readonly
|
|
684
|
-
static readonly
|
|
685
|
-
static readonly
|
|
686
|
-
static readonly
|
|
687
|
-
static readonly
|
|
688
|
-
static readonly
|
|
689
|
-
static readonly
|
|
690
|
-
static readonly
|
|
691
|
-
static readonly
|
|
692
|
-
static readonly
|
|
693
|
-
static readonly
|
|
694
|
-
static readonly
|
|
695
|
-
static readonly
|
|
696
|
-
static readonly
|
|
697
|
-
static readonly
|
|
698
|
-
static readonly
|
|
699
|
-
static readonly
|
|
700
|
-
static readonly
|
|
701
|
-
static readonly
|
|
702
|
-
static readonly
|
|
703
|
-
static readonly
|
|
704
|
-
static readonly
|
|
705
|
-
static readonly
|
|
706
|
-
static readonly
|
|
707
|
-
static readonly
|
|
708
|
-
static readonly
|
|
709
|
-
static readonly
|
|
710
|
-
static readonly
|
|
711
|
-
static readonly
|
|
712
|
-
static readonly
|
|
713
|
-
static readonly
|
|
714
|
-
static readonly
|
|
715
|
-
static readonly
|
|
716
|
-
static readonly
|
|
717
|
-
static readonly
|
|
718
|
-
static readonly
|
|
719
|
-
static readonly
|
|
720
|
-
static readonly
|
|
721
|
-
static readonly
|
|
722
|
-
static readonly
|
|
723
|
-
static readonly
|
|
724
|
-
static readonly
|
|
725
|
-
static readonly
|
|
726
|
-
static readonly
|
|
727
|
-
static readonly
|
|
728
|
-
static readonly
|
|
729
|
-
static readonly
|
|
730
|
-
static readonly
|
|
731
|
-
static readonly
|
|
732
|
-
static readonly
|
|
733
|
-
static readonly
|
|
734
|
-
static readonly
|
|
735
|
-
static readonly
|
|
736
|
-
static readonly
|
|
737
|
-
static readonly
|
|
738
|
-
static readonly
|
|
739
|
-
static readonly
|
|
740
|
-
static readonly
|
|
741
|
-
static readonly
|
|
742
|
-
static readonly
|
|
743
|
-
static readonly
|
|
744
|
-
static readonly
|
|
745
|
-
static readonly
|
|
746
|
-
static readonly
|
|
747
|
-
static readonly
|
|
748
|
-
static readonly
|
|
749
|
-
static readonly
|
|
750
|
-
static readonly
|
|
751
|
-
static readonly
|
|
752
|
-
static readonly
|
|
753
|
-
static readonly
|
|
754
|
-
static readonly
|
|
755
|
-
static readonly
|
|
756
|
-
static readonly
|
|
757
|
-
static readonly
|
|
758
|
-
static readonly
|
|
759
|
-
static readonly
|
|
760
|
-
static readonly
|
|
761
|
-
static readonly
|
|
762
|
-
static readonly
|
|
763
|
-
static readonly
|
|
764
|
-
static readonly
|
|
765
|
-
static readonly
|
|
766
|
-
static readonly
|
|
767
|
-
static readonly
|
|
768
|
-
static readonly
|
|
769
|
-
static readonly
|
|
770
|
-
static readonly
|
|
771
|
-
static readonly
|
|
772
|
-
static readonly
|
|
773
|
-
static readonly
|
|
774
|
-
static readonly
|
|
775
|
-
static readonly
|
|
776
|
-
static readonly
|
|
777
|
-
static readonly
|
|
778
|
-
static readonly
|
|
779
|
-
static readonly
|
|
780
|
-
static readonly
|
|
781
|
-
static readonly
|
|
782
|
-
static readonly
|
|
783
|
-
static readonly
|
|
784
|
-
static readonly
|
|
785
|
-
static readonly
|
|
786
|
-
static readonly
|
|
787
|
-
static readonly
|
|
788
|
-
static readonly
|
|
789
|
-
static readonly
|
|
790
|
-
static readonly
|
|
791
|
-
static readonly
|
|
792
|
-
static readonly
|
|
793
|
-
static readonly
|
|
794
|
-
static readonly
|
|
795
|
-
static readonly
|
|
796
|
-
static readonly
|
|
797
|
-
static readonly
|
|
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
|
-
|
|
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;
|