dt-sql-parser 4.4.0-beta.0 → 4.5.0-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 (53) hide show
  1. package/README.md +140 -3
  2. package/dist/lib/flink/FlinkSqlParser.d.ts +221 -114
  3. package/dist/lib/flink/FlinkSqlParser.js +3608 -2907
  4. package/dist/lib/flink/FlinkSqlParserListener.d.ts +99 -0
  5. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +63 -0
  6. package/dist/lib/hive/HiveSqlParser.d.ts +169 -116
  7. package/dist/lib/hive/HiveSqlParser.js +5708 -5428
  8. package/dist/lib/hive/HiveSqlParserListener.d.ts +55 -0
  9. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +35 -0
  10. package/dist/lib/impala/ImpalaSqlParser.d.ts +150 -81
  11. package/dist/lib/impala/ImpalaSqlParser.js +3730 -3323
  12. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +76 -14
  13. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +48 -8
  14. package/dist/lib/mysql/MySqlParser.d.ts +346 -316
  15. package/dist/lib/mysql/MySqlParser.js +10224 -10020
  16. package/dist/lib/mysql/MySqlParserListener.d.ts +55 -26
  17. package/dist/lib/mysql/MySqlParserVisitor.d.ts +33 -14
  18. package/dist/lib/postgresql/PostgreSqlParser.d.ts +215 -169
  19. package/dist/lib/postgresql/PostgreSqlParser.js +10333 -10051
  20. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +51 -7
  21. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +32 -4
  22. package/dist/lib/spark/SparkSqlParser.d.ts +215 -90
  23. package/dist/lib/spark/SparkSqlParser.js +5143 -4496
  24. package/dist/lib/spark/SparkSqlParserListener.d.ts +147 -5
  25. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +92 -3
  26. package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
  27. package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
  28. package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
  29. package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
  30. package/dist/parser/common/basicSQL.js +2 -0
  31. package/dist/parser/common/entityCollector.d.ts +91 -4
  32. package/dist/parser/common/entityCollector.js +215 -11
  33. package/dist/parser/common/textAndWord.d.ts +9 -1
  34. package/dist/parser/common/textAndWord.js +2 -0
  35. package/dist/parser/common/types.d.ts +2 -0
  36. package/dist/parser/common/types.js +2 -0
  37. package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
  38. package/dist/parser/flink/flinkEntityCollector.js +76 -14
  39. package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
  40. package/dist/parser/hive/hiveEntityCollector.js +85 -12
  41. package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
  42. package/dist/parser/impala/impalaEntityCollector.js +63 -12
  43. package/dist/parser/impala/index.js +2 -1
  44. package/dist/parser/mysql/mysqlEntityCollector.d.ts +9 -1
  45. package/dist/parser/mysql/mysqlEntityCollector.js +55 -12
  46. package/dist/parser/postgresql/postgreEntityCollector.d.ts +10 -1
  47. package/dist/parser/postgresql/postgreEntityCollector.js +86 -22
  48. package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
  49. package/dist/parser/spark/sparkEntityCollector.js +88 -12
  50. package/dist/parser/trino/index.js +2 -1
  51. package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
  52. package/dist/parser/trino/trinoEntityCollector.js +53 -12
  53. package/package.json +1 -1
@@ -188,12 +188,20 @@ import { OrderedIdentifierListContext } from "./SparkSqlParser.js";
188
188
  import { OrderedIdentifierContext } from "./SparkSqlParser.js";
189
189
  import { IdentifierCommentListContext } from "./SparkSqlParser.js";
190
190
  import { IdentifierCommentContext } from "./SparkSqlParser.js";
191
- import { RelationPrimaryContext } from "./SparkSqlParser.js";
191
+ import { TableSourceContext } from "./SparkSqlParser.js";
192
+ import { SubQueryTableSourceContext } from "./SparkSqlParser.js";
193
+ import { JoinTableSourceContext } from "./SparkSqlParser.js";
194
+ import { InlineTableSourceContext } from "./SparkSqlParser.js";
195
+ import { FunctionTableSourceContext } from "./SparkSqlParser.js";
196
+ import { AtomSubQueryTableSourceContext } from "./SparkSqlParser.js";
197
+ import { InlineTableContext } from "./SparkSqlParser.js";
192
198
  import { FunctionTableSubqueryArgumentContext } from "./SparkSqlParser.js";
193
199
  import { TableArgumentPartitioningContext } from "./SparkSqlParser.js";
