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.
@@ -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 RULE_insertMulStatementCompatibility = 77;
627
- static readonly RULE_insertMulStatement = 78;
628
- static readonly RULE_queryStatement = 79;
629
- static readonly RULE_valuesClause = 80;
630
- static readonly RULE_withClause = 81;
631
- static readonly RULE_withItem = 82;
632
- static readonly RULE_withItemName = 83;
633
- static readonly RULE_selectStatement = 84;
634
- static readonly RULE_selectClause = 85;
635
- static readonly RULE_projectItemDefinition = 86;
636
- static readonly RULE_overWindowItem = 87;
637
- static readonly RULE_fromClause = 88;
638
- static readonly RULE_tableExpression = 89;
639
- static readonly RULE_tableReference = 90;
640
- static readonly RULE_tablePrimary = 91;
641
- static readonly RULE_systemTimePeriod = 92;
642
- static readonly RULE_dateTimeExpression = 93;
643
- static readonly RULE_inlineDataValueClause = 94;
644
- static readonly RULE_windowTVFClause = 95;
645
- static readonly RULE_windowTVFExpression = 96;
646
- static readonly RULE_windowTVFName = 97;
647
- static readonly RULE_windowTVFParam = 98;
648
- static readonly RULE_timeIntervalParamName = 99;
649
- static readonly RULE_columnDescriptor = 100;
650
- static readonly RULE_joinCondition = 101;
651
- static readonly RULE_whereClause = 102;
652
- static readonly RULE_groupByClause = 103;
653
- static readonly RULE_groupItemDefinition = 104;
654
- static readonly RULE_groupingSets = 105;
655
- static readonly RULE_groupingSetsNotationName = 106;
656
- static readonly RULE_groupWindowFunction = 107;
657
- static readonly RULE_groupWindowFunctionName = 108;
658
- static readonly RULE_timeAttrColumn = 109;
659
- static readonly RULE_havingClause = 110;
660
- static readonly RULE_windowClause = 111;
661
- static readonly RULE_namedWindow = 112;
662
- static readonly RULE_windowSpec = 113;
663
- static readonly RULE_matchRecognizeClause = 114;
664
- static readonly RULE_orderByClause = 115;
665
- static readonly RULE_orderItemDefinition = 116;
666
- static readonly RULE_limitClause = 117;
667
- static readonly RULE_partitionByClause = 118;
668
- static readonly RULE_quantifiers = 119;
669
- static readonly RULE_measuresClause = 120;
670
- static readonly RULE_patternDefinition = 121;
671
- static readonly RULE_patternVariable = 122;
672
- static readonly RULE_outputMode = 123;
673
- static readonly RULE_afterMatchStrategy = 124;
674
- static readonly RULE_patternVariablesDefinition = 125;
675
- static readonly RULE_windowFrame = 126;
676
- static readonly RULE_frameBound = 127;
677
- static readonly RULE_withinClause = 128;
678
- static readonly RULE_expression = 129;
679
- static readonly RULE_booleanExpression = 130;
680
- static readonly RULE_predicate = 131;
681
- static readonly RULE_likePredicate = 132;
682
- static readonly RULE_valueExpression = 133;
683
- static readonly RULE_functionCallExpression = 134;
684
- static readonly RULE_primaryExpression = 135;
685
- static readonly RULE_functionNameCreate = 136;
686
- static readonly RULE_functionName = 137;
687
- static readonly RULE_functionNameAndParams = 138;
688
- static readonly RULE_functionNameWithParams = 139;
689
- static readonly RULE_functionParam = 140;
690
- static readonly RULE_dereferenceDefinition = 141;
691
- static readonly RULE_correlationName = 142;
692
- static readonly RULE_qualifiedName = 143;
693
- static readonly RULE_timeIntervalExpression = 144;
694
- static readonly RULE_errorCapturingMultiUnitsInterval = 145;
695
- static readonly RULE_multiUnitsInterval = 146;
696
- static readonly RULE_errorCapturingUnitToUnitInterval = 147;
697
- static readonly RULE_unitToUnitInterval = 148;
698
- static readonly RULE_intervalValue = 149;
699
- static readonly RULE_tableAlias = 150;
700
- static readonly RULE_errorCapturingIdentifier = 151;
701
- static readonly RULE_errorCapturingIdentifierExtra = 152;
702
- static readonly RULE_identifierList = 153;
703
- static readonly RULE_identifierSeq = 154;
704
- static readonly RULE_identifier = 155;
705
- static readonly RULE_unquotedIdentifier = 156;
706
- static readonly RULE_quotedIdentifier = 157;
707
- static readonly RULE_whenClause = 158;
708
- static readonly RULE_catalogPath = 159;
709
- static readonly RULE_catalogPathCreate = 160;
710
- static readonly RULE_databasePath = 161;
711
- static readonly RULE_databasePathCreate = 162;
712
- static readonly RULE_tablePathCreate = 163;
713
- static readonly RULE_tablePath = 164;
714
- static readonly RULE_viewPath = 165;
715
- static readonly RULE_viewPathCreate = 166;
716
- static readonly RULE_uid = 167;
717
- static readonly RULE_withOption = 168;
718
- static readonly RULE_ifNotExists = 169;
719
- static readonly RULE_ifExists = 170;
720
- static readonly RULE_tablePropertyList = 171;
721
- static readonly RULE_tableProperty = 172;
722
- static readonly RULE_tablePropertyKey = 173;
723
- static readonly RULE_tablePropertyValue = 174;
724
- static readonly RULE_logicalOperator = 175;
725
- static readonly RULE_comparisonOperator = 176;
726
- static readonly RULE_bitOperator = 177;
727
- static readonly RULE_mathOperator = 178;
728
- static readonly RULE_unaryOperator = 179;
729
- static readonly RULE_constant = 180;
730
- static readonly RULE_timePointLiteral = 181;
731
- static readonly RULE_stringLiteral = 182;
732
- static readonly RULE_decimalLiteral = 183;
733
- static readonly RULE_booleanLiteral = 184;
734
- static readonly RULE_setQuantifier = 185;
735
- static readonly RULE_timePointUnit = 186;
736
- static readonly RULE_timeIntervalUnit = 187;
737
- static readonly RULE_reservedKeywordsUsedAsFuncParam = 188;
738
- static readonly RULE_reservedKeywordsNoParamsUsedAsFuncName = 189;
739
- static readonly RULE_reservedKeywordsFollowParamsUsedAsFuncName = 190;
740
- static readonly RULE_reservedKeywordsUsedAsFuncName = 191;
741
- static readonly RULE_nonReservedKeywords = 192;
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
- constant(): ConstantContext[];
1965
- constant(i: number): ConstantContext | null;
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;