dt-sql-parser 4.4.2 → 4.5.0-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 (61) hide show
  1. package/README.md +140 -3
  2. package/dist/lib/SQLParserBase.d.ts +13 -1
  3. package/dist/lib/SQLParserBase.js +40 -5
  4. package/dist/lib/flink/FlinkSqlLexer.d.ts +397 -399
  5. package/dist/lib/flink/FlinkSqlLexer.js +2489 -2504
  6. package/dist/lib/flink/FlinkSqlParser.d.ts +726 -728
  7. package/dist/lib/flink/FlinkSqlParser.js +4727 -5330
  8. package/dist/lib/flink/FlinkSqlParserListener.d.ts +132 -90
  9. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +84 -57
  10. package/dist/lib/hive/HiveSqlParser.d.ts +338 -239
  11. package/dist/lib/hive/HiveSqlParser.js +6466 -5794
  12. package/dist/lib/hive/HiveSqlParserListener.d.ts +88 -0
  13. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +56 -0
  14. package/dist/lib/impala/ImpalaSqlParser.d.ts +236 -125
  15. package/dist/lib/impala/ImpalaSqlParser.js +4257 -3483
  16. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +109 -14
  17. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +69 -8
  18. package/dist/lib/mysql/MySqlParser.d.ts +403 -306
  19. package/dist/lib/mysql/MySqlParser.js +10694 -10030
  20. package/dist/lib/mysql/MySqlParserListener.d.ts +121 -18
  21. package/dist/lib/mysql/MySqlParserVisitor.d.ts +75 -10
  22. package/dist/lib/postgresql/PostgreSqlParser.d.ts +256 -173
  23. package/dist/lib/postgresql/PostgreSqlParser.js +14934 -11710
  24. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +97 -5
  25. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +61 -3
  26. package/dist/lib/spark/SparkSqlParser.d.ts +314 -149
  27. package/dist/lib/spark/SparkSqlParser.js +6185 -5227
  28. package/dist/lib/spark/SparkSqlParserListener.d.ts +180 -5
  29. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +113 -3
  30. package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
  31. package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
  32. package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
  33. package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
  34. package/dist/parser/common/basicSQL.d.ts +5 -5
  35. package/dist/parser/common/basicSQL.js +4 -2
  36. package/dist/parser/common/entityCollector.d.ts +91 -4
  37. package/dist/parser/common/entityCollector.js +227 -11
  38. package/dist/parser/common/textAndWord.d.ts +9 -1
  39. package/dist/parser/common/textAndWord.js +2 -0
  40. package/dist/parser/common/types.d.ts +2 -0
  41. package/dist/parser/common/types.js +2 -0
  42. package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
  43. package/dist/parser/flink/flinkEntityCollector.js +76 -14
  44. package/dist/parser/flink/index.js +5 -2
  45. package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
  46. package/dist/parser/hive/hiveEntityCollector.js +85 -12
  47. package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
  48. package/dist/parser/impala/impalaEntityCollector.js +63 -12
  49. package/dist/parser/impala/index.js +2 -1
  50. package/dist/parser/mysql/index.js +3 -1
  51. package/dist/parser/mysql/mysqlEntityCollector.d.ts +10 -1
  52. package/dist/parser/mysql/mysqlEntityCollector.js +65 -12
  53. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  54. package/dist/parser/postgresql/postgreEntityCollector.d.ts +12 -1
  55. package/dist/parser/postgresql/postgreEntityCollector.js +99 -22
  56. package/dist/parser/spark/index.js +3 -1
  57. package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
  58. package/dist/parser/spark/sparkEntityCollector.js +88 -12
  59. package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
  60. package/dist/parser/trino/trinoEntityCollector.js +53 -12
  61. package/package.json +1 -1
@@ -131,8 +131,10 @@ import { TableNameCreateContext } from "./SparkSqlParser.js";
131
131
  import { TableNameContext } from "./SparkSqlParser.js";
132
132
  import { ViewNameCreateContext } from "./SparkSqlParser.js";
133
133
  import { ViewNameContext } from "./SparkSqlParser.js";
134
+ import { EmptyColumnContext } from "./SparkSqlParser.js";
134
135
  import { ColumnNameContext } from "./SparkSqlParser.js";
135
136
  import { ColumnNamePathContext } from "./SparkSqlParser.js";