194
200
  import { FunctionTableNamedArgumentExpressionContext } from "./SparkSqlParser.js";
195
201
  import { FunctionTableReferenceArgumentContext } from "./SparkSqlParser.js";
196
202
  import { FunctionTableArgumentContext } from "./SparkSqlParser.js";
203
+ import { FunctionTableContext } from "./SparkSqlParser.js";
204
+ import { AtomFunctionTableContext } from "./SparkSqlParser.js";
197
205
  import { TableAliasContext } from "./SparkSqlParser.js";
198
206
  import { RowFormatContext } from "./SparkSqlParser.js";
199
207
  import { MultipartIdentifierListContext } from "./SparkSqlParser.js";
@@ -202,8 +210,12 @@ import { MultipartIdentifierPropertyListContext } from "./SparkSqlParser.js";
202
210
  import { MultipartIdentifierPropertyContext } from "./SparkSqlParser.js";
203
211
  import { TableIdentifierContext } from "./SparkSqlParser.js";
204
212
  import { ViewIdentifierContext } from "./SparkSqlParser.js";
213
+ import { SelectLiteralColumnNameContext } from "./SparkSqlParser.js";
214
+ import { SelectExpressionColumnNameContext } from "./SparkSqlParser.js";
215
+ import { TableAllColumnsContext } from "./SparkSqlParser.js";
205
216
  import { NamedExpressionContext } from "./SparkSqlParser.js";
206
217
  import { NamedExpressionSeqContext } from "./SparkSqlParser.js";
218
+ import { SelectListContext } from "./SparkSqlParser.js";
207
219
  import { PartitionFieldListContext } from "./SparkSqlParser.js";
208
220
  import { PartitionFieldContext } from "./SparkSqlParser.js";
209
221
  import { TransformContext } from "./SparkSqlParser.js";
@@ -2355,15 +2367,85 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2355
2367
  */
2356
2368
  exitIdentifierComment?: (ctx: IdentifierCommentContext) => void;
2357
2369
  /**
2358
- * Enter a parse tree produced by `SparkSqlParser.relationPrimary`.
2370
+ * Enter a parse tree produced by the `tableSource`
2371
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2359
2372
  * @param ctx the parse tree
2360
2373
  */
2361
- enterRelationPrimary?: (ctx: RelationPrimaryContext) => void;
2374
+ enterTableSource?: (ctx: TableSourceContext) => void;
2362
2375
  /**
2363
- * Exit a parse tree produced by `SparkSqlParser.relationPrimary`.
2376
+ * Exit a parse tree produced by the `tableSource`
2377
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2364
2378
  * @param ctx the parse tree
2365
2379
  */
2366
- exitRelationPrimary?: (ctx: RelationPrimaryContext) => void;
2380
+ exitTableSource?: (ctx: TableSourceContext) => void;
2381
+ /**
2382
+ * Enter a parse tree produced by the `subQueryTableSource`
2383
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2384
+ * @param ctx the parse tree
2385
+ */
2386
+ enterSubQueryTableSource?: (ctx: SubQueryTableSourceContext) => void;
2387
+ /**
2388
+ * Exit a parse tree produced by the `subQueryTableSource`
2389
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2390
+ * @param ctx the parse tree
2391
+ */
2392
+ exitSubQueryTableSource?: (ctx: SubQueryTableSourceContext) => void;
2393
+ /**
2394
+ * Enter a parse tree produced by the `joinTableSource`
2395
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2396
+ * @param ctx the parse tree
2397
+ */
2398
+ enterJoinTableSource?: (ctx: JoinTableSourceContext) => void;
2399
+ /**
2400
+ * Exit a parse tree produced by the `joinTableSource`
2401
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2402
+ * @param ctx the parse tree
2403
+ */
2404
+ exitJoinTableSource?: (ctx: JoinTableSourceContext) => void;
2405
+ /**
2406
+ * Enter a parse tree produced by the `inlineTableSource`
2407
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2408
+ * @param ctx the parse tree
2409
+ */
2410
+ enterInlineTableSource?: (ctx: InlineTableSourceContext) => void;
2411
+ /**
2412
+ * Exit a parse tree produced by the `inlineTableSource`
2413
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2414
+ * @param ctx the parse tree
2415
+ */
2416
+ exitInlineTableSource?: (ctx: InlineTableSourceContext) => void;
2417
+ /**
2418
+ * Enter a parse tree produced by the `functionTableSource`
2419
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2420
+ * @param ctx the parse tree
2421
+ */
2422
+ enterFunctionTableSource?: (ctx: FunctionTableSourceContext) => void;
2423
+ /**
2424
+ * Exit a parse tree produced by the `functionTableSource`
2425
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
2426
+ * @param ctx the parse tree
2427
+ */
2428
+ exitFunctionTableSource?: (ctx: FunctionTableSourceContext) => void;
2429
+ /**
2430
+ * Enter a parse tree produced by `SparkSqlParser.atomSubQueryTableSource`.
2431
+ * @param ctx the parse tree
2432
+ */
2433
+ enterAtomSubQueryTableSource?: (ctx: AtomSubQueryTableSourceContext) => void;
2434
+ /**
2435
+ * Exit a parse tree produced by `SparkSqlParser.atomSubQueryTableSource`.
2436
+ * @param ctx the parse tree
2437
+ */
2438
+ exitAtomSubQueryTableSource?: (ctx: AtomSubQueryTableSourceContext) => void;
2439
+ /**
2440
+ * Enter a parse tree produced by `SparkSqlParser.inlineTable`.
2441
+ * @param ctx the parse tree
2442
+ */
2443
+ enterInlineTable?: (ctx: InlineTableContext) => void;
2444
+ /**
2445
+ * Exit a parse tree produced by `SparkSqlParser.inlineTable`.
2446
+ * @param ctx the parse tree
2447
+ */
2448
+ exitInlineTable?: (ctx: InlineTableContext) => void;
2367
2449
  /**
2368
2450
  * Enter a parse tree produced by `SparkSqlParser.functionTableSubqueryArgument`.
2369
2451
  * @param ctx the parse tree
@@ -2414,6 +2496,26 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2414
2496
  * @param ctx the parse tree
2415
2497
  */
