dt-sql-parser 4.0.3-beta.0 → 4.0.3-beta.1

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 (74) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/lib/flink/FlinkSqlParser.d.ts +168 -171
  3. package/dist/lib/flink/FlinkSqlParser.js +2341 -2426
  4. package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -11
  5. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -7
  6. package/dist/lib/hive/HiveSqlParser.d.ts +5 -1
  7. package/dist/lib/hive/HiveSqlParser.js +145 -130
  8. package/dist/lib/impala/ImpalaSqlParser.d.ts +121 -105
  9. package/dist/lib/impala/ImpalaSqlParser.js +3303 -3225
  10. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +22 -0
  11. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +14 -0
  12. package/dist/lib/mysql/MySqlParser.d.ts +4 -0
  13. package/dist/lib/mysql/MySqlParser.js +4 -4
  14. package/dist/lib/postgresql/PostgreSqlParser.d.ts +3 -0
  15. package/dist/lib/postgresql/PostgreSqlParser.js +1500 -1492
  16. package/dist/lib/spark/SparkSqlParser.d.ts +16 -13
  17. package/dist/lib/spark/SparkSqlParser.js +49 -49
  18. package/dist/lib/spark/SparkSqlParserListener.d.ts +10 -10
  19. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +6 -6
  20. package/dist/lib/trino/TrinoSqlParser.d.ts +13 -5
  21. package/dist/lib/trino/TrinoSqlParser.js +23 -23
  22. package/dist/locale/locale.d.ts +41 -0
  23. package/dist/locale/locale.js +43 -0
  24. package/dist/parser/common/basicSQL.d.ts +7 -2
  25. package/dist/parser/common/basicSQL.js +5 -5
  26. package/dist/parser/common/entityCollector.d.ts +58 -11
  27. package/dist/parser/common/entityCollector.js +140 -17
  28. package/dist/parser/common/parseErrorListener.d.ts +6 -3
  29. package/dist/parser/common/parseErrorListener.js +83 -2
  30. package/dist/parser/common/textAndWord.d.ts +6 -9
  31. package/dist/parser/common/textAndWord.js +9 -20
  32. package/dist/parser/common/transform.d.ts +8 -0
  33. package/dist/parser/common/transform.js +11 -0
  34. package/dist/parser/common/types.d.ts +1 -0
  35. package/dist/parser/flink/flinkEntityCollector.js +40 -6
  36. package/dist/parser/flink/flinkErrorListener.d.ts +9 -0
  37. package/dist/parser/flink/flinkErrorListener.js +67 -0
  38. package/dist/parser/flink/index.d.ts +3 -0
  39. package/dist/parser/flink/index.js +4 -0
  40. package/dist/parser/hive/hiveEntityCollector.js +40 -6
  41. package/dist/parser/hive/hiveErrorListener.d.ts +9 -0
  42. package/dist/parser/hive/hiveErrorListener.js +65 -0
  43. package/dist/parser/hive/index.d.ts +3 -0
  44. package/dist/parser/hive/index.js +4 -0
  45. package/dist/parser/impala/ImpalaErrorListener.d.ts +9 -0
  46. package/dist/parser/impala/ImpalaErrorListener.js +63 -0
  47. package/dist/parser/impala/impalaEntityCollector.js +51 -6
  48. package/dist/parser/impala/index.d.ts +3 -0
  49. package/dist/parser/impala/index.js +4 -0
  50. package/dist/parser/mysql/index.d.ts +3 -0
  51. package/dist/parser/mysql/index.js +4 -0
  52. package/dist/parser/mysql/mysqlEntityCollector.d.ts +1 -1
  53. package/dist/parser/mysql/mysqlEntityCollector.js +34 -5
  54. package/dist/parser/mysql/mysqlErrorListener.d.ts +9 -0
  55. package/dist/parser/mysql/mysqlErrorListener.js +63 -0
  56. package/dist/parser/postgresql/index.d.ts +3 -0
  57. package/dist/parser/postgresql/index.js +4 -0
  58. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  59. package/dist/parser/postgresql/postgreEntityCollector.js +38 -4
  60. package/dist/parser/postgresql/postgreErrorListener.d.ts +9 -0
  61. package/dist/parser/postgresql/postgreErrorListener.js +71 -0
  62. package/dist/parser/spark/index.d.ts +3 -0
  63. package/dist/parser/spark/index.js +4 -0
  64. package/dist/parser/spark/sparkEntityCollector.d.ts +1 -1
  65. package/dist/parser/spark/sparkEntityCollector.js +43 -6
  66. package/dist/parser/spark/sparkErrorListener.d.ts +9 -0
  67. package/dist/parser/spark/sparkErrorListener.js +63 -0
  68. package/dist/parser/trino/index.d.ts +3 -0
  69. package/dist/parser/trino/index.js +4 -0
  70. package/dist/parser/trino/trinoEntityCollector.d.ts +1 -1
  71. package/dist/parser/trino/trinoEntityCollector.js +34 -5
  72. package/dist/parser/trino/trinoErrorListener.d.ts +9 -0
  73. package/dist/parser/trino/trinoErrorListener.js +65 -0
  74. package/package.json +5 -3
