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.
Files changed (65) 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/FlinkSqlLexer.d.ts +397 -399
  7. package/dist/lib/flink/FlinkSqlLexer.js +2489 -2504
  8. package/dist/lib/flink/FlinkSqlParser.d.ts +617 -726
  9. package/dist/lib/flink/FlinkSqlParser.js +3605 -4908
  10. package/dist/lib/flink/FlinkSqlParserListener.d.ts +33 -90
  11. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +21 -57
  12. package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
  13. package/dist/lib/generic/GenericSqlLexer.js +603 -0
  14. package/dist/lib/generic/GenericSqlListener.d.ts +1174 -0
  15. package/dist/lib/generic/GenericSqlListener.js +11 -0
  16. package/dist/lib/generic/GenericSqlParser.d.ts +1341 -0
  17. package/dist/lib/generic/GenericSqlParser.js +8041 -0
  18. package/dist/lib/generic/GenericSqlVisitor.d.ts +737 -0
  19. package/dist/lib/generic/GenericSqlVisitor.js +12 -0
  20. package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
  21. package/dist/lib/hive/HiveSqlParser.js +6304 -5912
  22. package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
  23. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
  24. package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
  25. package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
  26. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
  27. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
  28. package/dist/lib/index.d.ts +2 -0
  29. package/dist/lib/index.js +2 -0
  30. package/dist/lib/mysql/MySqlParser.d.ts +161 -94
  31. package/dist/lib/mysql/MySqlParser.js +9959 -9499
  32. package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
  33. package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
  34. package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
  35. package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
  36. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
  37. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
  38. package/dist/lib/spark/SparkSqlParser.d.ts +185 -145
  39. package/dist/lib/spark/SparkSqlParser.js +5463 -5152
  40. package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
  41. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
  42. package/dist/parser/common/basicSQL.d.ts +5 -17
  43. package/dist/parser/common/basicSQL.js +3 -74
  44. package/dist/parser/common/entityCollector.js +14 -2
  45. package/dist/parser/flink/index.js +5 -2
  46. package/dist/parser/generic/genericEntityCollector.d.ts +33 -0
  47. package/dist/parser/generic/genericEntityCollector.js +124 -0
  48. package/dist/parser/generic/genericErrorListener.d.ts +6 -0
  49. package/dist/parser/generic/genericErrorListener.js +56 -0
  50. package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
  51. package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
  52. package/dist/parser/generic/genericSplitListener.d.ts +6 -0
  53. package/dist/parser/generic/genericSplitListener.js +6 -0
  54. package/dist/parser/generic/index.d.ts +33 -0
  55. package/dist/parser/generic/index.js +109 -0
  56. package/dist/parser/index.d.ts +1 -0
  57. package/dist/parser/index.js +1 -0
  58. package/dist/parser/mysql/index.js +3 -1
  59. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  60. package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
  61. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  62. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  63. package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
  64. package/dist/parser/spark/index.js +3 -1
  65. package/package.json +1 -1
@@ -25,8 +25,10 @@ import { CreateTableAsSelectContext } from "./FlinkSqlParser.js";
25
25
  import { ColumnOptionDefinitionContext } from "./FlinkSqlParser.js";
26
26
  import { PhysicalColumnDefinitionContext } from "./FlinkSqlParser.js";
27
27
  import { ColumnNameCreateContext } from "./FlinkSqlParser.js";
28
+ import { EmptyColumnContext } from "./FlinkSqlParser.js";
28
29
  import { ColumnNameContext } from "./FlinkSqlParser.js";
29
30
  import { ColumnNamePathContext } from "./FlinkSqlParser.js";
31
+ import { ColumnNamePathAllowEmptyContext } from "./FlinkSqlParser.js";
30
32
  import { ColumnNameListContext } from "./FlinkSqlParser.js";
31
33
  import { ColumnTypeContext } from "./FlinkSqlParser.js";
32
34
  import { LengthOneDimensionContext } from "./FlinkSqlParser.js";
@@ -138,8 +140,6 @@ import { AfterMatchStrategyContext } from "./FlinkSqlParser.js";
138
140
  import { PatternVariablesDefinitionContext } from "./FlinkSqlParser.js";