137
+ import { ColumnNamePathAllowEmptyContext } from "./SparkSqlParser.js";
136
138
  import { ColumnNameSeqContext } from "./SparkSqlParser.js";
137
139
  import { ColumnNameCreateContext } from "./SparkSqlParser.js";
138
140
  import { IdentifierReferenceContext } from "./SparkSqlParser.js";
@@ -188,22 +190,35 @@ import { OrderedIdentifierListContext } from "./SparkSqlParser.js";
188
190
  import { OrderedIdentifierContext } from "./SparkSqlParser.js";
189
191
  import { IdentifierCommentListContext } from "./SparkSqlParser.js";
190
192
  import { IdentifierCommentContext } from "./SparkSqlParser.js";
191
- import { RelationPrimaryContext } from "./SparkSqlParser.js";
193
+ import { TableSourceContext } from "./SparkSqlParser.js";
194
+ import { SubQueryTableSourceContext } from "./SparkSqlParser.js";
195
+ import { JoinTableSourceContext } from "./SparkSqlParser.js";
196
+ import { InlineTableSourceContext } from "./SparkSqlParser.js";
197
+ import { FunctionTableSourceContext } from "./SparkSqlParser.js";
198
+ import { AtomSubQueryTableSourceContext } from "./SparkSqlParser.js";
199
+ import { InlineTableContext } from "./SparkSqlParser.js";
192
200
  import { FunctionTableSubqueryArgumentContext } from "./SparkSqlParser.js";
193
201
  import { TableArgumentPartitioningContext } from "./SparkSqlParser.js";
194
202
  import { FunctionTableNamedArgumentExpressionContext } from "./SparkSqlParser.js";
195
203
  import { FunctionTableReferenceArgumentContext } from "./SparkSqlParser.js";
196
204
  import { FunctionTableArgumentContext } from "./SparkSqlParser.js";
205
+ import { FunctionTableContext } from "./SparkSqlParser.js";
206
+ import { AtomFunctionTableContext } from "./SparkSqlParser.js";
197
207
  import { TableAliasContext } from "./SparkSqlParser.js";
198
208
  import { RowFormatContext } from "./SparkSqlParser.js";
199
209
  import { MultipartIdentifierListContext } from "./SparkSqlParser.js";
200
210
  import { MultipartIdentifierContext } from "./SparkSqlParser.js";
211
+ import { MultipartIdentifierAllowEmptyContext } from "./SparkSqlParser.js";
201
212
  import { MultipartIdentifierPropertyListContext } from "./SparkSqlParser.js";
202
213
  import { MultipartIdentifierPropertyContext } from "./SparkSqlParser.js";
203
214
  import { TableIdentifierContext } from "./SparkSqlParser.js";
204
215
  import { ViewIdentifierContext } from "./SparkSqlParser.js";
216
+ import { SelectLiteralColumnNameContext } from "./SparkSqlParser.js";
217
+ import { SelectExpressionColumnNameContext } from "./SparkSqlParser.js";
218
+ import { TableAllColumnsContext } from "./SparkSqlParser.js";
205
219
  import { NamedExpressionContext } from "./SparkSqlParser.js";
206
220
  import { NamedExpressionSeqContext } from "./SparkSqlParser.js";
221
+ import { SelectListContext } from "./SparkSqlParser.js";
207
222
  import { PartitionFieldListContext } from "./SparkSqlParser.js";
208
223
  import { PartitionFieldContext } from "./SparkSqlParser.js";
209
224
  import { TransformContext } from "./SparkSqlParser.js";
@@ -1784,6 +1799,16 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
1784
1799
  * @param ctx the parse tree
1785
1800
  */
1786
1801
  exitViewName?: (ctx: ViewNameContext) => void;
1802
+ /**
1803
+ * Enter a parse tree produced by `SparkSqlParser.emptyColumn`.
1804
+ * @param ctx the parse tree
1805
+ */
1806
+ enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
1807
+ /**
1808
+ * Exit a parse tree produced by `SparkSqlParser.emptyColumn`.
1809
+ * @param ctx the parse tree
1810
+ */
1811
+ exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
1787
1812
  /**
1788
1813
  * Enter a parse tree produced by `SparkSqlParser.columnName`.
1789
1814
  * @param ctx the parse tree
@@ -1804,6 +1829,16 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
1804
1829
  * @param ctx the parse tree
1805
1830
  */