2416
2498
  exitFunctionTableArgument?: (ctx: FunctionTableArgumentContext) => void;
2499
+ /**
2500
+ * Enter a parse tree produced by `SparkSqlParser.functionTable`.
2501
+ * @param ctx the parse tree
2502
+ */
2503
+ enterFunctionTable?: (ctx: FunctionTableContext) => void;
2504
+ /**
2505
+ * Exit a parse tree produced by `SparkSqlParser.functionTable`.
2506
+ * @param ctx the parse tree
2507
+ */
2508
+ exitFunctionTable?: (ctx: FunctionTableContext) => void;
2509
+ /**
2510
+ * Enter a parse tree produced by `SparkSqlParser.atomFunctionTable`.
2511
+ * @param ctx the parse tree
2512
+ */
2513
+ enterAtomFunctionTable?: (ctx: AtomFunctionTableContext) => void;
2514
+ /**
2515
+ * Exit a parse tree produced by `SparkSqlParser.atomFunctionTable`.
2516
+ * @param ctx the parse tree
2517
+ */
2518
+ exitAtomFunctionTable?: (ctx: AtomFunctionTableContext) => void;
2417
2519
  /**
2418
2520
  * Enter a parse tree produced by `SparkSqlParser.tableAlias`.
2419
2521
  * @param ctx the parse tree
@@ -2494,6 +2596,36 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2494
2596
  * @param ctx the parse tree
2495
2597
  */
2496
2598
  exitViewIdentifier?: (ctx: ViewIdentifierContext) => void;
2599
+ /**
2600
+ * Enter a parse tree produced by `SparkSqlParser.selectLiteralColumnName`.
2601
+ * @param ctx the parse tree
2602
+ */
2603
+ enterSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
2604
+ /**
2605
+ * Exit a parse tree produced by `SparkSqlParser.selectLiteralColumnName`.
2606
+ * @param ctx the parse tree
2607
+ */
2608
+ exitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
2609
+ /**
2610
+ * Enter a parse tree produced by `SparkSqlParser.selectExpressionColumnName`.
2611
+ * @param ctx the parse tree
2612
+ */
2613
+ enterSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
2614
+ /**
2615
+ * Exit a parse tree produced by `SparkSqlParser.selectExpressionColumnName`.
2616
+ * @param ctx the parse tree
2617
+ */
2618
+ exitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
2619
+ /**
2620
+ * Enter a parse tree produced by `SparkSqlParser.tableAllColumns`.
2621
+ * @param ctx the parse tree
2622
+ */
2623
+ enterTableAllColumns?: (ctx: TableAllColumnsContext) => void;
2624
+ /**
2625
+ * Exit a parse tree produced by `SparkSqlParser.tableAllColumns`.
2626
+ * @param ctx the parse tree
2627
+ */
2628
+ exitTableAllColumns?: (ctx: TableAllColumnsContext) => void;
2497
2629
  /**
2498
2630
  * Enter a parse tree produced by `SparkSqlParser.namedExpression`.
2499
2631
  * @param ctx the parse tree
@@ -2514,6 +2646,16 @@ export declare class SparkSqlParserListener implements ParseTreeListener {
2514
2646
  * @param ctx the parse tree
2515
2647
  */