package/dist/index.d.ts CHANGED
@@ -5,4 +5,4 @@ export { StmtContextType } from './parser/common/entityCollector';
5
5
  export type { CaretPosition, Suggestions, SyntaxSuggestion } from './parser/common/types';
6
6
  export type { WordRange, TextSlice } from './parser/common/textAndWord';
7
7
  export type { SyntaxError, ParseError, ErrorListener } from './parser/common/parseErrorListener';
8
- export type { StmtContext, EntityContext } from './parser/common/entityCollector';
8
+ export type { StmtContext, EntityContext, CommonEntityContext, ColumnEntityContext, FuncEntityContext, } from './parser/common/entityCollector';
@@ -581,158 +581,157 @@ export declare class FlinkSqlParser extends SQLParserBase {
581
581
  static readonly RULE_mapTypeDimension = 33;
582
582
  static readonly RULE_rowTypeDimension = 34;
583
583
  static readonly RULE_columnConstraint = 35;
584
- static readonly RULE_commentSpec = 36;
585
- static readonly RULE_metadataColumnDefinition = 37;
586
- static readonly RULE_metadataKey = 38;
587
- static readonly RULE_computedColumnDefinition = 39;
588
- static readonly RULE_computedColumnExpression = 40;
589
- static readonly RULE_watermarkDefinition = 41;
590
- static readonly RULE_tableConstraint = 42;
591
- static readonly RULE_constraintName = 43;
592
- static readonly RULE_selfDefinitionClause = 44;
593
- static readonly RULE_partitionDefinition = 45;
594
- static readonly RULE_transformList = 46;
595
- static readonly RULE_transform = 47;
596
- static readonly RULE_transformArgument = 48;
597
- static readonly RULE_likeDefinition = 49;
598
- static readonly RULE_likeOption = 50;
599
- static readonly RULE_createCatalog = 51;
600
- static readonly RULE_createDatabase = 52;
601
- static readonly RULE_createView = 53;
602
- static readonly RULE_createFunction = 54;
603
- static readonly RULE_usingClause = 55;
604
- static readonly RULE_jarFileName = 56;
605
- static readonly RULE_alterTable = 57;
606
- static readonly RULE_renameDefinition = 58;
607
- static readonly RULE_setKeyValueDefinition = 59;
608
- static readonly RULE_addConstraint = 60;
609
- static readonly RULE_dropConstraint = 61;
610
- static readonly RULE_addUnique = 62;
611
- static readonly RULE_notForced = 63;
612
- static readonly RULE_alterView = 64;
613
- static readonly RULE_alterDatabase = 65;
614
- static readonly RULE_alterFunction = 66;
615
- static readonly RULE_dropCatalog = 67;
616
- static readonly RULE_dropTable = 68;
617
- static readonly RULE_dropDatabase = 69;
618
- static readonly RULE_dropView = 70;
619
- static readonly RULE_dropFunction = 71;
620
- static readonly RULE_insertStatement = 72;
621
- static readonly RULE_insertSimpleStatement = 73;
622
- static readonly RULE_insertPartitionDefinition = 74;
623
- static readonly RULE_valuesDefinition = 75;
624
- static readonly RULE_valuesRowDefinition = 76;
625
- static readonly RULE_insertMulStatementCompatibility = 77;
626
- static readonly RULE_insertMulStatement = 78;
627
- static readonly RULE_queryStatement = 79;
628
- static readonly RULE_valuesCaluse = 80;
629
- static readonly RULE_withClause = 81;
630
- static readonly RULE_withItem = 82;
631
- static readonly RULE_withItemName = 83;
632
- static readonly RULE_selectStatement = 84;
633
- static readonly RULE_selectClause = 85;
634
- static readonly RULE_projectItemDefinition = 86;
635
- static readonly RULE_overWindowItem = 87;
636
- static readonly RULE_fromClause = 88;
637
- static readonly RULE_tableExpression = 89;
638
- static readonly RULE_tableReference = 90;
639
- static readonly RULE_tablePrimary = 91;
640
- static readonly RULE_systemTimePeriod = 92;
641
- static readonly RULE_dateTimeExpression = 93;
642
- static readonly RULE_inlineDataValueClause = 94;
643
- static readonly RULE_windoTVFClause = 95;
644
- static readonly RULE_windowTVFExression = 96;
645
- static readonly RULE_windoTVFName = 97;
646
- static readonly RULE_windowTVFParam = 98;
647
- static readonly RULE_timeIntervalParamName = 99;
648
- static readonly RULE_columnDescriptor = 100;
649
- static readonly RULE_joinCondition = 101;
650
- static readonly RULE_whereClause = 102;
651
- static readonly RULE_groupByClause = 103;
652
- static readonly RULE_groupItemDefinition = 104;
653
- static readonly RULE_groupingSets = 105;
654
- static readonly RULE_groupingSetsNotaionName = 106;
655
- static readonly RULE_groupWindowFunction = 107;
656
- static readonly RULE_groupWindowFunctionName = 108;
657
- static readonly RULE_timeAttrColumn = 109;
658
- static readonly RULE_havingClause = 110;
659
- static readonly RULE_windowClause = 111;
660
- static readonly RULE_namedWindow = 112;
661
- static readonly RULE_windowSpec = 113;
662
- static readonly RULE_matchRecognizeClause = 114;
663
- static readonly RULE_orderByCaluse = 115;
664
- static readonly RULE_orderItemDefition = 116;
665
- static readonly RULE_limitClause = 117;
666
- static readonly RULE_partitionByClause = 118;
667
- static readonly RULE_quantifiers = 119;
668
- static readonly RULE_measuresClause = 120;
669
- static readonly RULE_patternDefination = 121;
670
- static readonly RULE_patternVariable = 122;
671
- static readonly RULE_outputMode = 123;
672
- static readonly RULE_afterMatchStrategy = 124;
673
- static readonly RULE_patternVariablesDefination = 125;
674
- static readonly RULE_windowFrame = 126;
675
- static readonly RULE_frameBound = 127;
676
- static readonly RULE_withinClause = 128;
677
- static readonly RULE_expression = 129;
678
- static readonly RULE_booleanExpression = 130;
679
- static readonly RULE_predicate = 131;
680
- static readonly RULE_likePredicate = 132;
681
- static readonly RULE_valueExpression = 133;
682
- static readonly RULE_primaryExpression = 134;
683
- static readonly RULE_functionNameCreate = 135;
684
- static readonly RULE_functionName = 136;
685
- static readonly RULE_functionParam = 137;
686
- static readonly RULE_dereferenceDefinition = 138;
687
- static readonly RULE_correlationName = 139;
688
- static readonly RULE_qualifiedName = 140;
689
- static readonly RULE_timeIntervalExpression = 141;
690
- static readonly RULE_errorCapturingMultiUnitsInterval = 142;
691
- static readonly RULE_multiUnitsInterval = 143;
692
- static readonly RULE_errorCapturingUnitToUnitInterval = 144;
693
- static readonly RULE_unitToUnitInterval = 145;
694
- static readonly RULE_intervalValue = 146;
695
- static readonly RULE_tableAlias = 147;
696
- static readonly RULE_errorCapturingIdentifier = 148;
697
- static readonly RULE_errorCapturingIdentifierExtra = 149;
698
- static readonly RULE_identifierList = 150;
699
- static readonly RULE_identifierSeq = 151;
700
- static readonly RULE_identifier = 152;
701
- static readonly RULE_unquotedIdentifier = 153;
702
- static readonly RULE_quotedIdentifier = 154;
703
- static readonly RULE_whenClause = 155;
704
- static readonly RULE_catalogPath = 156;
705
- static readonly RULE_catalogPathCreate = 157;
706
- static readonly RULE_databasePath = 158;
707
- static readonly RULE_databasePathCreate = 159;
708
- static readonly RULE_tablePathCreate = 160;
709
- static readonly RULE_tablePath = 161;
710
- static readonly RULE_viewPath = 162;
711
- static readonly RULE_viewPathCreate = 163;
712
- static readonly RULE_uid = 164;
713
- static readonly RULE_withOption = 165;
714
- static readonly RULE_ifNotExists = 166;
715
- static readonly RULE_ifExists = 167;
716
- static readonly RULE_tablePropertyList = 168;
717
- static readonly RULE_tableProperty = 169;
718
- static readonly RULE_tablePropertyKey = 170;
719
- static readonly RULE_tablePropertyValue = 171;
720
- static readonly RULE_logicalOperator = 172;
721
- static readonly RULE_comparisonOperator = 173;
722
- static readonly RULE_bitOperator = 174;
723
- static readonly RULE_mathOperator = 175;
724
- static readonly RULE_unaryOperator = 176;
725
- static readonly RULE_constant = 177;
726
- static readonly RULE_timePointLiteral = 178;
727
- static readonly RULE_stringLiteral = 179;
728
- static readonly RULE_decimalLiteral = 180;
729
- static readonly RULE_booleanLiteral = 181;
730
- static readonly RULE_setQuantifier = 182;
731
- static readonly RULE_timePointUnit = 183;
732
- static readonly RULE_timeIntervalUnit = 184;
733
- static readonly RULE_reservedKeywordsUsedAsFuncParam = 185;
734
- static readonly RULE_reservedKeywordsUsedAsFuncName = 186;
735
- static readonly RULE_nonReservedKeywords = 187;
584
+ static readonly RULE_metadataColumnDefinition = 36;
585
+ static readonly RULE_metadataKey = 37;
586
+ static readonly RULE_computedColumnDefinition = 38;
587
+ static readonly RULE_computedColumnExpression = 39;
588
+ static readonly RULE_watermarkDefinition = 40;
589
+ static readonly RULE_tableConstraint = 41;
590
+ static readonly RULE_constraintName = 42;
591
+ static readonly RULE_selfDefinitionClause = 43;
592
+ static readonly RULE_partitionDefinition = 44;
593
+ static readonly RULE_transformList = 45;
594
+ static readonly RULE_transform = 46;
595
+ static readonly RULE_transformArgument = 47;
596
+ static readonly RULE_likeDefinition = 48;
597
+ static readonly RULE_likeOption = 49;
598
+ static readonly RULE_createCatalog = 50;
599
+ static readonly RULE_createDatabase = 51;
600
+ static readonly RULE_createView = 52;
601
+ static readonly RULE_createFunction = 53;
602
+ static readonly RULE_usingClause = 54;
603
+ static readonly RULE_jarFileName = 55;
604
+ static readonly RULE_alterTable = 56;
605
+ static readonly RULE_renameDefinition = 57;
606
+ static readonly RULE_setKeyValueDefinition = 58;
607
+ static readonly RULE_addConstraint = 59;
608
+ static readonly RULE_dropConstraint = 60;
609
+ static readonly RULE_addUnique = 61;
610
+ static readonly RULE_notForced = 62;
611
+ static readonly RULE_alterView = 63;
612
+ static readonly RULE_alterDatabase = 64;
613
+ static readonly RULE_alterFunction = 65;
614
+ static readonly RULE_dropCatalog = 66;
615
+ static readonly RULE_dropTable = 67;
616
+ static readonly RULE_dropDatabase = 68;
617
+ static readonly RULE_dropView = 69;
618
+ static readonly RULE_dropFunction = 70;
619
+ static readonly RULE_insertStatement = 71;
620
+ static readonly RULE_insertSimpleStatement = 72;
621
+ static readonly RULE_insertPartitionDefinition = 73;
622
+ static readonly RULE_valuesDefinition = 74;
623
+ static readonly RULE_valuesRowDefinition = 75;
624
+ static readonly RULE_insertMulStatementCompatibility = 76;
625
+ static readonly RULE_insertMulStatement = 77;
626
+ static readonly RULE_queryStatement = 78;
627
+ static readonly RULE_valuesCaluse = 79;
628
+ static readonly RULE_withClause = 80;
629
+ static readonly RULE_withItem = 81;
630
+ static readonly RULE_withItemName = 82;
631
+ static readonly RULE_selectStatement = 83;
632
+ static readonly RULE_selectClause = 84;
633
+ static readonly RULE_projectItemDefinition = 85;
634
+ static readonly RULE_overWindowItem = 86;
635
+ static readonly RULE_fromClause = 87;
636
+ static readonly RULE_tableExpression = 88;
637
+ static readonly RULE_tableReference = 89;
638
+ static readonly RULE_tablePrimary = 90;
639
+ static readonly RULE_systemTimePeriod = 91;
640
+ static readonly RULE_dateTimeExpression = 92;
641
+ static readonly RULE_inlineDataValueClause = 93;
642
+ static readonly RULE_windoTVFClause = 94;
643
+ static readonly RULE_windowTVFExression = 95;
644
+ static readonly RULE_windoTVFName = 96;
645
+ static readonly RULE_windowTVFParam = 97;
646
+ static readonly RULE_timeIntervalParamName = 98;
647
+ static readonly RULE_columnDescriptor = 99;
648
+ static readonly RULE_joinCondition = 100;
649
+ static readonly RULE_whereClause = 101;
650
+ static readonly RULE_groupByClause = 102;
651
+ static readonly RULE_groupItemDefinition = 103;
652
+ static readonly RULE_groupingSets = 104;
653
+ static readonly RULE_groupingSetsNotaionName = 105;
654
+ static readonly RULE_groupWindowFunction = 106;
655
+ static readonly RULE_groupWindowFunctionName = 107;
656
+ static readonly RULE_timeAttrColumn = 108;
657
+ static readonly RULE_havingClause = 109;
658
+ static readonly RULE_windowClause = 110;
659
+ static readonly RULE_namedWindow = 111;
660
+ static readonly RULE_windowSpec = 112;
661
+ static readonly RULE_matchRecognizeClause = 113;
662
+ static readonly RULE_orderByCaluse = 114;
663
+ static readonly RULE_orderItemDefition = 115;
664
+ static readonly RULE_limitClause = 116;
665
+ static readonly RULE_partitionByClause = 117;
666
+ static readonly RULE_quantifiers = 118;
667
+ static readonly RULE_measuresClause = 119;
668
+ static readonly RULE_patternDefination = 120;
669
+ static readonly RULE_patternVariable = 121;
670
+ static readonly RULE_outputMode = 122;
671
+ static readonly RULE_afterMatchStrategy = 123;
672
+ static readonly RULE_patternVariablesDefination = 124;
673
+ static readonly RULE_windowFrame = 125;
674
+ static readonly RULE_frameBound = 126;
675
+ static readonly RULE_withinClause = 127;
676
+ static readonly RULE_expression = 128;
677
+ static readonly RULE_booleanExpression = 129;
678
+ static readonly RULE_predicate = 130;
679
+ static readonly RULE_likePredicate = 131;
680
+ static readonly RULE_valueExpression = 132;
681
+ static readonly RULE_primaryExpression = 133;
682
+ static readonly RULE_functionNameCreate = 134;
683
+ static readonly RULE_functionName = 135;
684
+ static readonly RULE_functionParam = 136;
685
+ static readonly RULE_dereferenceDefinition = 137;
686
+ static readonly RULE_correlationName = 138;
687
+ static readonly RULE_qualifiedName = 139;
688
+ static readonly RULE_timeIntervalExpression = 140;
689
+ static readonly RULE_errorCapturingMultiUnitsInterval = 141;
690
+ static readonly RULE_multiUnitsInterval = 142;
691
+ static readonly RULE_errorCapturingUnitToUnitInterval = 143;
692
+ static readonly RULE_unitToUnitInterval = 144;
693
+ static readonly RULE_intervalValue = 145;
694
+ static readonly RULE_tableAlias = 146;
695
+ static readonly RULE_errorCapturingIdentifier = 147;
696
+ static readonly RULE_errorCapturingIdentifierExtra = 148;
697
+ static readonly RULE_identifierList = 149;
698
+ static readonly RULE_identifierSeq = 150;
699
+ static readonly RULE_identifier = 151;
700
+ static readonly RULE_unquotedIdentifier = 152;
701
+ static readonly RULE_quotedIdentifier = 153;
702
+ static readonly RULE_whenClause = 154;
703
+ static readonly RULE_catalogPath = 155;
704
+ static readonly RULE_catalogPathCreate = 156;
705
+ static readonly RULE_databasePath = 157;
706
+ static readonly RULE_databasePathCreate = 158;
707
+ static readonly RULE_tablePathCreate = 159;
708
+ static readonly RULE_tablePath = 160;
709
+ static readonly RULE_viewPath = 161;
710
+ static readonly RULE_viewPathCreate = 162;
711
+ static readonly RULE_uid = 163;
712
+ static readonly RULE_withOption = 164;
713
+ static readonly RULE_ifNotExists = 165;
714
+ static readonly RULE_ifExists = 166;
715
+ static readonly RULE_tablePropertyList = 167;
716
+ static readonly RULE_tableProperty = 168;
717
+ static readonly RULE_tablePropertyKey = 169;
718
+ static readonly RULE_tablePropertyValue = 170;
719
+ static readonly RULE_logicalOperator = 171;
720
+ static readonly RULE_comparisonOperator = 172;
721
+ static readonly RULE_bitOperator = 173;
722
+ static readonly RULE_mathOperator = 174;
723
+ static readonly RULE_unaryOperator = 175;
724
+ static readonly RULE_constant = 176;
725
+ static readonly RULE_timePointLiteral = 177;
726
+ static readonly RULE_stringLiteral = 178;
727
+ static readonly RULE_decimalLiteral = 179;
728
+ static readonly RULE_booleanLiteral = 180;
729
+ static readonly RULE_setQuantifier = 181;
730
+ static readonly RULE_timePointUnit = 182;
731
+ static readonly RULE_timeIntervalUnit = 183;
732
+ static readonly RULE_reservedKeywordsUsedAsFuncParam = 184;
733
+ static readonly RULE_reservedKeywordsUsedAsFuncName = 185;
734
+ static readonly RULE_nonReservedKeywords = 186;
736
735
  static readonly literalNames: (string | null)[];
737
736
  static readonly symbolicNames: (string | null)[];
738
737
  static readonly ruleNames: string[];
@@ -779,7 +778,6 @@ export declare class FlinkSqlParser extends SQLParserBase {
779
778
  mapTypeDimension(): MapTypeDimensionContext;
780
779
  rowTypeDimension(): RowTypeDimensionContext;
781
780
  columnConstraint(): ColumnConstraintContext;
782
- commentSpec(): CommentSpecContext;
783
781
  metadataColumnDefinition(): MetadataColumnDefinitionContext;
784
782
  metadataKey(): MetadataKeyContext;
785
783
  computedColumnDefinition(): ComputedColumnDefinitionContext;
@@ -1225,6 +1223,7 @@ export declare class CreateTableContext extends antlr.ParserRuleContext {
1225
1223
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1226
1224
  }
1227
1225
  export declare class SimpleCreateTableContext extends antlr.ParserRuleContext {
1226
+ _comment?: Token | null;
1228
1227
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1229
1228
  KW_CREATE(): antlr.TerminalNode;
1230
1229
  KW_TABLE(): antlr.TerminalNode;
@@ -1241,9 +1240,10 @@ export declare class SimpleCreateTableContext extends antlr.ParserRuleContext {
1241
1240
  watermarkDefinition(): WatermarkDefinitionContext | null;
1242
1241
  tableConstraint(): TableConstraintContext | null;
1243
1242
  selfDefinitionClause(): SelfDefinitionClauseContext | null;
1244
- commentSpec(): CommentSpecContext | null;
1243
+ KW_COMMENT(): antlr.TerminalNode | null;
1245
1244
  partitionDefinition(): PartitionDefinitionContext | null;
1246
1245
  likeDefinition(): LikeDefinitionContext | null;
1246
+ STRING_LITERAL(): antlr.TerminalNode | null;
1247
1247
  get ruleIndex(): number;
1248
1248
  enterRule(listener: FlinkSqlParserListener): void;
1249
1249
  exitRule(listener: FlinkSqlParserListener): void;
@@ -1274,11 +1274,13 @@ export declare class ColumnOptionDefinitionContext extends antlr.ParserRuleConte
1274
1274
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1275
1275
  }
1276
1276
  export declare class PhysicalColumnDefinitionContext extends antlr.ParserRuleContext {
1277
+ _comment?: Token | null;
1277
1278
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1278
1279
  columnNameCreate(): ColumnNameCreateContext;
1279
1280
  columnType(): ColumnTypeContext;
1280
1281
  columnConstraint(): ColumnConstraintContext | null;
1281
- commentSpec(): CommentSpecContext | null;
1282
+ KW_COMMENT(): antlr.TerminalNode | null;
1283
+ STRING_LITERAL(): antlr.TerminalNode | null;
1282
1284
  get ruleIndex(): number;
1283
1285
  enterRule(listener: FlinkSqlParserListener): void;
1284
1286
  exitRule(listener: FlinkSqlParserListener): void;
@@ -1315,8 +1317,7 @@ export declare class ColumnNameListContext extends antlr.ParserRuleContext {
1315
1317
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1316
1318
  }
1317
1319
  export declare class ColumnTypeContext extends antlr.ParserRuleContext {
1318
- _typeName?: Token | null;
1319
- _type_?: Token | null;
1320
+ _colType?: Token | null;
1320
1321
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1321
1322
  KW_DATE(): antlr.TerminalNode | null;
1322
1323
  KW_BOOLEAN(): antlr.TerminalNode | null;
@@ -1448,15 +1449,6 @@ export declare class ColumnConstraintContext extends antlr.ParserRuleContext {
1448
1449
  exitRule(listener: FlinkSqlParserListener): void;
1449
1450
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1450
1451
  }
1451
- export declare class CommentSpecContext extends antlr.ParserRuleContext {
1452
- constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1453
- KW_COMMENT(): antlr.TerminalNode;
1454
- STRING_LITERAL(): antlr.TerminalNode;
1455
- get ruleIndex(): number;
1456
- enterRule(listener: FlinkSqlParserListener): void;
1457
- exitRule(listener: FlinkSqlParserListener): void;
1458
- accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1459
- }
1460
1452
  export declare class MetadataColumnDefinitionContext extends antlr.ParserRuleContext {
1461
1453
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1462
1454
  columnNameCreate(): ColumnNameCreateContext;
@@ -1479,11 +1471,13 @@ export declare class MetadataKeyContext extends antlr.ParserRuleContext {
1479
1471
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1480
1472
  }
1481
1473
  export declare class ComputedColumnDefinitionContext extends antlr.ParserRuleContext {
1474
+ _comment?: Token | null;
1482
1475
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1483
1476
  columnNameCreate(): ColumnNameCreateContext;
1484
1477
  KW_AS(): antlr.TerminalNode;
1485
1478
  computedColumnExpression(): ComputedColumnExpressionContext;
1486
- commentSpec(): CommentSpecContext | null;
1479
+ KW_COMMENT(): antlr.TerminalNode | null;
1480
+ STRING_LITERAL(): antlr.TerminalNode | null;
1487
1481
  get ruleIndex(): number;
1488
1482
  enterRule(listener: FlinkSqlParserListener): void;
1489
1483
  exitRule(listener: FlinkSqlParserListener): void;
@@ -1638,19 +1632,22 @@ export declare class CreateCatalogContext extends antlr.ParserRuleContext {
1638
1632
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1639
1633
  }
1640
1634
  export declare class CreateDatabaseContext extends antlr.ParserRuleContext {
1635
+ _comment?: Token | null;
1641
1636
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1642
1637
  KW_CREATE(): antlr.TerminalNode;
1643
1638
  KW_DATABASE(): antlr.TerminalNode;
1644
1639
  databasePathCreate(): DatabasePathCreateContext;
1645
1640
  withOption(): WithOptionContext;
1646
1641
  ifNotExists(): IfNotExistsContext | null;
1647
- commentSpec(): CommentSpecContext | null;
1642
+ KW_COMMENT(): antlr.TerminalNode | null;
1643
+ STRING_LITERAL(): antlr.TerminalNode | null;
1648
1644
  get ruleIndex(): number;
1649
1645
  enterRule(listener: FlinkSqlParserListener): void;
1650
1646
  exitRule(listener: FlinkSqlParserListener): void;
1651
1647
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
1652
1648
  }
1653
1649
  export declare class CreateViewContext extends antlr.ParserRuleContext {
1650
+ _comment?: Token | null;
1654
1651
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1655
1652
  KW_CREATE(): antlr.TerminalNode;
1656
1653
  KW_VIEW(): antlr.TerminalNode;
@@ -1660,7 +1657,8 @@ export declare class CreateViewContext extends antlr.ParserRuleContext {
1660
1657
  KW_TEMPORARY(): antlr.TerminalNode | null;
1661
1658
  ifNotExists(): IfNotExistsContext | null;
1662
1659
  columnNameList(): ColumnNameListContext | null;
1663
- commentSpec(): CommentSpecContext | null;
1660
+ KW_COMMENT(): antlr.TerminalNode | null;
1661
+ STRING_LITERAL(): antlr.TerminalNode | null;
1664
1662
  get ruleIndex(): number;
1665
1663
  enterRule(listener: FlinkSqlParserListener): void;
1666
1664
  exitRule(listener: FlinkSqlParserListener): void;
@@ -2155,8 +2153,6 @@ export declare class TablePrimaryContext extends antlr.ParserRuleContext {
2155
2153
  tablePath(): TablePathContext | null;
2156
2154
  KW_TABLE(): antlr.TerminalNode | null;
2157
2155
  systemTimePeriod(): SystemTimePeriodContext | null;
2158
- correlationName(): CorrelationNameContext | null;
2159
- KW_AS(): antlr.TerminalNode | null;
2160
2156
  viewPath(): ViewPathContext | null;
2161
2157
  KW_LATERAL(): antlr.TerminalNode | null;
2162
2158
  LR_BRACKET(): antlr.TerminalNode[];
@@ -3097,6 +3093,7 @@ export declare class IntervalValueContext extends antlr.ParserRuleContext {
3097
3093
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
3098
3094
  }
3099
3095
  export declare class TableAliasContext extends antlr.ParserRuleContext {
3096
+ _alias?: IdentifierContext;
3100
3097
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3101
3098
  identifier(): IdentifierContext;
3102
3099
  KW_AS(): antlr.TerminalNode | null;