1806
1831
  exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
1832
+ /**
1833
+ * Enter a parse tree produced by `SparkSqlParser.columnNamePathAllowEmpty`.
1834
+ * @param ctx the parse tree
1835
+ */
1836
+ enterColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
1837
+ /**
1838
+ * Exit a parse tree produced by `SparkSqlParser.columnNamePathAllowEmpty`.
1839
+ * @param ctx the parse tree
1840
+ */
1841
+ exitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
1807
1842
  /**
1808
1843
  * Enter a parse tree produced by `SparkSqlParser.columnNameSeq`.
1809
1844
  * @param ctx the parse tree
@@ -2355,15 +2390,85 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2355
2390
  */
2356
2391
  exitIdentifierComment?: (ctx: IdentifierCommentContext) => void;
2357
2392
  /**
2358
- * Enter a parse tree produced by `SparkSqlParser.relationPrimary`.
2393
+ * Enter a parse tree produced by the `tableSource`
2394
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2395
+ * @param ctx the parse tree
2396
+ */
2397
+ enterTableSource?: (ctx: TableSourceContext) => void;
2398
+ /**
2399
+ * Exit a parse tree produced by the `tableSource`
2400
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2401
+ * @param ctx the parse tree
2402
+ */
2403
+ exitTableSource?: (ctx: TableSourceContext) => void;
2404
+ /**
2405
+ * Enter a parse tree produced by the `subQueryTableSource`
2406
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2407
+ * @param ctx the parse tree
2408
+ */
2409
+ enterSubQueryTableSource?: (ctx: SubQueryTableSourceContext) => void;
2410
+ /**
2411
+ * Exit a parse tree produced by the `subQueryTableSource`
2412
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2413
+ * @param ctx the parse tree
2414
+ */
2415
+ exitSubQueryTableSource?: (ctx: SubQueryTableSourceContext) => void;
2416
+ /**
2417
+ * Enter a parse tree produced by the `joinTableSource`
2418
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2419
+ * @param ctx the parse tree
2420
+ */
2421
+ enterJoinTableSource?: (ctx: JoinTableSourceContext) => void;
2422
+ /**
2423
+ * Exit a parse tree produced by the `joinTableSource`
2424
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2425
+ * @param ctx the parse tree
2426
+ */
2427
+ exitJoinTableSource?: (ctx: JoinTableSourceContext) => void;
2428
+ /**
2429
+ * Enter a parse tree produced by the `inlineTableSource`
2430
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2431
+ * @param ctx the parse tree
2432
+ */
2433
+ enterInlineTableSource?: (ctx: InlineTableSourceContext) => void;
2434
+ /**
2435
+ * Exit a parse tree produced by the `inlineTableSource`
2436
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2437
+ * @param ctx the parse tree
2438
+ */
2439
+ exitInlineTableSource?: (ctx: InlineTableSourceContext) => void;
2440
+ /**
2441
+ * Enter a parse tree produced by the `functionTableSource`
2442
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2443
+ * @param ctx the parse tree
2444
+ */
2445
+ enterFunctionTableSource?: (ctx: FunctionTableSourceContext) => void;
2446
+ /**
2447
+ * Exit a parse tree produced by the `functionTableSource`
2448
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2449
+ * @param ctx the parse tree
2450
+ */
2451
+ exitFunctionTableSource?: (ctx: FunctionTableSourceContext) => void;
2452
+ /**
2453
+ * Enter a parse tree produced by `SparkSqlParser.atomSubQueryTableSource`.
2454
+ * @param ctx the parse tree
2455
+ */
2456
+ enterAtomSubQueryTableSource?: (ctx: AtomSubQueryTableSourceContext) => void;
2457
+ /**
2458
+ * Exit a parse tree produced by `SparkSqlParser.atomSubQueryTableSource`.
2359
2459
  * @param ctx the parse tree
2360
2460
  */
2361
- enterRelationPrimary?: (ctx: RelationPrimaryContext) => void;
2461
+ exitAtomSubQueryTableSource?: (ctx: AtomSubQueryTableSourceContext) => void;
2362
2462
  /**
2363
- * Exit a parse tree produced by `SparkSqlParser.relationPrimary`.
2463
+ * Enter a parse tree produced by `SparkSqlParser.inlineTable`.
2364
2464
  * @param ctx the parse tree
2365
2465
  */