2516
2648
  exitNamedExpressionSeq?: (ctx: NamedExpressionSeqContext) => void;
2649
+ /**
2650
+ * Enter a parse tree produced by `SparkSqlParser.selectList`.
2651
+ * @param ctx the parse tree
2652
+ */
2653
+ enterSelectList?: (ctx: SelectListContext) => void;
2654
+ /**
2655
+ * Exit a parse tree produced by `SparkSqlParser.selectList`.
2656
+ * @param ctx the parse tree
2657
+ */
2658
+ exitSelectList?: (ctx: SelectListContext) => void;
2517
2659
  /**
2518
2660
  * Enter a parse tree produced by `SparkSqlParser.partitionFieldList`.
2519
2661
  * @param ctx the parse tree
@@ -188,12 +188,20 @@ import { OrderedIdentifierListContext } from "./SparkSqlParser.js";
188
188
  import { OrderedIdentifierContext } from "./SparkSqlParser.js";
189
189
  import { IdentifierCommentListContext } from "./SparkSqlParser.js";
190
190
  import { IdentifierCommentContext } from "./SparkSqlParser.js";
191
- import { RelationPrimaryContext } from "./SparkSqlParser.js";
191
+ import { TableSourceContext } from "./SparkSqlParser.js";
192
+ import { SubQueryTableSourceContext } from "./SparkSqlParser.js";
193
+ import { JoinTableSourceContext } from "./SparkSqlParser.js";
194
+ import { InlineTableSourceContext } from "./SparkSqlParser.js";
195
+ import { FunctionTableSourceContext } from "./SparkSqlParser.js";
196
+ import { AtomSubQueryTableSourceContext } from "./SparkSqlParser.js";
197
+ import { InlineTableContext } from "./SparkSqlParser.js";
192
198
  import { FunctionTableSubqueryArgumentContext } from "./SparkSqlParser.js";
193
199
  import { TableArgumentPartitioningContext } from "./SparkSqlParser.js";
194
200
  import { FunctionTableNamedArgumentExpressionContext } from "./SparkSqlParser.js";
195
201
  import { FunctionTableReferenceArgumentContext } from "./SparkSqlParser.js";
196
202
  import { FunctionTableArgumentContext } from "./SparkSqlParser.js";
203
+ import { FunctionTableContext } from "./SparkSqlParser.js";
204
+ import { AtomFunctionTableContext } from "./SparkSqlParser.js";
197
205
  import { TableAliasContext } from "./SparkSqlParser.js";
198
206
  import { RowFormatContext } from "./SparkSqlParser.js";
199
207
  import { MultipartIdentifierListContext } from "./SparkSqlParser.js";
@@ -202,8 +210,12 @@ import { MultipartIdentifierPropertyListContext } from "./SparkSqlParser.js";
202
210
  import { MultipartIdentifierPropertyContext } from "./SparkSqlParser.js";
203
211
  import { TableIdentifierContext } from "./SparkSqlParser.js";
204
212
  import { ViewIdentifierContext } from "./SparkSqlParser.js";
213
+ import { SelectLiteralColumnNameContext } from "./SparkSqlParser.js";
214
+ import { SelectExpressionColumnNameContext } from "./SparkSqlParser.js";
215
+ import { TableAllColumnsContext } from "./SparkSqlParser.js";
205
216
  import { NamedExpressionContext } from "./SparkSqlParser.js";
206
217
  import { NamedExpressionSeqContext } from "./SparkSqlParser.js";
218
+ import { SelectListContext } from "./SparkSqlParser.js";
207
219
  import { PartitionFieldListContext } from "./SparkSqlParser.js";
208
220
  import { PartitionFieldContext } from "./SparkSqlParser.js";
209
221
  import { TransformContext } from "./SparkSqlParser.js";
@@ -1506,11 +1518,52 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1506
1518
  */
1507
1519
  visitIdentifierComment?: (ctx: IdentifierCommentContext) => Result;
1508
1520
  /**
1509
- * Visit a parse tree produced by `SparkSqlParser.relationPrimary`.
1521
+ * Visit a parse tree produced by the `tableSource`
1522
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1510
1523
  * @param ctx the parse tree
1511
1524
  * @return the visitor result
1512
1525
  */