139
141
  import { WindowFrameContext } from "./FlinkSqlParser.js";
140
142
  import { FrameBoundContext } from "./FlinkSqlParser.js";
141
- import { FrameStartContext } from "./FlinkSqlParser.js";
142
- import { FrameEndContext } from "./FlinkSqlParser.js";
143
143
  import { WithinClauseContext } from "./FlinkSqlParser.js";
144
144
  import { ExpressionContext } from "./FlinkSqlParser.js";
145
145
  import { LogicalNotContext } from "./FlinkSqlParser.js";
@@ -148,7 +148,6 @@ import { ExistsContext } from "./FlinkSqlParser.js";
148
148
  import { LogicalNestedContext } from "./FlinkSqlParser.js";
149
149
  import { LogicalBinaryContext } from "./FlinkSqlParser.js";
150
150
  import { PredicateContext } from "./FlinkSqlParser.js";
151
- import { JsonFunctionBranchContext } from "./FlinkSqlParser.js";
152
151
  import { LikePredicateContext } from "./FlinkSqlParser.js";
153
152
  import { ValueExpressionDefaultContext } from "./FlinkSqlParser.js";
154
153
  import { ComparisonContext } from "./FlinkSqlParser.js";
@@ -165,7 +164,6 @@ import { SubqueryExpressionContext } from "./FlinkSqlParser.js";
165
164
  import { CastContext } from "./FlinkSqlParser.js";
166
165
  import { ConstantDefaultContext } from "./FlinkSqlParser.js";
167
166
  import { ParenthesizedExpressionContext } from "./FlinkSqlParser.js";
168
- import { ExtractContext } from "./FlinkSqlParser.js";
169
167
  import { FunctionCallContext } from "./FlinkSqlParser.js";
170
168
  import { SearchedCaseContext } from "./FlinkSqlParser.js";
171
169
  import { PositionContext } from "./FlinkSqlParser.js";
@@ -175,10 +173,6 @@ import { FunctionNameContext } from "./FlinkSqlParser.js";
175
173
  import { FunctionNameAndParamsContext } from "./FlinkSqlParser.js";
176
174
  import { FunctionNameWithParamsContext } from "./FlinkSqlParser.js";
177
175
  import { FunctionParamContext } from "./FlinkSqlParser.js";
178
- import { JsonValueParamsContext } from "./FlinkSqlParser.js";
179
- import { JsonQueryParamsContext } from "./FlinkSqlParser.js";
180
- import { JsonObjectParamsContext } from "./FlinkSqlParser.js";
181
- import { JsonArrayParamsContext } from "./FlinkSqlParser.js";
182
176
  import { DereferenceDefinitionContext } from "./FlinkSqlParser.js";
183
177
  import { CorrelationNameContext } from "./FlinkSqlParser.js";
184
178
  import { QualifiedNameContext } from "./FlinkSqlParser.js";
@@ -209,6 +203,7 @@ import { TablePathContext } from "./FlinkSqlParser.js";
209
203
  import { ViewPathContext } from "./FlinkSqlParser.js";
210
204
  import { ViewPathCreateContext } from "./FlinkSqlParser.js";
211
205
  import { UidContext } from "./FlinkSqlParser.js";
206
+ import { UidAllowEmptyContext } from "./FlinkSqlParser.js";
212
207
  import { WithOptionContext } from "./FlinkSqlParser.js";
213
208
  import { IfNotExistsContext } from "./FlinkSqlParser.js";
214
209
  import { IfExistsContext } from "./FlinkSqlParser.js";
@@ -499,6 +494,16 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
499
494
  * @param ctx the parse tree
500
495
  */
501
496
  exitColumnNameCreate?: (ctx: ColumnNameCreateContext) => void;
497
+ /**
498
+ * Enter a parse tree produced by `FlinkSqlParser.emptyColumn`.
499
+ * @param ctx the parse tree
500
+ */
501
+ enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
502
+ /**
503
+ * Exit a parse tree produced by `FlinkSqlParser.emptyColumn`.
504
+ * @param ctx the parse tree
505
+ */
506
+ exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
502
507
  /**
503
508
  * Enter a parse tree produced by `FlinkSqlParser.columnName`.
504
509
  * @param ctx the parse tree
@@ -519,6 +524,16 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
519
524
  * @param ctx the parse tree
520
525
  */