2366
- exitRelationPrimary?: (ctx: RelationPrimaryContext) => void;
2466
+ enterInlineTable?: (ctx: InlineTableContext) => void;
2467
+ /**
2468
+ * Exit a parse tree produced by `SparkSqlParser.inlineTable`.
2469
+ * @param ctx the parse tree
2470
+ */
2471
+ exitInlineTable?: (ctx: InlineTableContext) => void;
2367
2472
  /**
2368
2473
  * Enter a parse tree produced by `SparkSqlParser.functionTableSubqueryArgument`.
2369
2474
  * @param ctx the parse tree
@@ -2414,6 +2519,26 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2414
2519
  * @param ctx the parse tree
2415
2520
  */
2416
2521
  exitFunctionTableArgument?: (ctx: FunctionTableArgumentContext) => void;
2522
+ /**
2523
+ * Enter a parse tree produced by `SparkSqlParser.functionTable`.
2524
+ * @param ctx the parse tree
2525
+ */
2526
+ enterFunctionTable?: (ctx: FunctionTableContext) => void;
2527
+ /**
2528
+ * Exit a parse tree produced by `SparkSqlParser.functionTable`.
2529
+ * @param ctx the parse tree
2530
+ */
2531
+ exitFunctionTable?: (ctx: FunctionTableContext) => void;
2532
+ /**
2533
+ * Enter a parse tree produced by `SparkSqlParser.atomFunctionTable`.
2534
+ * @param ctx the parse tree
2535
+ */
2536
+ enterAtomFunctionTable?: (ctx: AtomFunctionTableContext) => void;
2537
+ /**
2538
+ * Exit a parse tree produced by `SparkSqlParser.atomFunctionTable`.
2539
+ * @param ctx the parse tree
2540
+ */
2541
+ exitAtomFunctionTable?: (ctx: AtomFunctionTableContext) => void;
2417
2542
  /**
2418
2543
  * Enter a parse tree produced by `SparkSqlParser.tableAlias`.
2419
2544
  * @param ctx the parse tree
@@ -2454,6 +2579,16 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2454
2579
  * @param ctx the parse tree
2455
2580
  */
2456
2581
  exitMultipartIdentifier?: (ctx: MultipartIdentifierContext) => void;
2582
+ /**
2583
+ * Enter a parse tree produced by `SparkSqlParser.multipartIdentifierAllowEmpty`.
2584
+ * @param ctx the parse tree
2585
+ */
2586
+ enterMultipartIdentifierAllowEmpty?: (ctx: MultipartIdentifierAllowEmptyContext) => void;
2587
+ /**
2588
+ * Exit a parse tree produced by `SparkSqlParser.multipartIdentifierAllowEmpty`.
2589
+ * @param ctx the parse tree
2590
+ */
2591
+ exitMultipartIdentifierAllowEmpty?: (ctx: MultipartIdentifierAllowEmptyContext) => void;
2457
2592
  /**
2458
2593
  * Enter a parse tree produced by `SparkSqlParser.multipartIdentifierPropertyList`.
2459
2594
  * @param ctx the parse tree
@@ -2494,6 +2629,36 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2494
2629
  * @param ctx the parse tree
2495
2630
  */
2496
2631
  exitViewIdentifier?: (ctx: ViewIdentifierContext) => void;
2632
+ /**
2633
+ * Enter a parse tree produced by `SparkSqlParser.selectLiteralColumnName`.
2634
+ * @param ctx the parse tree
2635
+ */
2636
+ enterSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
2637
+ /**
2638
+ * Exit a parse tree produced by `SparkSqlParser.selectLiteralColumnName`.
2639
+ * @param ctx the parse tree
2640
+ */
2641
+ exitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
2642
+ /**
2643
+ * Enter a parse tree produced by `SparkSqlParser.selectExpressionColumnName`.
2644
+ * @param ctx the parse tree
2645
+ */
2646
+ enterSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
2647
+ /**
2648
+ * Exit a parse tree produced by `SparkSqlParser.selectExpressionColumnName`.
2649
+ * @param ctx the parse tree
2650
+ */
2651
+ exitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
2652
+ /**
2653
+ * Enter a parse tree produced by `SparkSqlParser.tableAllColumns`.
2654
+ * @param ctx the parse tree
2655
+ */
2656
+ enterTableAllColumns?: (ctx: TableAllColumnsContext) => void;
2657
+ /**
2658
+ * Exit a parse tree produced by `SparkSqlParser.tableAllColumns`.
2659
+ * @param ctx the parse tree
2660
+ */
2661
+ exitTableAllColumns?: (ctx: TableAllColumnsContext) => void;
2497
2662
  /**
2498
2663
  * Enter a parse tree produced by `SparkSqlParser.namedExpression`.
2499
2664
  * @param ctx the parse tree
@@ -2514,6 +2679,16 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2514
2679
  * @param ctx the parse tree
2515
2680
  */
