dt-sql-parser 4.3.2-beta.1 → 4.4.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/dist/lib/flink/FlinkSqlParser.d.ts +129 -118
- package/dist/lib/flink/FlinkSqlParser.js +2794 -2720
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +11 -0
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +7 -0
- package/dist/parser/common/basicSQL.js +14 -12
- package/dist/parser/flink/index.d.ts +4 -0
- package/dist/parser/flink/index.js +17 -1
- package/dist/parser/hive/index.d.ts +4 -0
- package/dist/parser/hive/index.js +11 -1
- package/dist/parser/impala/index.d.ts +4 -0
- package/dist/parser/impala/index.js +11 -1
- package/dist/parser/mysql/index.d.ts +4 -0
- package/dist/parser/mysql/index.js +11 -1
- package/dist/parser/postgresql/index.d.ts +4 -0
- package/dist/parser/postgresql/index.js +17 -1
- package/dist/parser/spark/index.d.ts +4 -0
- package/dist/parser/spark/index.js +15 -1
- package/dist/parser/trino/index.d.ts +4 -0
- package/dist/parser/trino/index.js +11 -1
- package/package.json +1 -1
|
@@ -623,122 +623,123 @@ export declare class FlinkSqlParser extends SQLParserBase {
|
|
|
623
623
|
static readonly RULE_insertPartitionDefinition = 74;
|
|
624
624
|
static readonly RULE_valuesDefinition = 75;
|
|
625
625
|
static readonly RULE_valuesRowDefinition = 76;
|
|
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
|
|
626
|
+
static readonly RULE_valueDefinition = 77;
|
|
627
|
+
static readonly RULE_insertMulStatementCompatibility = 78;
|
|
628
|
+
static readonly RULE_insertMulStatement = 79;
|
|
629
|
+
static readonly RULE_queryStatement = 80;
|
|
630
|
+
static readonly RULE_valuesClause = 81;
|
|
631
|
+
static readonly RULE_withClause = 82;
|
|
632
|
+
static readonly RULE_withItem = 83;
|
|
633
|
+
static readonly RULE_withItemName = 84;
|
|
634
|
+
static readonly RULE_selectStatement = 85;
|
|
635
|
+
static readonly RULE_selectClause = 86;
|
|
636
|
+
static readonly RULE_projectItemDefinition = 87;
|
|
637
|
+
static readonly RULE_overWindowItem = 88;
|
|
638
|
+
static readonly RULE_fromClause = 89;
|
|
639
|
+
static readonly RULE_tableExpression = 90;
|
|
640
|
+
static readonly RULE_tableReference = 91;
|
|
641
|
+
static readonly RULE_tablePrimary = 92;
|
|
642
|
+
static readonly RULE_systemTimePeriod = 93;
|
|
643
|
+
static readonly RULE_dateTimeExpression = 94;
|
|
644
|
+
static readonly RULE_inlineDataValueClause = 95;
|
|
645
|
+
static readonly RULE_windowTVFClause = 96;
|
|
646
|
+
static readonly RULE_windowTVFExpression = 97;
|
|
647
|
+
static readonly RULE_windowTVFName = 98;
|
|
648
|
+
static readonly RULE_windowTVFParam = 99;
|
|
649
|
+
static readonly RULE_timeIntervalParamName = 100;
|
|
650
|
+
static readonly RULE_columnDescriptor = 101;
|
|
651
|
+
static readonly RULE_joinCondition = 102;
|
|
652
|
+
static readonly RULE_whereClause = 103;
|
|
653
|
+
static readonly RULE_groupByClause = 104;
|
|
654
|
+
static readonly RULE_groupItemDefinition = 105;
|
|
655
|
+
static readonly RULE_groupingSets = 106;
|
|
656
|
+
static readonly RULE_groupingSetsNotationName = 107;
|
|
657
|
+
static readonly RULE_groupWindowFunction = 108;
|
|
658
|
+
static readonly RULE_groupWindowFunctionName = 109;
|
|
659
|
+
static readonly RULE_timeAttrColumn = 110;
|
|
660
|
+
static readonly RULE_havingClause = 111;
|
|
661
|
+
static readonly RULE_windowClause = 112;
|
|
662
|
+
static readonly RULE_namedWindow = 113;
|
|
663
|
+
static readonly RULE_windowSpec = 114;
|
|
664
|
+
static readonly RULE_matchRecognizeClause = 115;
|
|
665
|
+
static readonly RULE_orderByClause = 116;
|
|
666
|
+
static readonly RULE_orderItemDefinition = 117;
|
|
667
|
+
static readonly RULE_limitClause = 118;
|
|
668
|
+
static readonly RULE_partitionByClause = 119;
|
|
669
|
+
static readonly RULE_quantifiers = 120;
|
|
670
|
+
static readonly RULE_measuresClause = 121;
|
|
671
|
+
static readonly RULE_patternDefinition = 122;
|
|
672
|
+
static readonly RULE_patternVariable = 123;
|
|
673
|
+
static readonly RULE_outputMode = 124;
|
|
674
|
+
static readonly RULE_afterMatchStrategy = 125;
|
|
675
|
+
static readonly RULE_patternVariablesDefinition = 126;
|
|
676
|
+
static readonly RULE_windowFrame = 127;
|
|
677
|
+
static readonly RULE_frameBound = 128;
|
|
678
|
+
static readonly RULE_withinClause = 129;
|
|
679
|
+
static readonly RULE_expression = 130;
|
|
680
|
+
static readonly RULE_booleanExpression = 131;
|
|
681
|
+
static readonly RULE_predicate = 132;
|
|
682
|
+
static readonly RULE_likePredicate = 133;
|
|
683
|
+
static readonly RULE_valueExpression = 134;
|
|
684
|
+
static readonly RULE_functionCallExpression = 135;
|
|
685
|
+
static readonly RULE_primaryExpression = 136;
|
|
686
|
+
static readonly RULE_functionNameCreate = 137;
|
|
687
|
+
static readonly RULE_functionName = 138;
|
|
688
|
+
static readonly RULE_functionNameAndParams = 139;
|
|
689
|
+
static readonly RULE_functionNameWithParams = 140;
|
|
690
|
+
static readonly RULE_functionParam = 141;
|
|
691
|
+
static readonly RULE_dereferenceDefinition = 142;
|
|
692
|
+
static readonly RULE_correlationName = 143;
|
|
693
|
+
static readonly RULE_qualifiedName = 144;
|
|
694
|
+
static readonly RULE_timeIntervalExpression = 145;
|
|
695
|
+
static readonly RULE_errorCapturingMultiUnitsInterval = 146;
|
|
696
|
+
static readonly RULE_multiUnitsInterval = 147;
|
|
697
|
+
static readonly RULE_errorCapturingUnitToUnitInterval = 148;
|
|
698
|
+
static readonly RULE_unitToUnitInterval = 149;
|
|
699
|
+
static readonly RULE_intervalValue = 150;
|
|
700
|
+
static readonly RULE_tableAlias = 151;
|
|
701
|
+
static readonly RULE_errorCapturingIdentifier = 152;
|
|
702
|
+
static readonly RULE_errorCapturingIdentifierExtra = 153;
|
|
703
|
+
static readonly RULE_identifierList = 154;
|
|
704
|
+
static readonly RULE_identifierSeq = 155;
|
|
705
|
+
static readonly RULE_identifier = 156;
|
|
706
|
+
static readonly RULE_unquotedIdentifier = 157;
|
|
707
|
+
static readonly RULE_quotedIdentifier = 158;
|
|
708
|
+
static readonly RULE_whenClause = 159;
|
|
709
|
+
static readonly RULE_catalogPath = 160;
|
|
710
|
+
static readonly RULE_catalogPathCreate = 161;
|
|
711
|
+
static readonly RULE_databasePath = 162;
|
|
712
|
+
static readonly RULE_databasePathCreate = 163;
|
|
713
|
+
static readonly RULE_tablePathCreate = 164;
|
|
714
|
+
static readonly RULE_tablePath = 165;
|
|
715
|
+
static readonly RULE_viewPath = 166;
|
|
716
|
+
static readonly RULE_viewPathCreate = 167;
|
|
717
|
+
static readonly RULE_uid = 168;
|
|
718
|
+
static readonly RULE_withOption = 169;
|
|
719
|
+
static readonly RULE_ifNotExists = 170;
|
|
720
|
+
static readonly RULE_ifExists = 171;
|
|
721
|
+
static readonly RULE_tablePropertyList = 172;
|
|
722
|
+
static readonly RULE_tableProperty = 173;
|
|
723
|
+
static readonly RULE_tablePropertyKey = 174;
|
|
724
|
+
static readonly RULE_tablePropertyValue = 175;
|
|
725
|
+
static readonly RULE_logicalOperator = 176;
|
|
726
|
+
static readonly RULE_comparisonOperator = 177;
|
|
727
|
+
static readonly RULE_bitOperator = 178;
|
|
728
|
+
static readonly RULE_mathOperator = 179;
|
|
729
|
+
static readonly RULE_unaryOperator = 180;
|
|
730
|
+
static readonly RULE_constant = 181;
|
|
731
|
+
static readonly RULE_timePointLiteral = 182;
|
|
732
|
+
static readonly RULE_stringLiteral = 183;
|
|
733
|
+
static readonly RULE_decimalLiteral = 184;
|
|
734
|
+
static readonly RULE_booleanLiteral = 185;
|
|
735
|
+
static readonly RULE_setQuantifier = 186;
|
|
736
|
+
static readonly RULE_timePointUnit = 187;
|
|
737
|
+
static readonly RULE_timeIntervalUnit = 188;
|
|
738
|
+
static readonly RULE_reservedKeywordsUsedAsFuncParam = 189;
|
|
739
|
+
static readonly RULE_reservedKeywordsNoParamsUsedAsFuncName = 190;
|
|
740
|
+
static readonly RULE_reservedKeywordsFollowParamsUsedAsFuncName = 191;
|
|
741
|
+
static readonly RULE_reservedKeywordsUsedAsFuncName = 192;
|
|
742
|
+
static readonly RULE_nonReservedKeywords = 193;
|
|
742
743
|
static readonly literalNames: (string | null)[];
|
|
743
744
|
static readonly symbolicNames: (string | null)[];
|
|
744
745
|
static readonly ruleNames: string[];
|
|
@@ -826,6 +827,7 @@ export declare class FlinkSqlParser extends SQLParserBase {
|
|
|
826
827
|
insertPartitionDefinition(): InsertPartitionDefinitionContext;
|
|
827
828
|
valuesDefinition(): ValuesDefinitionContext;
|
|
828
829
|
valuesRowDefinition(): ValuesRowDefinitionContext;
|
|
830
|
+
valueDefinition(): ValueDefinitionContext;
|
|
829
831
|
insertMulStatementCompatibility(): InsertMulStatementCompatibilityContext;
|
|
830
832
|
insertMulStatement(): InsertMulStatementContext;
|
|
831
833
|
queryStatement(): QueryStatementContext;
|
|
@@ -1961,8 +1963,8 @@ export declare class ValuesDefinitionContext extends antlr.ParserRuleContext {
|
|
|
1961
1963
|
export declare class ValuesRowDefinitionContext extends antlr.ParserRuleContext {
|
|
1962
1964
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1963
1965
|
LR_BRACKET(): antlr.TerminalNode;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
+
valueDefinition(): ValueDefinitionContext[];
|
|
1967
|
+
valueDefinition(i: number): ValueDefinitionContext | null;
|
|
1966
1968
|
RR_BRACKET(): antlr.TerminalNode;
|
|
1967
1969
|
COMMA(): antlr.TerminalNode[];
|
|
1968
1970
|
COMMA(i: number): antlr.TerminalNode | null;
|
|
@@ -1971,6 +1973,15 @@ export declare class ValuesRowDefinitionContext extends antlr.ParserRuleContext
|
|
|
1971
1973
|
exitRule(listener: FlinkSqlParserListener): void;
|
|
1972
1974
|
accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
|
|
1973
1975
|
}
|
|
1976
|
+
export declare class ValueDefinitionContext extends antlr.ParserRuleContext {
|
|
1977
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1978
|
+
constant(): ConstantContext | null;
|
|
1979
|
+
functionCallExpression(): FunctionCallExpressionContext | null;
|
|
1980
|
+
get ruleIndex(): number;
|
|
1981
|
+
enterRule(listener: FlinkSqlParserListener): void;
|
|
1982
|
+
exitRule(listener: FlinkSqlParserListener): void;
|
|
1983
|
+
accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
|
|
1984
|
+
}
|
|
1974
1985
|
export declare class InsertMulStatementCompatibilityContext extends antlr.ParserRuleContext {
|
|
1975
1986
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1976
1987
|
KW_BEGIN(): antlr.TerminalNode;
|