521
526
  exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
527
+ /**
528
+ * Enter a parse tree produced by `FlinkSqlParser.columnNamePathAllowEmpty`.
529
+ * @param ctx the parse tree
530
+ */
531
+ enterColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
532
+ /**
533
+ * Exit a parse tree produced by `FlinkSqlParser.columnNamePathAllowEmpty`.
534
+ * @param ctx the parse tree
535
+ */
536
+ exitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
522
537
  /**
523
538
  * Enter a parse tree produced by `FlinkSqlParser.columnNameList`.
524
539
  * @param ctx the parse tree
@@ -1633,26 +1648,6 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
1633
1648
  * @param ctx the parse tree
1634
1649
  */
1635
1650
  exitFrameBound?: (ctx: FrameBoundContext) => void;
1636
- /**
1637
- * Enter a parse tree produced by `FlinkSqlParser.frameStart`.
1638
- * @param ctx the parse tree
1639
- */
1640
- enterFrameStart?: (ctx: FrameStartContext) => void;
1641
- /**
1642
- * Exit a parse tree produced by `FlinkSqlParser.frameStart`.
1643
- * @param ctx the parse tree
1644
- */
1645
- exitFrameStart?: (ctx: FrameStartContext) => void;
1646
- /**
1647
- * Enter a parse tree produced by `FlinkSqlParser.frameEnd`.
1648
- * @param ctx the parse tree
1649
- */
1650
- enterFrameEnd?: (ctx: FrameEndContext) => void;
1651
- /**
1652
- * Exit a parse tree produced by `FlinkSqlParser.frameEnd`.
1653
- * @param ctx the parse tree
1654
- */
1655
- exitFrameEnd?: (ctx: FrameEndContext) => void;
1656
1651
  /**
1657
1652
  * Enter a parse tree produced by `FlinkSqlParser.withinClause`.
1658
1653
  * @param ctx the parse tree
@@ -1743,16 +1738,6 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
1743
1738
  * @param ctx the parse tree
1744
1739
  */
1745
1740
  exitPredicate?: (ctx: PredicateContext) => void;
1746
- /**
1747
- * Enter a parse tree produced by `FlinkSqlParser.jsonFunctionBranch`.
1748
- * @param ctx the parse tree
1749
- */
1750
- enterJsonFunctionBranch?: (ctx: JsonFunctionBranchContext) => void;
1751
- /**
1752
- * Exit a parse tree produced by `FlinkSqlParser.jsonFunctionBranch`.
1753
- * @param ctx the parse tree
1754
- */
1755
- exitJsonFunctionBranch?: (ctx: JsonFunctionBranchContext) => void;
1756
1741
  /**
1757
1742
  * Enter a parse tree produced by `FlinkSqlParser.likePredicate`.
1758
1743
  * @param ctx the parse tree
@@ -1941,18 +1926,6 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
1941
1926
  * @param ctx the parse tree
1942
1927
  */
1943
1928
  exitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => void;
1944
- /**
1945
- * Enter a parse tree produced by the `extract`
1946
- * labeled alternative in `FlinkSqlParser.primaryExpression`.
1947
- * @param ctx the parse tree
1948
- */
1949
- enterExtract?: (ctx: ExtractContext) => void;
1950
- /**
1951
- * Exit a parse tree produced by the `extract`
1952
- * labeled alternative in `FlinkSqlParser.primaryExpression`.
1953
- * @param ctx the parse tree
1954
- */
1955
- exitExtract?: (ctx: ExtractContext) => void;
1956
1929
  /**
1957
1930
  * Enter a parse tree produced by the `functionCall`
1958
1931
  * labeled alternative in `FlinkSqlParser.primaryExpression`.
@@ -2051,46 +2024,6 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
2051
2024
  * @param ctx the parse tree
2052
2025
  */