2516
2681
  exitNamedExpressionSeq?: (ctx: NamedExpressionSeqContext) => void;
2682
+ /**
2683
+ * Enter a parse tree produced by `SparkSqlParser.selectList`.
2684
+ * @param ctx the parse tree
2685
+ */
2686
+ enterSelectList?: (ctx: SelectListContext) => void;
2687
+ /**
2688
+ * Exit a parse tree produced by `SparkSqlParser.selectList`.
2689
+ * @param ctx the parse tree
2690
+ */
2691
+ exitSelectList?: (ctx: SelectListContext) => void;
2517
2692
  /**
2518
2693
  * Enter a parse tree produced by `SparkSqlParser.partitionFieldList`.
2519
2694
  * @param ctx the parse tree
@@ -131,8 +131,10 @@ import { TableNameCreateContext } from "./SparkSqlParser.js";
131
131
  import { TableNameContext } from "./SparkSqlParser.js";
132
132
  import { ViewNameCreateContext } from "./SparkSqlParser.js";
133
133
  import { ViewNameContext } from "./SparkSqlParser.js";
134
+ import { EmptyColumnContext } from "./SparkSqlParser.js";
134
135
  import { ColumnNameContext } from "./SparkSqlParser.js";
135
136
  import { ColumnNamePathContext } from "./SparkSqlParser.js";
137
+ import { ColumnNamePathAllowEmptyContext } from "./SparkSqlParser.js";
136
138
  import { ColumnNameSeqContext } from "./SparkSqlParser.js";
137
139
  import { ColumnNameCreateContext } from "./SparkSqlParser.js";
138
140
  import { IdentifierReferenceContext } from "./SparkSqlParser.js";
@@ -188,22 +190,35 @@ import { OrderedIdentifierListContext } from "./SparkSqlParser.js";
188
190
  import { OrderedIdentifierContext } from "./SparkSqlParser.js";
189
191
  import { IdentifierCommentListContext } from "./SparkSqlParser.js";
190
192
  import { IdentifierCommentContext } from "./SparkSqlParser.js";
191
- import { RelationPrimaryContext } from "./SparkSqlParser.js";
193
+ import { TableSourceContext } from "./SparkSqlParser.js";
194
+ import { SubQueryTableSourceContext } from "./SparkSqlParser.js";
195
+ import { JoinTableSourceContext } from "./SparkSqlParser.js";
196
+ import { InlineTableSourceContext } from "./SparkSqlParser.js";
197
+ import { FunctionTableSourceContext } from "./SparkSqlParser.js";
198
+ import { AtomSubQueryTableSourceContext } from "./SparkSqlParser.js";
199
+ import { InlineTableContext } from "./SparkSqlParser.js";
192
200
  import { FunctionTableSubqueryArgumentContext } from "./SparkSqlParser.js";
193
201
  import { TableArgumentPartitioningContext } from "./SparkSqlParser.js";
194
202
  import { FunctionTableNamedArgumentExpressionContext } from "./SparkSqlParser.js";
195
203
  import { FunctionTableReferenceArgumentContext } from "./SparkSqlParser.js";
196
204
  import { FunctionTableArgumentContext } from "./SparkSqlParser.js";
205
+ import { FunctionTableContext } from "./SparkSqlParser.js";
206
+ import { AtomFunctionTableContext } from "./SparkSqlParser.js";
197
207
  import { TableAliasContext } from "./SparkSqlParser.js";
198
208
  import { RowFormatContext } from "./SparkSqlParser.js";
199
209
  import { MultipartIdentifierListContext } from "./SparkSqlParser.js";
200
210
  import { MultipartIdentifierContext } from "./SparkSqlParser.js";
211
+ import { MultipartIdentifierAllowEmptyContext } from "./SparkSqlParser.js";
201
212
  import { MultipartIdentifierPropertyListContext } from "./SparkSqlParser.js";
202
213
  import { MultipartIdentifierPropertyContext } from "./SparkSqlParser.js";
203
214
  import { TableIdentifierContext } from "./SparkSqlParser.js";
204
215
  import { ViewIdentifierContext } from "./SparkSqlParser.js";
216
+ import { SelectLiteralColumnNameContext } from "./SparkSqlParser.js";
217
+ import { SelectExpressionColumnNameContext } from "./SparkSqlParser.js";
218
+ import { TableAllColumnsContext } from "./SparkSqlParser.js";
205
219
  import { NamedExpressionContext } from "./SparkSqlParser.js";
206
220
  import { NamedExpressionSeqContext } from "./SparkSqlParser.js";
221
+ import { SelectListContext } from "./SparkSqlParser.js";
207
222
  import { PartitionFieldListContext } from "./SparkSqlParser.js";
208
223
  import { PartitionFieldContext } from "./SparkSqlParser.js";
209
224
  import { TransformContext } from "./SparkSqlParser.js";
@@ -1163,6 +1178,12 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1163
1178
  * @return the visitor result
1164
1179
  */