1513
- visitRelationPrimary?: (ctx: RelationPrimaryContext) => Result;
1526
+ visitTableSource?: (ctx: TableSourceContext) => Result;
1527
+ /**
1528
+ * Visit a parse tree produced by the `subQueryTableSource`
1529
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1530
+ * @param ctx the parse tree
1531
+ * @return the visitor result
1532
+ */
1533
+ visitSubQueryTableSource?: (ctx: SubQueryTableSourceContext) => Result;
1534
+ /**
1535
+ * Visit a parse tree produced by the `joinTableSource`
1536
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1537
+ * @param ctx the parse tree
1538
+ * @return the visitor result
1539
+ */
1540
+ visitJoinTableSource?: (ctx: JoinTableSourceContext) => Result;
1541
+ /**
1542
+ * Visit a parse tree produced by the `inlineTableSource`
1543
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1544
+ * @param ctx the parse tree
1545
+ * @return the visitor result
1546
+ */
1547
+ visitInlineTableSource?: (ctx: InlineTableSourceContext) => Result;
1548
+ /**
1549
+ * Visit a parse tree produced by the `functionTableSource`
1550
+ * labeled alternative in `SparkSqlParser.relationPrimary`.
1551
+ * @param ctx the parse tree
1552
+ * @return the visitor result
1553
+ */
1554
+ visitFunctionTableSource?: (ctx: FunctionTableSourceContext) => Result;
1555
+ /**
1556
+ * Visit a parse tree produced by `SparkSqlParser.atomSubQueryTableSource`.
1557
+ * @param ctx the parse tree
1558
+ * @return the visitor result
1559
+ */
1560
+ visitAtomSubQueryTableSource?: (ctx: AtomSubQueryTableSourceContext) => Result;
1561
+ /**
1562
+ * Visit a parse tree produced by `SparkSqlParser.inlineTable`.
1563
+ * @param ctx the parse tree
1564
+ * @return the visitor result
1565
+ */
1566
+ visitInlineTable?: (ctx: InlineTableContext) => Result;
1514
1567
  /**
1515
1568
  * Visit a parse tree produced by `SparkSqlParser.functionTableSubqueryArgument`.
1516
1569
  * @param ctx the parse tree
@@ -1541,6 +1594,18 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1541
1594
  * @return the visitor result
1542
1595
  */
1543
1596
  visitFunctionTableArgument?: (ctx: FunctionTableArgumentContext) => Result;
1597
+ /**
1598
+ * Visit a parse tree produced by `SparkSqlParser.functionTable`.
1599
+ * @param ctx the parse tree
1600
+ * @return the visitor result
1601
+ */
1602
+ visitFunctionTable?: (ctx: FunctionTableContext) => Result;
1603
+ /**
1604
+ * Visit a parse tree produced by `SparkSqlParser.atomFunctionTable`.
1605
+ * @param ctx the parse tree
1606
+ * @return the visitor result
1607
+ */
1608
+ visitAtomFunctionTable?: (ctx: AtomFunctionTableContext) => Result;
1544
1609
  /**
1545
1610
  * Visit a parse tree produced by `SparkSqlParser.tableAlias`.
1546
1611
  * @param ctx the parse tree
@@ -1589,6 +1654,24 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1589
1654
  * @return the visitor result
1590
1655
  */
1591
1656
  visitViewIdentifier?: (ctx: ViewIdentifierContext) => Result;
1657
+ /**
1658
+ * Visit a parse tree produced by `SparkSqlParser.selectLiteralColumnName`.
1659
+ * @param ctx the parse tree
1660
+ * @return the visitor result
1661
+ */
1662
+ visitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => Result;
1663
+ /**
1664
+ * Visit a parse tree produced by `SparkSqlParser.selectExpressionColumnName`.
1665
+ * @param ctx the parse tree
1666
+ * @return the visitor result
1667
+ */
1668
+ visitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => Result;
1669
+ /**
1670
+ * Visit a parse tree produced by `SparkSqlParser.tableAllColumns`.
1671
+ * @param ctx the parse tree
1672
+ * @return the visitor result
1673
+ */
1674
+ visitTableAllColumns?: (ctx: TableAllColumnsContext) => Result;
1592
1675
  /**
1593
1676
  * Visit a parse tree produced by `SparkSqlParser.namedExpression`.
1594
1677
  * @param ctx the parse tree
@@ -1601,6 +1684,12 @@ export declare class SparkSqlParserVisitor<Result> extends AbstractParseTreeVisi
1601
1684
  * @return the visitor result
1602
1685
  */