2053
2026
  exitFunctionParam?: (ctx: FunctionParamContext) => void;
2054
- /**
2055
- * Enter a parse tree produced by `FlinkSqlParser.jsonValueParams`.
2056
- * @param ctx the parse tree
2057
- */
2058
- enterJsonValueParams?: (ctx: JsonValueParamsContext) => void;
2059
- /**
2060
- * Exit a parse tree produced by `FlinkSqlParser.jsonValueParams`.
2061
- * @param ctx the parse tree
2062
- */
2063
- exitJsonValueParams?: (ctx: JsonValueParamsContext) => void;
2064
- /**
2065
- * Enter a parse tree produced by `FlinkSqlParser.jsonQueryParams`.
2066
- * @param ctx the parse tree
2067
- */
2068
- enterJsonQueryParams?: (ctx: JsonQueryParamsContext) => void;
2069
- /**
2070
- * Exit a parse tree produced by `FlinkSqlParser.jsonQueryParams`.
2071
- * @param ctx the parse tree
2072
- */
2073
- exitJsonQueryParams?: (ctx: JsonQueryParamsContext) => void;
2074
- /**
2075
- * Enter a parse tree produced by `FlinkSqlParser.jsonObjectParams`.
2076
- * @param ctx the parse tree
2077
- */
2078
- enterJsonObjectParams?: (ctx: JsonObjectParamsContext) => void;
2079
- /**
2080
- * Exit a parse tree produced by `FlinkSqlParser.jsonObjectParams`.
2081
- * @param ctx the parse tree
2082
- */
2083
- exitJsonObjectParams?: (ctx: JsonObjectParamsContext) => void;
2084
- /**
2085
- * Enter a parse tree produced by `FlinkSqlParser.jsonArrayParams`.
2086
- * @param ctx the parse tree
2087
- */
2088
- enterJsonArrayParams?: (ctx: JsonArrayParamsContext) => void;
2089
- /**
2090
- * Exit a parse tree produced by `FlinkSqlParser.jsonArrayParams`.
2091
- * @param ctx the parse tree
2092
- */
2093
- exitJsonArrayParams?: (ctx: JsonArrayParamsContext) => void;
2094
2027
  /**
2095
2028
  * Enter a parse tree produced by `FlinkSqlParser.dereferenceDefinition`.
2096
2029
  * @param ctx the parse tree
@@ -2401,6 +2334,16 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
2401
2334
  * @param ctx the parse tree
2402
2335
  */
2403
2336
  exitUid?: (ctx: UidContext) => void;