1165
1180
  visitViewName?: (ctx: ViewNameContext) => Result;
1181
+ /**
1182
+ * Visit a parse tree produced by `SparkSqlParser.emptyColumn`.
1183
+ * @param ctx the parse tree
1184
+ * @return the visitor result
1185
+ */
1186
+ visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
1166
1187
  /**
1167
1188
  * Visit a parse tree produced by `SparkSqlParser.columnName`.
1168
1189
  * @param ctx the parse tree
@@ -1175,6 +1196,12 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1175
1196
  * @return the visitor result
1176
1197
  */
1177
1198
  visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
1199
+ /**
1200
+ * Visit a parse tree produced by `SparkSqlParser.columnNamePathAllowEmpty`.
1201
+ * @param ctx the parse tree
1202
+ * @return the visitor result
1203
+ */
1204
+ visitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => Result;
1178
1205
  /**
1179
1206
  * Visit a parse tree produced by `SparkSqlParser.columnNameSeq`.
1180
1207
  * @param ctx the parse tree
@@ -1506,11 +1533,52 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1506
1533
  */
1507
1534
  visitIdentifierComment?: (ctx: IdentifierCommentContext) => Result;
1508
1535
  /**
1509
- * Visit a parse tree produced by `SparkSqlParser.relationPrimary`.
1536
+ * Visit a parse tree produced by the `tableSource`
1537
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1538
+ * @param ctx the parse tree
1539
+ * @return the visitor result
1540
+ */
1541
+ visitTableSource?: (ctx: TableSourceContext) => Result;
1542
+ /**
1543
+ * Visit a parse tree produced by the `subQueryTableSource`
1544
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1545
+ * @param ctx the parse tree
1546
+ * @return the visitor result
1547
+ */
1548
+ visitSubQueryTableSource?: (ctx: SubQueryTableSourceContext) => Result;
1549
+ /**
1550
+ * Visit a parse tree produced by the `joinTableSource`
1551
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1552
+ * @param ctx the parse tree
1553
+ * @return the visitor result
1554
+ */
1555
+ visitJoinTableSource?: (ctx: JoinTableSourceContext) => Result;
1556
+ /**
1557
+ * Visit a parse tree produced by the `inlineTableSource`
1558
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1559
+ * @param ctx the parse tree
1560
+ * @return the visitor result
1561
+ */
1562
+ visitInlineTableSource?: (ctx: InlineTableSourceContext) => Result;
1563
+ /**
1564
+ * Visit a parse tree produced by the `functionTableSource`
1565
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1566
+ * @param ctx the parse tree
1567
+ * @return the visitor result
1568
+ */
1569
+ visitFunctionTableSource?: (ctx: FunctionTableSourceContext) => Result;
1570
+ /**
1571
+ * Visit a parse tree produced by `SparkSqlParser.atomSubQueryTableSource`.
1572
+ * @param ctx the parse tree
1573
+ * @return the visitor result
1574
+ */
1575
+ visitAtomSubQueryTableSource?: (ctx: AtomSubQueryTableSourceContext) => Result;
1576
+ /**
1577
+ * Visit a parse tree produced by `SparkSqlParser.inlineTable`.
1510
1578
  * @param ctx the parse tree
1511
1579
  * @return the visitor result
1512
1580
  */