1603
1686
  visitNamedExpressionSeq?: (ctx: NamedExpressionSeqContext) => Result;
1687
+ /**
1688
+ * Visit a parse tree produced by `SparkSqlParser.selectList`.
1689
+ * @param ctx the parse tree
1690
+ * @return the visitor result
1691
+ */
1692
+ visitSelectList?: (ctx: SelectListContext) => Result;
1604
1693
  /**
1605
1694
  * Visit a parse tree produced by `SparkSqlParser.partitionFieldList`.
1606
1695
  * @param ctx the parse tree
@@ -116,6 +116,7 @@ import { SortItemContext } from "./TrinoSqlParser.js";
116
116
  import { QuerySpecificationContext } from "./TrinoSqlParser.js";
117
117
  import { WhereClauseContext } from "./TrinoSqlParser.js";
118
118
  import { HavingClauseContext } from "./TrinoSqlParser.js";
119
+ import { SelectListContext } from "./TrinoSqlParser.js";
119
120
  import { GroupByContext } from "./TrinoSqlParser.js";
120
121
  import { PartitionByContext } from "./TrinoSqlParser.js";
121
122
  import { SingleGroupingSetContext } from "./TrinoSqlParser.js";
@@ -128,8 +129,11 @@ import { WindowDefinitionContext } from "./TrinoSqlParser.js";
128
129
  import { WindowSpecificationContext } from "./TrinoSqlParser.js";
129
130
  import { NamedQueryContext } from "./TrinoSqlParser.js";
130
131
  import { SetQuantifierContext } from "./TrinoSqlParser.js";
131
- import { SelectSingleContext } from "./TrinoSqlParser.js";
132
- import { SelectAllContext } from "./TrinoSqlParser.js";
132
+ import { SelectItemContext } from "./TrinoSqlParser.js";
133
+ import { SelectAllWithoutTableContext } from "./TrinoSqlParser.js";
134
+ import { TableAllColumnsContext } from "./TrinoSqlParser.js";
135
+ import { SelectLiteralColumnNameContext } from "./TrinoSqlParser.js";
136
+ import { SelectExpressionColumnNameContext } from "./TrinoSqlParser.js";
133
137
  import { RelationDefaultContext } from "./TrinoSqlParser.js";
134
138
  import { JoinRelationContext } from "./TrinoSqlParser.js";
135
139
  import { JoinTypeContext } from "./TrinoSqlParser.js";
@@ -151,11 +155,12 @@ import { ColumnListCreateContext } from "./TrinoSqlParser.js";
151
155
  import { ColumnListContext } from "./TrinoSqlParser.js";
152
156
  import { ColumnAliasesContext } from "./TrinoSqlParser.js";
153
157
  import { TableNameContext } from "./TrinoSqlParser.js";
158
+ import { ExpressionSourceTableContext } from "./TrinoSqlParser.js";
159
+ import { ParenthesizedRelationContext } from "./TrinoSqlParser.js";
154
160
  import { SubqueryRelationContext } from "./TrinoSqlParser.js";
155
161
  import { UnnestContext } from "./TrinoSqlParser.js";
156
162
  import { LateralContext } from "./TrinoSqlParser.js";
157
163
  import { TableFunctionInvocationContext } from "./TrinoSqlParser.js";
158
- import { ParenthesizedRelationContext } from "./TrinoSqlParser.js";
159
164
  import { JsonTableContext } from "./TrinoSqlParser.js";
160
165
  import { OrdinalityColumnContext } from "./TrinoSqlParser.js";
161
166
  import { ValueColumnContext } from "./TrinoSqlParser.js";
@@ -1734,6 +1739,16 @@ export declare class TrinoSqlListener implements ParseTreeListener {
1734
1739
  * @param ctx the parse tree
1735
1740
  */
1736
1741
  exitHavingClause?: (ctx: HavingClauseContext) => void;
1742
+ /**
1743
+ * Enter a parse tree produced by `TrinoSqlParser.selectList`.
1744
+ * @param ctx the parse tree
1745
+ */
1746
+ enterSelectList?: (ctx: SelectListContext) => void;
1747
+ /**
1748
+ * Exit a parse tree produced by `TrinoSqlParser.selectList`.
1749
+ * @param ctx the parse tree
1750
+ */
1751
+ exitSelectList?: (ctx: SelectListContext) => void;
1737
1752
  /**
1738
1753
  * Enter a parse tree produced by `TrinoSqlParser.groupBy`.
1739
1754
  * @param ctx the parse tree
@@ -1863,29 +1878,55 @@ export declare class TrinoSqlListener implements ParseTreeListener {
1863
1878
  */