2337
+ /**
2338
+ * Enter a parse tree produced by `FlinkSqlParser.uidAllowEmpty`.
2339
+ * @param ctx the parse tree
2340
+ */
2341
+ enterUidAllowEmpty?: (ctx: UidAllowEmptyContext) => void;
2342
+ /**
2343
+ * Exit a parse tree produced by `FlinkSqlParser.uidAllowEmpty`.
2344
+ * @param ctx the parse tree
2345
+ */
2346
+ exitUidAllowEmpty?: (ctx: UidAllowEmptyContext) => void;
2404
2347
  /**
2405
2348
  * Enter a parse tree produced by `FlinkSqlParser.withOption`.
2406
2349
  * @param ctx the parse tree
@@ -25,8 +25,10 @@ import { CreateTableAsSelectContext } from "./FlinkSqlParser.js";
25
25
  import { ColumnOptionDefinitionContext } from "./FlinkSqlParser.js";
26
26
  import { PhysicalColumnDefinitionContext } from "./FlinkSqlParser.js";
27
27
  import { ColumnNameCreateContext } from "./FlinkSqlParser.js";
28
+ import { EmptyColumnContext } from "./FlinkSqlParser.js";
28
29
  import { ColumnNameContext } from "./FlinkSqlParser.js";
29
30
  import { ColumnNamePathContext } from "./FlinkSqlParser.js";
31
+ import { ColumnNamePathAllowEmptyContext } from "./FlinkSqlParser.js";
30
32
  import { ColumnNameListContext } from "./FlinkSqlParser.js";
31
33
  import { ColumnTypeContext } from "./FlinkSqlParser.js";
32
34
  import { LengthOneDimensionContext } from "./FlinkSqlParser.js";
@@ -138,8 +140,6 @@ import { AfterMatchStrategyContext } from "./FlinkSqlParser.js";
138
140
  import { PatternVariablesDefinitionContext } from "./FlinkSqlParser.js";
139
141
  import { WindowFrameContext } from "./FlinkSqlParser.js";
140
142
  import { FrameBoundContext } from "./FlinkSqlParser.js";
141
- import { FrameStartContext } from "./FlinkSqlParser.js";
142
- import { FrameEndContext } from "./FlinkSqlParser.js";
143
143
  import { WithinClauseContext } from "./FlinkSqlParser.js";
144
144
  import { ExpressionContext } from "./FlinkSqlParser.js";
145
145
  import { LogicalNotContext } from "./FlinkSqlParser.js";
@@ -148,7 +148,6 @@ import { ExistsContext } from "./FlinkSqlParser.js";
148
148
  import { LogicalNestedContext } from "./FlinkSqlParser.js";
149
149
  import { LogicalBinaryContext } from "./FlinkSqlParser.js";
150
150
  import { PredicateContext } from "./FlinkSqlParser.js";
151
- import { JsonFunctionBranchContext } from "./FlinkSqlParser.js";
152
151
  import { LikePredicateContext } from "./FlinkSqlParser.js";
153
152
  import { ValueExpressionDefaultContext } from "./FlinkSqlParser.js";
154
153
  import { ComparisonContext } from "./FlinkSqlParser.js";
@@ -165,7 +164,6 @@ import { SubqueryExpressionContext } from "./FlinkSqlParser.js";
165
164
  import { CastContext } from "./FlinkSqlParser.js";
166
165
  import { ConstantDefaultContext } from "./FlinkSqlParser.js";
167
166
  import { ParenthesizedExpressionContext } from "./FlinkSqlParser.js";
168
- import { ExtractContext } from "./FlinkSqlParser.js";
169
167
  import { FunctionCallContext } from "./FlinkSqlParser.js";
170
168
  import { SearchedCaseContext } from "./FlinkSqlParser.js";
171
169
  import { PositionContext } from "./FlinkSqlParser.js";
@@ -175,10 +173,6 @@ import { FunctionNameContext } from "./FlinkSqlParser.js";
175
173
  import { FunctionNameAndParamsContext } from "./FlinkSqlParser.js";
176
174
  import { FunctionNameWithParamsContext } from "./FlinkSqlParser.js";
177
175
  import { FunctionParamContext } from "./FlinkSqlParser.js";
178
- import { JsonValueParamsContext } from "./FlinkSqlParser.js";
179
- import { JsonQueryParamsContext } from "./FlinkSqlParser.js";
180
- import { JsonObjectParamsContext } from "./FlinkSqlParser.js";
181
- import { JsonArrayParamsContext } from "./FlinkSqlParser.js";
182
176
  import { DereferenceDefinitionContext } from "./FlinkSqlParser.js";
183
177
  import { CorrelationNameContext } from "./FlinkSqlParser.js";
184
178
  import { QualifiedNameContext } from "./FlinkSqlParser.js";
@@ -209,6 +203,7 @@ import { TablePathContext } from "./FlinkSqlParser.js";
209
203
  import { ViewPathContext } from "./FlinkSqlParser.js";
210
204
  import { ViewPathCreateContext } from "./FlinkSqlParser.js";
211
205
  import { UidContext } from "./FlinkSqlParser.js";
206
+ import { UidAllowEmptyContext } from "./FlinkSqlParser.js";
212
207
  import { WithOptionContext } from "./FlinkSqlParser.js";
213
208
  import { IfNotExistsContext } from "./FlinkSqlParser.js";
214
209
  import { IfExistsContext } from "./FlinkSqlParser.js";
@@ -398,6 +393,12 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
398
393
  * @return the visitor result
399
394
  */
400
395
  visitColumnNameCreate?: (ctx: ColumnNameCreateContext) => Result;