1513
- visitRelationPrimary?: (ctx: RelationPrimaryContext) => Result;
1581
+ visitInlineTable?: (ctx: InlineTableContext) => Result;
1514
1582
  /**
1515
1583
  * Visit a parse tree produced by `SparkSqlParser.functionTableSubqueryArgument`.
1516
1584
  * @param ctx the parse tree
@@ -1541,6 +1609,18 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1541
1609
  * @return the visitor result
1542
1610
  */
1543
1611
  visitFunctionTableArgument?: (ctx: FunctionTableArgumentContext) => Result;
1612
+ /**
1613
+ * Visit a parse tree produced by `SparkSqlParser.functionTable`.
1614
+ * @param ctx the parse tree
1615
+ * @return the visitor result
1616
+ */
1617
+ visitFunctionTable?: (ctx: FunctionTableContext) => Result;
1618
+ /**
1619
+ * Visit a parse tree produced by `SparkSqlParser.atomFunctionTable`.
1620
+ * @param ctx the parse tree
1621
+ * @return the visitor result
1622
+ */
1623
+ visitAtomFunctionTable?: (ctx: AtomFunctionTableContext) => Result;
1544
1624
  /**
1545
1625
  * Visit a parse tree produced by `SparkSqlParser.tableAlias`.
1546
1626
  * @param ctx the parse tree
@@ -1565,6 +1645,12 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1565
1645
  * @return the visitor result
1566
1646
  */
1567
1647
  visitMultipartIdentifier?: (ctx: MultipartIdentifierContext) => Result;
1648
+ /**
1649
+ * Visit a parse tree produced by `SparkSqlParser.multipartIdentifierAllowEmpty`.
1650
+ * @param ctx the parse tree
1651
+ * @return the visitor result
1652
+ */
1653
+ visitMultipartIdentifierAllowEmpty?: (ctx: MultipartIdentifierAllowEmptyContext) => Result;
1568
1654
  /**
1569
1655
  * Visit a parse tree produced by `SparkSqlParser.multipartIdentifierPropertyList`.
1570
1656
  * @param ctx the parse tree
@@ -1589,6 +1675,24 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1589
1675
  * @return the visitor result
1590
1676
  */
1591
1677
  visitViewIdentifier?: (ctx: ViewIdentifierContext) => Result;
1678
+ /**
1679
+ * Visit a parse tree produced by `SparkSqlParser.selectLiteralColumnName`.
1680
+ * @param ctx the parse tree
1681
+ * @return the visitor result
1682
+ */
1683
+ visitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => Result;
1684
+ /**
1685
+ * Visit a parse tree produced by `SparkSqlParser.selectExpressionColumnName`.
1686
+ * @param ctx the parse tree
1687
+ * @return the visitor result
1688
+ */
1689
+ visitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => Result;
1690
+ /**
1691
+ * Visit a parse tree produced by `SparkSqlParser.tableAllColumns`.
1692
+ * @param ctx the parse tree
1693
+ * @return the visitor result
1694
+ */
1695
+ visitTableAllColumns?: (ctx: TableAllColumnsContext) => Result;
1592
1696
  /**
1593
1697
  * Visit a parse tree produced by `SparkSqlParser.namedExpression`.
1594
1698
  * @param ctx the parse tree
@@ -1601,6 +1705,12 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1601
1705
  * @return the visitor result
1602
1706
  */
1603
1707
  visitNamedExpressionSeq?: (ctx: NamedExpressionSeqContext) => Result;
1708
+ /**
1709
+ * Visit a parse tree produced by `SparkSqlParser.selectList`.
1710
+ * @param ctx the parse tree
1711
+ * @return the visitor result
1712
+ */
1713
+ visitSelectList?: (ctx: SelectListContext) => Result;
1604
1714
  /**
1605
1715
  * Visit a parse tree produced by `SparkSqlParser.partitionFieldList`.
1606
1716
  * @param ctx the parse tree