1864
1879
  exitSetQuantifier?: (ctx: SetQuantifierContext) => void;
1865
1880
  /**
1866
- * Enter a parse tree produced by the `selectSingle`
1867
- * labeled alternative in `TrinoSqlParser.selectItem`.
1881
+ * Enter a parse tree produced by `TrinoSqlParser.selectItem`.
1882
+ * @param ctx the parse tree
1883
+ */
1884
+ enterSelectItem?: (ctx: SelectItemContext) => void;
1885
+ /**
1886
+ * Exit a parse tree produced by `TrinoSqlParser.selectItem`.
1887
+ * @param ctx the parse tree
1888
+ */
1889
+ exitSelectItem?: (ctx: SelectItemContext) => void;
1890
+ /**
1891
+ * Enter a parse tree produced by `TrinoSqlParser.selectAllWithoutTable`.
1892
+ * @param ctx the parse tree
1893
+ */
1894
+ enterSelectAllWithoutTable?: (ctx: SelectAllWithoutTableContext) => void;
1895
+ /**
1896
+ * Exit a parse tree produced by `TrinoSqlParser.selectAllWithoutTable`.
1868
1897
  * @param ctx the parse tree
1869
1898
  */
1870
- enterSelectSingle?: (ctx: SelectSingleContext) => void;
1899
+ exitSelectAllWithoutTable?: (ctx: SelectAllWithoutTableContext) => void;
1871
1900
  /**
1872
- * Exit a parse tree produced by the `selectSingle`
1873
- * labeled alternative in `TrinoSqlParser.selectItem`.
1901
+ * Enter a parse tree produced by `TrinoSqlParser.tableAllColumns`.
1874
1902
  * @param ctx the parse tree
1875
1903
  */
1876
- exitSelectSingle?: (ctx: SelectSingleContext) => void;
1904
+ enterTableAllColumns?: (ctx: TableAllColumnsContext) => void;
1877
1905
  /**
1878
- * Enter a parse tree produced by the `selectAll`
1879
- * labeled alternative in `TrinoSqlParser.selectItem`.
1906
+ * Exit a parse tree produced by `TrinoSqlParser.tableAllColumns`.
1880
1907
  * @param ctx the parse tree
1881
1908
  */
1882
- enterSelectAll?: (ctx: SelectAllContext) => void;
1909
+ exitTableAllColumns?: (ctx: TableAllColumnsContext) => void;
1883
1910
  /**
1884
- * Exit a parse tree produced by the `selectAll`
1885
- * labeled alternative in `TrinoSqlParser.selectItem`.
1911
+ * Enter a parse tree produced by `TrinoSqlParser.selectLiteralColumnName`.
1886
1912
  * @param ctx the parse tree
1887
1913
  */
1888
- exitSelectAll?: (ctx: SelectAllContext) => void;
1914
+ enterSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
1915
+ /**
1916
+ * Exit a parse tree produced by `TrinoSqlParser.selectLiteralColumnName`.
1917
+ * @param ctx the parse tree
1918
+ */
1919
+ exitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
1920
+ /**
1921
+ * Enter a parse tree produced by `TrinoSqlParser.selectExpressionColumnName`.
1922
+ * @param ctx the parse tree
1923
+ */
1924
+ enterSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
1925
+ /**
1926
+ * Exit a parse tree produced by `TrinoSqlParser.selectExpressionColumnName`.
1927
+ * @param ctx the parse tree
1928
+ */
1929
+ exitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
1889
1930
  /**
1890
1931
  * Enter a parse tree produced by the `relationDefault`
1891
1932
  * labeled alternative in `TrinoSqlParser.relation`.
@@ -2103,74 +2144,86 @@ export declare class TrinoSqlListener implements ParseTreeListener {
2103
2144
  */
2104
2145
  exitTableName?: (ctx: TableNameContext) => void;