396
+ /**
397
+ * Visit a parse tree produced by `FlinkSqlParser.emptyColumn`.
398
+ * @param ctx the parse tree
399
+ * @return the visitor result
400
+ */
401
+ visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
401
402
  /**
402
403
  * Visit a parse tree produced by `FlinkSqlParser.columnName`.
403
404
  * @param ctx the parse tree
@@ -410,6 +411,12 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
410
411
  * @return the visitor result
411
412
  */
412
413
  visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
414
+ /**
415
+ * Visit a parse tree produced by `FlinkSqlParser.columnNamePathAllowEmpty`.
416
+ * @param ctx the parse tree
417
+ * @return the visitor result
418
+ */
419
+ visitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => Result;
413
420
  /**
414
421
  * Visit a parse tree produced by `FlinkSqlParser.columnNameList`.
415
422
  * @param ctx the parse tree
@@ -1078,18 +1085,6 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1078
1085
  * @return the visitor result
1079
1086
  */
1080
1087
  visitFrameBound?: (ctx: FrameBoundContext) => Result;
1081
- /**
1082
- * Visit a parse tree produced by `FlinkSqlParser.frameStart`.
1083
- * @param ctx the parse tree
1084
- * @return the visitor result
1085
- */
1086
- visitFrameStart?: (ctx: FrameStartContext) => Result;
1087
- /**
1088
- * Visit a parse tree produced by `FlinkSqlParser.frameEnd`.
1089
- * @param ctx the parse tree
1090
- * @return the visitor result
1091
- */
1092
- visitFrameEnd?: (ctx: FrameEndContext) => Result;
1093
1088
  /**
1094
1089
  * Visit a parse tree produced by `FlinkSqlParser.withinClause`.
1095
1090
  * @param ctx the parse tree
@@ -1143,12 +1138,6 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1143
1138
  * @return the visitor result
1144
1139
  */
1145
1140
  visitPredicate?: (ctx: PredicateContext) => Result;
1146
- /**
1147
- * Visit a parse tree produced by `FlinkSqlParser.jsonFunctionBranch`.
1148
- * @param ctx the parse tree
1149
- * @return the visitor result
1150
- */
1151
- visitJsonFunctionBranch?: (ctx: JsonFunctionBranchContext) => Result;
1152
1141
  /**
1153
1142
  * Visit a parse tree produced by `FlinkSqlParser.likePredicate`.
1154
1143
  * @param ctx the parse tree
@@ -1259,13 +1248,6 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1259
1248
  * @return the visitor result
1260
1249
  */
1261
1250
  visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
1262
- /**
1263
- * Visit a parse tree produced by the `extract`
1264
- * labeled alternative in `FlinkSqlParser.primaryExpression`.
1265
- * @param ctx the parse tree
1266
- * @return the visitor result
1267
- */
1268
- visitExtract?: (ctx: ExtractContext) => Result;
1269
1251
  /**
1270
1252
  * Visit a parse tree produced by the `functionCall`
1271
1253
  * labeled alternative in `FlinkSqlParser.primaryExpression`.
@@ -1324,30 +1306,6 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1324
1306
  * @return the visitor result
1325
1307
  */
1326
1308
  visitFunctionParam?: (ctx: FunctionParamContext) => Result;
1327
- /**
1328
- * Visit a parse tree produced by `FlinkSqlParser.jsonValueParams`.
1329
- * @param ctx the parse tree
1330
- * @return the visitor result
1331
- */
1332
- visitJsonValueParams?: (ctx: JsonValueParamsContext) => Result;
1333
- /**
1334
- * Visit a parse tree produced by `FlinkSqlParser.jsonQueryParams`.
1335
- * @param ctx the parse tree
1336
- * @return the visitor result
1337
- */
1338
- visitJsonQueryParams?: (ctx: JsonQueryParamsContext) => Result;
1339
- /**
1340
- * Visit a parse tree produced by `FlinkSqlParser.jsonObjectParams`.
1341
- * @param ctx the parse tree
1342
- * @return the visitor result
1343
- */
1344
- visitJsonObjectParams?: (ctx: JsonObjectParamsContext) => Result;
1345
- /**
1346
- * Visit a parse tree produced by `FlinkSqlParser.jsonArrayParams`.
1347
- * @param ctx the parse tree
1348
- * @return the visitor result
1349
- */
1350
- visitJsonArrayParams?: (ctx: JsonArrayParamsContext) => Result;
1351
1309
  /**
1352
1310
  * Visit a parse tree produced by `FlinkSqlParser.dereferenceDefinition`.
1353
1311
  * @param ctx the parse tree
@@ -1533,6 +1491,12 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1533
1491
  * @return the visitor result
1534
1492
  */