2105
2146
  /**
2106
- * Enter a parse tree produced by the `subqueryRelation`
2147
+ * Enter a parse tree produced by the `expressionSourceTable`
2148
+ * labeled alternative in `TrinoSqlParser.relationPrimary`.
2149
+ * @param ctx the parse tree
2150
+ */
2151
+ enterExpressionSourceTable?: (ctx: ExpressionSourceTableContext) => void;
2152
+ /**
2153
+ * Exit a parse tree produced by the `expressionSourceTable`
2154
+ * labeled alternative in `TrinoSqlParser.relationPrimary`.
2155
+ * @param ctx the parse tree
2156
+ */
2157
+ exitExpressionSourceTable?: (ctx: ExpressionSourceTableContext) => void;
2158
+ /**
2159
+ * Enter a parse tree produced by the `parenthesizedRelation`
2107
2160
  * labeled alternative in `TrinoSqlParser.relationPrimary`.
2108
2161
  * @param ctx the parse tree
2109
2162
  */
2163
+ enterParenthesizedRelation?: (ctx: ParenthesizedRelationContext) => void;
2164
+ /**
2165
+ * Exit a parse tree produced by the `parenthesizedRelation`
2166
+ * labeled alternative in `TrinoSqlParser.relationPrimary`.
2167
+ * @param ctx the parse tree
2168
+ */
2169
+ exitParenthesizedRelation?: (ctx: ParenthesizedRelationContext) => void;
2170
+ /**
2171
+ * Enter a parse tree produced by the `subqueryRelation`
2172
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2173
+ * @param ctx the parse tree
2174
+ */
2110
2175
  enterSubqueryRelation?: (ctx: SubqueryRelationContext) => void;
2111
2176
  /**
2112
2177
  * Exit a parse tree produced by the `subqueryRelation`
2113
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2178
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2114
2179
  * @param ctx the parse tree
2115
2180
  */
2116
2181
  exitSubqueryRelation?: (ctx: SubqueryRelationContext) => void;
2117
2182
  /**
2118
2183
  * Enter a parse tree produced by the `unnest`
2119
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2184
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2120
2185
  * @param ctx the parse tree
2121
2186
  */
2122
2187
  enterUnnest?: (ctx: UnnestContext) => void;
2123
2188
  /**
2124
2189
  * Exit a parse tree produced by the `unnest`
2125
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2190
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2126
2191
  * @param ctx the parse tree
2127
2192
  */
2128
2193
  exitUnnest?: (ctx: UnnestContext) => void;
2129
2194
  /**
2130
2195
  * Enter a parse tree produced by the `lateral`
2131
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2196
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2132
2197
  * @param ctx the parse tree
2133
2198
  */
2134
2199
  enterLateral?: (ctx: LateralContext) => void;
2135
2200
  /**
2136
2201
  * Exit a parse tree produced by the `lateral`
2137
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2202
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2138
2203
  * @param ctx the parse tree
2139
2204
  */
2140
2205
  exitLateral?: (ctx: LateralContext) => void;
2141
2206
  /**
2142
2207
  * Enter a parse tree produced by the `tableFunctionInvocation`
2143
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2208
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2144
2209
  * @param ctx the parse tree
2145
2210
  */
2146
2211
  enterTableFunctionInvocation?: (ctx: TableFunctionInvocationContext) => void;
2147
2212
  /**
2148
2213
  * Exit a parse tree produced by the `tableFunctionInvocation`
2149
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2214
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2150
2215
  * @param ctx the parse tree
2151
2216
  */
2152
2217
  exitTableFunctionInvocation?: (ctx: TableFunctionInvocationContext) => void;
2153
- /**
2154
- * Enter a parse tree produced by the `parenthesizedRelation`
2155
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2156
- * @param ctx the parse tree
2157
- */
2158
- enterParenthesizedRelation?: (ctx: ParenthesizedRelationContext) => void;
2159
- /**
2160
- * Exit a parse tree produced by the `parenthesizedRelation`
2161
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2162
- * @param ctx the parse tree
2163
- */
2164
- exitParenthesizedRelation?: (ctx: ParenthesizedRelationContext) => void;
2165
2218
  /**
2166
2219
  * Enter a parse tree produced by the `jsonTable`
2167
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2220
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2168
2221
  * @param ctx the parse tree
2169
2222
  */
2170
2223
  enterJsonTable?: (ctx: JsonTableContext) => void;
2171
2224
  /**
2172
2225
  * Exit a parse tree produced by the `jsonTable`
2173
- * labeled alternative in `TrinoSqlParser.relationPrimary`.
2226
+ * labeled alternative in `TrinoSqlParser.relationSourceTable`.
2174
2227
  * @param ctx the parse tree
2175
2228
  */
2176
2229
  exitJsonTable?: (ctx: JsonTableContext) => void;