1535
1493
  visitUid?: (ctx: UidContext) => Result;
1494
+ /**
1495
+ * Visit a parse tree produced by `FlinkSqlParser.uidAllowEmpty`.
1496
+ * @param ctx the parse tree
1497
+ * @return the visitor result
1498
+ */
1499
+ visitUidAllowEmpty?: (ctx: UidAllowEmptyContext) => Result;
1536
1500
  /**
1537
1501
  * Visit a parse tree produced by `FlinkSqlParser.withOption`.
1538
1502
  * @param ctx the parse tree
@@ -0,0 +1,143 @@
1
+ import * as antlr from "antlr4ng";
2
+ export declare class GenericSqlLexer extends antlr.Lexer {
3
+ static readonly T__0 = 1;
4
+ static readonly T__1 = 2;
5
+ static readonly T__2 = 3;
6
+ static readonly T__3 = 4;
7
+ static readonly KW_ADD = 5;
8
+ static readonly KW_ALL = 6;
9
+ static readonly KW_ALTER = 7;
10
+ static readonly KW_AND = 8;
11
+ static readonly KW_AS = 9;
12
+ static readonly KW_ASC = 10;
13
+ static readonly KW_BETWEEN = 11;
14
+ static readonly KW_BIGINT = 12;
15
+ static readonly KW_BINARY = 13;
16
+ static readonly KW_BOOLEAN = 14;
17
+ static readonly KW_BY = 15;
18
+ static readonly KW_CASE = 16;
19
+ static readonly KW_CAST = 17;
20
+ static readonly KW_CHAR = 18;
21
+ static readonly KW_CHECK = 19;
22
+ static readonly KW_COALESCE = 20;
23
+ static readonly KW_COLUMN = 21;
24
+ static readonly KW_CONSTRAINT = 22;
25
+ static readonly KW_CREATE = 23;
26
+ static readonly KW_CROSS = 24;
27
+ static readonly KW_DATE = 25;
28
+ static readonly KW_DECIMAL = 26;
29
+ static readonly KW_DEFAULT = 27;
30
+ static readonly KW_DELETE = 28;
31
+ static readonly KW_DESC = 29;
32
+ static readonly KW_DISTINCT = 30;
33
+ static readonly KW_DOUBLE = 31;
34
+ static readonly KW_DROP = 32;
35
+ static readonly KW_ELSE = 33;
36
+ static readonly KW_END = 34;
37
+ static readonly KW_ESCAPE = 35;
38
+ static readonly KW_EXCEPT = 36;
39
+ static readonly KW_EXISTS = 37;
40
+ static readonly KW_FALSE = 38;
41
+ static readonly KW_FIRST = 39;
42
+ static readonly KW_FLOAT = 40;
43
+ static readonly KW_FOREIGN = 41;
44
+ static readonly KW_FROM = 42;
45
+ static readonly KW_FULL = 43;
46
+ static readonly KW_GROUP = 44;
47
+ static readonly KW_HAVING = 45;
48
+ static readonly KW_IF = 46;
49
+ static readonly KW_IN = 47;
50
+ static readonly KW_INNER = 48;
51
+ static readonly KW_INSERT = 49;
52
+ static readonly KW_INT = 50;
53
+ static readonly KW_INTEGER = 51;
54
+ static readonly KW_INTERSECT = 52;
55
+ static readonly KW_INTO = 53;
56
+ static readonly KW_IS = 54;
57
+ static readonly KW_JOIN = 55;
58
+ static readonly KW_KEY = 56;
59
+ static readonly KW_LAST = 57;
60
+ static readonly KW_LEFT = 58;
61
+ static readonly KW_LIKE = 59;
62
+ static readonly KW_LIMIT = 60;
63
+ static readonly KW_NOT = 61;
64
+ static readonly KW_NULL = 62;
65
+ static readonly KW_NULLIF = 63;
66
+ static readonly KW_NULLS = 64;
67
+ static readonly KW_NUMERIC = 65;
68
+ static readonly KW_OFFSET = 66;
69
+ static readonly KW_ON = 67;
70
+ static readonly KW_OR = 68;
71
+ static readonly KW_ORDER = 69;
72
+ static readonly KW_OUTER = 70;
73
+ static readonly KW_PRIMARY = 71;
74
+ static readonly KW_RECURSIVE = 72;
75
+ static readonly KW_REFERENCES = 73;
76
+ static readonly KW_RENAME = 74;
77
+ static readonly KW_RIGHT = 75;
78
+ static readonly KW_SELECT = 76;
79
+ static readonly KW_SET = 77;
80
+ static readonly KW_SMALLINT = 78;
81
+ static readonly KW_TABLE = 79;
82
+ static readonly KW_TEXT = 80;
83
+ static readonly KW_THEN = 81;
84
+ static readonly KW_TIME = 82;
85
+ static readonly KW_TIMESTAMP = 83;
86
+ static readonly KW_TINYINT = 84;
87
+ static readonly KW_TO = 85;
88
+ static readonly KW_TRUE = 86;
89
+ static readonly KW_UNION = 87;
90
+ static readonly KW_UNIQUE = 88;
91
+ static readonly KW_UPDATE = 89;
92
+ static readonly KW_VARCHAR = 90;
93
+ static readonly KW_VARBINARY = 91;
94
+ static readonly KW_WHEN = 92;
95
+ static readonly KW_WHERE = 93;
96
+ static readonly KW_WITH = 94;
97
+ static readonly EQ = 95;
98
+ static readonly NEQ = 96;
99
+ static readonly LT = 97;
100
+ static readonly LTE = 98;
101
+ static readonly GT = 99;
102
+ static readonly GTE = 100;
103
+ static readonly PLUS = 101;
104
+ static readonly MINUS = 102;
105
+ static readonly ASTERISK = 103;
106
+ static readonly SLASH = 104;
107
+ static readonly PERCENT = 105;
108
+ static readonly CONCAT = 106;
109
+ static readonly QUESTION_MARK = 107;
110
+ static readonly SEMICOLON = 108;
111
+ static readonly STRING = 109;
112
+ static readonly BINARY_LITERAL = 110;
113
+ static readonly INTEGER_VALUE = 111;
114
+ static readonly DECIMAL_VALUE = 112;
115
+ static readonly DOUBLE_VALUE = 113;
116
+ static readonly IDENTIFIER = 114;
117
+ static readonly DIGIT_IDENTIFIER = 115;
118
+ static readonly QUOTED_IDENTIFIER = 116;
119
+ static readonly BACKQUOTED_IDENTIFIER = 117;
120
+ static readonly LINE_COMMENT = 118;
121
+ static readonly BRACKETED_COMMENT = 119;
122
+ static readonly WHITE_SPACE = 120;
123
+ static readonly UNRECOGNIZED = 121;
124
+ static readonly channelNames: string[];
125
+ static readonly literalNames: (string | null)[];
126
+ static readonly symbolicNames: (string | null)[];
127
+ static readonly modeNames: string[];
128
+ static readonly ruleNames: string[];
129
+ constructor(input: antlr.CharStream);
130
+ get grammarFileName(): string;
131
+ get literalNames(): (string | null)[];
132
+ get symbolicNames(): (string | null)[];
133
+ get ruleNames(): string[];
134
+ get serializedATN(): number[];
135
+ get channelNames(): string[];
136
+ get modeNames(): string[];
137
+ static readonly _serializedATN: number[];
138
+ private static __ATN;
139
+ static get _ATN(): antlr.ATN;
140
+ private static readonly vocabulary;
141
+ get vocabulary(): antlr.Vocabulary;
142
+ private static readonly decisionsToDFA;
143
+ }