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
@@ -249,12 +249,17 @@ import { SubQuerySourceContext } from "./HiveSqlParser.js";
249
249
  import { PartitioningSpecContext } from "./HiveSqlParser.js";
250
250
  import { PartitionTableFunctionSourceContext } from "./HiveSqlParser.js";
251
251
  import { PartitionedTableFunctionContext } from "./HiveSqlParser.js";
252
+ import { AtomPartitionedTableFunctionContext } from "./HiveSqlParser.js";
252
253
  import { WhereClauseContext } from "./HiveSqlParser.js";
253
254
  import { ValuesClauseContext } from "./HiveSqlParser.js";
255
+ import { AtomValuesClauseContext } from "./HiveSqlParser.js";
254
256
  import { VirtualTableSourceContext } from "./HiveSqlParser.js";
255
257
  import { SelectClauseContext } from "./HiveSqlParser.js";
256
258
  import { SelectTrfmClauseContext } from "./HiveSqlParser.js";
259
+ import { SelectListContext } from "./HiveSqlParser.js";
257
260
  import { SelectItemContext } from "./HiveSqlParser.js";
261
+ import { SelectLiteralColumnNameContext } from "./HiveSqlParser.js";
262
+ import { SelectExpressionColumnNameContext } from "./HiveSqlParser.js";
258
263
  import { TrfmClauseContext } from "./HiveSqlParser.js";
259
264
  import { SelectExpressionContext } from "./HiveSqlParser.js";
260
265
  import { SelectExpressionListContext } from "./HiveSqlParser.js";
@@ -2862,6 +2867,16 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
2862
2867
  * @param ctx the parse tree
2863
2868
  */
2864
2869
  exitPartitionedTableFunction?: (ctx: PartitionedTableFunctionContext) => void;
2870
+ /**
2871
+ * Enter a parse tree produced by `HiveSqlParser.atomPartitionedTableFunction`.
2872
+ * @param ctx the parse tree
2873
+ */
2874
+ enterAtomPartitionedTableFunction?: (ctx: AtomPartitionedTableFunctionContext) => void;
2875
+ /**
2876
+ * Exit a parse tree produced by `HiveSqlParser.atomPartitionedTableFunction`.
2877
+ * @param ctx the parse tree
2878
+ */
2879
+ exitAtomPartitionedTableFunction?: (ctx: AtomPartitionedTableFunctionContext) => void;
2865
2880
  /**
2866
2881
  * Enter a parse tree produced by `HiveSqlParser.whereClause`.
2867
2882
  * @param ctx the parse tree
@@ -2882,6 +2897,16 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
2882
2897
  * @param ctx the parse tree
2883
2898
  */
2884
2899
  exitValuesClause?: (ctx: ValuesClauseContext) => void;
2900
+ /**
2901
+ * Enter a parse tree produced by `HiveSqlParser.atomValuesClause`.
2902
+ * @param ctx the parse tree
2903
+ */
2904
+ enterAtomValuesClause?: (ctx: AtomValuesClauseContext) => void;
2905
+ /**
2906
+ * Exit a parse tree produced by `HiveSqlParser.atomValuesClause`.
2907
+ * @param ctx the parse tree
2908
+ */
2909
+ exitAtomValuesClause?: (ctx: AtomValuesClauseContext) => void;
2885
2910
  /**
2886
2911
  * Enter a parse tree produced by `HiveSqlParser.virtualTableSource`.
2887
2912
  * @param ctx the parse tree
@@ -2912,6 +2937,16 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
2912
2937
  * @param ctx the parse tree
2913
2938
  */
2914
2939
  exitSelectTrfmClause?: (ctx: SelectTrfmClauseContext) => void;
2940
+ /**
2941
+ * Enter a parse tree produced by `HiveSqlParser.selectList`.
2942
+ * @param ctx the parse tree
2943
+ */
2944
+ enterSelectList?: (ctx: SelectListContext) => void;
2945
+ /**
2946
+ * Exit a parse tree produced by `HiveSqlParser.selectList`.
2947
+ * @param ctx the parse tree
2948
+ */
2949
+ exitSelectList?: (ctx: SelectListContext) => void;
2915
2950
  /**
2916
2951
  * Enter a parse tree produced by `HiveSqlParser.selectItem`.
2917
2952
  * @param ctx the parse tree
@@ -2922,6 +2957,26 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
2922
2957
  * @param ctx the parse tree
2923
2958
  */
2924
2959
  exitSelectItem?: (ctx: SelectItemContext) => void;
2960
+ /**
2961
+ * Enter a parse tree produced by `HiveSqlParser.selectLiteralColumnName`.
2962
+ * @param ctx the parse tree
2963
+ */
2964
+ enterSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
2965
+ /**
2966
+ * Exit a parse tree produced by `HiveSqlParser.selectLiteralColumnName`.
2967
+ * @param ctx the parse tree
2968
+ */
2969
+ exitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
2970
+ /**
2971
+ * Enter a parse tree produced by `HiveSqlParser.selectExpressionColumnName`.
2972
+ * @param ctx the parse tree
2973
+ */
2974
+ enterSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
2975
+ /**
2976
+ * Exit a parse tree produced by `HiveSqlParser.selectExpressionColumnName`.
2977
+ * @param ctx the parse tree
2978
+ */
2979
+ exitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
2925
2980
  /**
2926
2981
  * Enter a parse tree produced by `HiveSqlParser.trfmClause`.
2927
2982
  * @param ctx the parse tree
@@ -249,12 +249,17 @@ import { SubQuerySourceContext } from "./HiveSqlParser.js";
249
249
  import { PartitioningSpecContext } from "./HiveSqlParser.js";
250
250
  import { PartitionTableFunctionSourceContext } from "./HiveSqlParser.js";
251
251
  import { PartitionedTableFunctionContext } from "./HiveSqlParser.js";
252
+ import { AtomPartitionedTableFunctionContext } from "./HiveSqlParser.js";
252
253
  import { WhereClauseContext } from "./HiveSqlParser.js";
253
254
  import { ValuesClauseContext } from "./HiveSqlParser.js";
255
+ import { AtomValuesClauseContext } from "./HiveSqlParser.js";
254
256
  import { VirtualTableSourceContext } from "./HiveSqlParser.js";
255
257
  import { SelectClauseContext } from "./HiveSqlParser.js";
256
258
  import { SelectTrfmClauseContext } from "./HiveSqlParser.js";
259
+ import { SelectListContext } from "./HiveSqlParser.js";
257
260
  import { SelectItemContext } from "./HiveSqlParser.js";
261
+ import { SelectLiteralColumnNameContext } from "./HiveSqlParser.js";
262
+ import { SelectExpressionColumnNameContext } from "./HiveSqlParser.js";
258
263
  import { TrfmClauseContext } from "./HiveSqlParser.js";
259
264
  import { SelectExpressionContext } from "./HiveSqlParser.js";
260
265
  import { SelectExpressionListContext } from "./HiveSqlParser.js";
@@ -1861,6 +1866,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1861
1866
  * @return the visitor result
1862
1867
  */
1863
1868
  visitPartitionedTableFunction?: (ctx: PartitionedTableFunctionContext) => Result;
1869
+ /**
1870
+ * Visit a parse tree produced by `HiveSqlParser.atomPartitionedTableFunction`.
1871
+ * @param ctx the parse tree
1872
+ * @return the visitor result
1873
+ */
1874
+ visitAtomPartitionedTableFunction?: (ctx: AtomPartitionedTableFunctionContext) => Result;
1864
1875
  /**
1865
1876
  * Visit a parse tree produced by `HiveSqlParser.whereClause`.
1866
1877
  * @param ctx the parse tree
@@ -1873,6 +1884,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1873
1884
  * @return the visitor result
1874
1885
  */
1875
1886
  visitValuesClause?: (ctx: ValuesClauseContext) => Result;
1887
+ /**
1888
+ * Visit a parse tree produced by `HiveSqlParser.atomValuesClause`.
1889
+ * @param ctx the parse tree
1890
+ * @return the visitor result
1891
+ */
1892
+ visitAtomValuesClause?: (ctx: AtomValuesClauseContext) => Result;
1876
1893
  /**
1877
1894
  * Visit a parse tree produced by `HiveSqlParser.virtualTableSource`.
1878
1895
  * @param ctx the parse tree
@@ -1891,12 +1908,30 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1891
1908
  * @return the visitor result
1892
1909
  */
1893
1910
  visitSelectTrfmClause?: (ctx: SelectTrfmClauseContext) => Result;
1911
+ /**
1912
+ * Visit a parse tree produced by `HiveSqlParser.selectList`.
1913
+ * @param ctx the parse tree
1914
+ * @return the visitor result
1915
+ */
1916
+ visitSelectList?: (ctx: SelectListContext) => Result;
1894
1917
  /**
1895
1918
  * Visit a parse tree produced by `HiveSqlParser.selectItem`.
1896
1919
  * @param ctx the parse tree
1897
1920
  * @return the visitor result
1898
1921
  */
1899
1922
  visitSelectItem?: (ctx: SelectItemContext) => Result;
1923
+ /**
1924
+ * Visit a parse tree produced by `HiveSqlParser.selectLiteralColumnName`.
1925
+ * @param ctx the parse tree
1926
+ * @return the visitor result
1927
+ */
1928
+ visitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => Result;
1929
+ /**
1930
+ * Visit a parse tree produced by `HiveSqlParser.selectExpressionColumnName`.
1931
+ * @param ctx the parse tree
1932
+ * @return the visitor result
1933
+ */
1934
+ visitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => Result;
1900
1935
  /**
1901
1936
  * Visit a parse tree produced by `HiveSqlParser.trfmClause`.
1902
1937
  * @param ctx the parse tree
@@ -430,58 +430,65 @@ export declare class ImpalaSqlParser extends SQLParserBase {
430
430
  static readonly RULE_queryPrimary = 134;
431
431
  static readonly RULE_sortItem = 135;
432
432
  static readonly RULE_querySpecification = 136;
433
- static readonly RULE_whereClause = 137;
434
- static readonly RULE_havingClause = 138;
435
- static readonly RULE_groupBy = 139;
436
- static readonly RULE_groupingElement = 140;
437
- static readonly RULE_groupingSet = 141;
438
- static readonly RULE_namedQuery = 142;
439
- static readonly RULE_setQuantifier = 143;
440
- static readonly RULE_selectItem = 144;
441
- static readonly RULE_relation = 145;
442
- static readonly RULE_joinType = 146;
443
- static readonly RULE_joinCriteria = 147;
444
- static readonly RULE_sampledRelation = 148;
445
- static readonly RULE_sampleType = 149;
446
- static readonly RULE_aliasedRelation = 150;
447
- static readonly RULE_columnAliases = 151;
448
- static readonly RULE_relationPrimary = 152;
449
- static readonly RULE_subQueryRelation = 153;
450
- static readonly RULE_unnest = 154;
451
- static readonly RULE_parenthesizedRelation = 155;
452
- static readonly RULE_columnItem = 156;
453
- static readonly RULE_expression = 157;
454
- static readonly RULE_booleanExpression = 158;
455
- static readonly RULE_predicate = 159;
456
- static readonly RULE_valueExpression = 160;
457
- static readonly RULE_primaryExpression = 161;
458
- static readonly RULE_stringLiteral = 162;
459
- static readonly RULE_comparisonOperator = 163;
460
- static readonly RULE_comparisonQuantifier = 164;
461
- static readonly RULE_booleanValue = 165;
462
- static readonly RULE_interval = 166;
463
- static readonly RULE_intervalField = 167;
464
- static readonly RULE_normalForm = 168;
465
- static readonly RULE_type = 169;
466
- static readonly RULE_dataType = 170;
467
- static readonly RULE_typeParameter = 171;
468
- static readonly RULE_baseType = 172;
469
- static readonly RULE_whenClause = 173;
470
- static readonly RULE_filter = 174;
471
- static readonly RULE_partitionByClause = 175;
472
- static readonly RULE_over = 176;
473
- static readonly RULE_windowFrame = 177;
474
- static readonly RULE_frameBound = 178;
475
- static readonly RULE_pathElement = 179;
476
- static readonly RULE_pathSpecification = 180;
477
- static readonly RULE_privilege = 181;
478
- static readonly RULE_objectType = 182;
479
- static readonly RULE_qualifiedName = 183;
480
- static readonly RULE_principal = 184;
481
- static readonly RULE_identifier = 185;
482
- static readonly RULE_number = 186;
483
- static readonly RULE_reservedKeywordsUsedAsFuncName = 187;
484
- static readonly RULE_nonReserved = 188;
433
+ static readonly RULE_selectList = 137;
434
+ static readonly RULE_whereClause = 138;
435
+ static readonly RULE_havingClause = 139;
436
+ static readonly RULE_groupBy = 140;
437
+ static readonly RULE_groupingElement = 141;
438
+ static readonly RULE_groupingSet = 142;
439
+ static readonly RULE_namedQuery = 143;
440
+ static readonly RULE_setQuantifier = 144;
441
+ static readonly RULE_selectItem = 145;
442
+ static readonly RULE_columnAlias = 146;
443
+ static readonly RULE_selectLiteralColumnName = 147;
444
+ static readonly RULE_selectExpressionColumnName = 148;
445
+ static readonly RULE_tableAllColumns = 149;
446
+ static readonly RULE_relation = 150;
447
+ static readonly RULE_joinType = 151;
448
+ static readonly RULE_joinCriteria = 152;
449
+ static readonly RULE_sampledRelation = 153;
450
+ static readonly RULE_sampleType = 154;
451
+ static readonly RULE_aliasedRelation = 155;
452
+ static readonly RULE_columnAliases = 156;
453
+ static readonly RULE_relationPrimary = 157;
454
+ static readonly RULE_atomSubQueryTableSource = 158;
455
+ static readonly RULE_subQueryRelation = 159;
456
+ static readonly RULE_unnest = 160;
457
+ static readonly RULE_parenthesizedRelation = 161;
458
+ static readonly RULE_columnItem = 162;
459
+ static readonly RULE_expression = 163;
460
+ static readonly RULE_booleanExpression = 164;
461
+ static readonly RULE_predicate = 165;
462
+ static readonly RULE_valueExpression = 166;
463
+ static readonly RULE_functionCallExpression = 167;
464
+ static readonly RULE_primaryExpression = 168;
465
+ static readonly RULE_stringLiteral = 169;
466
+ static readonly RULE_comparisonOperator = 170;
467
+ static readonly RULE_comparisonQuantifier = 171;
468
+ static readonly RULE_booleanValue = 172;
469
+ static readonly RULE_interval = 173;
470
+ static readonly RULE_intervalField = 174;
471
+ static readonly RULE_normalForm = 175;
472
+ static readonly RULE_type = 176;
473
+ static readonly RULE_dataType = 177;
474
+ static readonly RULE_typeParameter = 178;
475
+ static readonly RULE_baseType = 179;
476
+ static readonly RULE_whenClause = 180;
477
+ static readonly RULE_filter = 181;
478
+ static readonly RULE_partitionByClause = 182;
479
+ static readonly RULE_over = 183;
480
+ static readonly RULE_windowFrame = 184;
481
+ static readonly RULE_frameBound = 185;
482
+ static readonly RULE_pathElement = 186;
483
+ static readonly RULE_pathSpecification = 187;
484
+ static readonly RULE_privilege = 188;
485
+ static readonly RULE_objectType = 189;
486
+ static readonly RULE_qualifiedName = 190;
487
+ static readonly RULE_principal = 191;
488
+ static readonly RULE_identifier = 192;
489
+ static readonly RULE_number = 193;
490
+ static readonly RULE_reservedKeywordsUsedAsFuncName = 194;
491
+ static readonly RULE_nonReserved = 195;
485
492
  static readonly literalNames: (string | null)[];
486
493
  static readonly symbolicNames: (string | null)[];
487
494
  static readonly ruleNames: string[];
@@ -630,6 +637,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
630
637
  queryPrimary(): QueryPrimaryContext;
631
638
  sortItem(): SortItemContext;
632
639
  querySpecification(): QuerySpecificationContext;
640
+ selectList(): SelectListContext;
633
641
  whereClause(): WhereClauseContext;
634
642
  havingClause(): HavingClauseContext;
635
643
  groupBy(): GroupByContext;
@@ -638,6 +646,10 @@ export declare class ImpalaSqlParser extends SQLParserBase {
638
646
  namedQuery(): NamedQueryContext;
639
647
  setQuantifier(): SetQuantifierContext;
640
648
  selectItem(): SelectItemContext;
649
+ columnAlias(): ColumnAliasContext;
650
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
651
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
652
+ tableAllColumns(): TableAllColumnsContext;
641
653
  relation(): RelationContext;
642
654
  relation(_p: number): RelationContext;
643
655
  joinType(): JoinTypeContext;
@@ -647,6 +659,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
647
659
  aliasedRelation(): AliasedRelationContext;
648
660
  columnAliases(): ColumnAliasesContext;
649
661
  relationPrimary(): RelationPrimaryContext;
662
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
650
663
  subQueryRelation(): SubQueryRelationContext;
651
664
  unnest(): UnnestContext;
652
665
  parenthesizedRelation(): ParenthesizedRelationContext;
@@ -657,6 +670,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
657
670
  predicate(value: antlr.ParserRuleContext): PredicateContext;
658
671
  valueExpression(): ValueExpressionContext;
659
672
  valueExpression(_p: number): ValueExpressionContext;
673
+ functionCallExpression(): FunctionCallExpressionContext;
660
674
  primaryExpression(): PrimaryExpressionContext;
661
675
  primaryExpression(_p: number): PrimaryExpressionContext;
662
676
  stringLiteral(): StringLiteralContext;
@@ -2660,12 +2674,9 @@ export declare class SortItemContext extends antlr.ParserRuleContext {
2660
2674
  export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
2661
2675
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2662
2676
  KW_SELECT(): antlr.TerminalNode;
2663
- selectItem(): SelectItemContext[];
2664
- selectItem(i: number): SelectItemContext | null;
2677
+ selectList(): SelectListContext;
2665
2678
  setQuantifier(): SetQuantifierContext | null;
2666
2679
  KW_STRAIGHT_JOIN(): antlr.TerminalNode | null;
2667
- COMMA(): antlr.TerminalNode[];
2668
- COMMA(i: number): antlr.TerminalNode | null;
2669
2680
  KW_FROM(): antlr.TerminalNode | null;
2670
2681
  relation(): RelationContext[];
2671
2682
  relation(i: number): RelationContext | null;
@@ -2674,6 +2685,19 @@ export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
2674
2685
  KW_BY(): antlr.TerminalNode | null;
2675
2686
  groupBy(): GroupByContext | null;
2676
2687
  havingClause(): HavingClauseContext | null;
2688
+ COMMA(): antlr.TerminalNode[];
2689
+ COMMA(i: number): antlr.TerminalNode | null;
2690
+ get ruleIndex(): number;
2691
+ enterRule(listener: ImpalaSqlParserListener): void;
2692
+ exitRule(listener: ImpalaSqlParserListener): void;
2693
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2694
+ }
2695
+ export declare class SelectListContext extends antlr.ParserRuleContext {
2696
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2697
+ selectItem(): SelectItemContext[];
2698
+ selectItem(i: number): SelectItemContext | null;
2699
+ COMMA(): antlr.TerminalNode[];
2700
+ COMMA(i: number): antlr.TerminalNode | null;
2677
2701
  get ruleIndex(): number;
2678
2702
  enterRule(listener: ImpalaSqlParserListener): void;
2679
2703
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2759,23 +2783,47 @@ export declare class SetQuantifierContext extends antlr.ParserRuleContext {
2759
2783
  }
2760
2784
  export declare class SelectItemContext extends antlr.ParserRuleContext {
2761
2785
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2786
+ selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
2787
+ columnAlias(): ColumnAliasContext | null;
2788
+ selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
2789
+ tableAllColumns(): TableAllColumnsContext | null;
2762
2790
  get ruleIndex(): number;
2763
- copyFrom(ctx: SelectItemContext): void;
2764
- }
2765
- export declare class SelectAllContext extends SelectItemContext {
2766
- constructor(ctx: SelectItemContext);
2767
- qualifiedName(): QualifiedNameContext | null;
2768
- DOT(): antlr.TerminalNode | null;
2769
- ASTERISK(): antlr.TerminalNode;
2770
2791
  enterRule(listener: ImpalaSqlParserListener): void;
2771
2792
  exitRule(listener: ImpalaSqlParserListener): void;
2772
2793
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2773
2794
  }
2774
- export declare class SelectSingleContext extends SelectItemContext {
2775
- constructor(ctx: SelectItemContext);
2776
- columnItem(): ColumnItemContext;
2777
- identifier(): IdentifierContext | null;
2795
+ export declare class ColumnAliasContext extends antlr.ParserRuleContext {
2796
+ _alias?: IdentifierContext;
2797
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2798
+ identifier(): IdentifierContext;
2778
2799
  KW_AS(): antlr.TerminalNode | null;
2800
+ get ruleIndex(): number;
2801
+ enterRule(listener: ImpalaSqlParserListener): void;
2802
+ exitRule(listener: ImpalaSqlParserListener): void;
2803
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2804
+ }
2805
+ export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
2806
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2807
+ columnNamePath(): ColumnNamePathContext;
2808
+ get ruleIndex(): number;
2809
+ enterRule(listener: ImpalaSqlParserListener): void;
2810
+ exitRule(listener: ImpalaSqlParserListener): void;
2811
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2812
+ }
2813
+ export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
2814
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2815
+ expression(): ExpressionContext;
2816
+ get ruleIndex(): number;
2817
+ enterRule(listener: ImpalaSqlParserListener): void;
2818
+ exitRule(listener: ImpalaSqlParserListener): void;
2819
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2820
+ }
2821
+ export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
2822
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2823
+ ASTERISK(): antlr.TerminalNode;
2824
+ qualifiedName(): QualifiedNameContext | null;
2825
+ DOT(): antlr.TerminalNode | null;
2826
+ get ruleIndex(): number;
2779
2827
  enterRule(listener: ImpalaSqlParserListener): void;
2780
2828
  exitRule(listener: ImpalaSqlParserListener): void;
2781
2829
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
@@ -2894,8 +2942,7 @@ export declare class ColumnAliasesContext extends antlr.ParserRuleContext {
2894
2942
  export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
2895
2943
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2896
2944
  tableOrViewPath(): TableOrViewPathContext | null;
2897
- subQueryRelation(): SubQueryRelationContext | null;
2898
- KW_LATERAL(): antlr.TerminalNode | null;
2945
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext | null;
2899
2946
  unnest(): UnnestContext | null;
2900
2947
  parenthesizedRelation(): ParenthesizedRelationContext | null;
2901
2948
  get ruleIndex(): number;
@@ -2903,6 +2950,15 @@ export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
2903
2950
  exitRule(listener: ImpalaSqlParserListener): void;
2904
2951
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2905
2952
  }
2953
+ export declare class AtomSubQueryTableSourceContext extends antlr.ParserRuleContext {
2954
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2955
+ subQueryRelation(): SubQueryRelationContext;
2956
+ KW_LATERAL(): antlr.TerminalNode | null;
2957
+ get ruleIndex(): number;
2958
+ enterRule(listener: ImpalaSqlParserListener): void;
2959
+ exitRule(listener: ImpalaSqlParserListener): void;
2960
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2961
+ }
2906
2962
  export declare class SubQueryRelationContext extends antlr.ParserRuleContext {
2907
2963
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2908
2964
  LPAREN(): antlr.TerminalNode;
@@ -3149,6 +3205,27 @@ export declare class ArithmeticUnaryContext extends ValueExpressionContext {
3149
3205
  exitRule(listener: ImpalaSqlParserListener): void;
3150
3206
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3151
3207
  }
3208
+ export declare class FunctionCallExpressionContext extends antlr.ParserRuleContext {
3209
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3210
+ functionNamePath(): FunctionNamePathContext;
3211
+ LPAREN(): antlr.TerminalNode;
3212
+ RPAREN(): antlr.TerminalNode;
3213
+ expression(): ExpressionContext[];
3214
+ expression(i: number): ExpressionContext | null;
3215
+ KW_ORDER(): antlr.TerminalNode | null;
3216
+ KW_BY(): antlr.TerminalNode | null;
3217
+ sortItem(): SortItemContext[];
3218
+ sortItem(i: number): SortItemContext | null;
3219
+ filter(): FilterContext | null;
3220
+ over(): OverContext | null;
3221
+ setQuantifier(): SetQuantifierContext | null;
3222
+ COMMA(): antlr.TerminalNode[];
3223
+ COMMA(i: number): antlr.TerminalNode | null;
3224
+ get ruleIndex(): number;
3225
+ enterRule(listener: ImpalaSqlParserListener): void;
3226
+ exitRule(listener: ImpalaSqlParserListener): void;
3227
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3228
+ }
3152
3229
  export declare class PrimaryExpressionContext extends antlr.ParserRuleContext {
3153
3230
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3154
3231
  get ruleIndex(): number;
@@ -3402,21 +3479,13 @@ export declare class ArrayConstructorContext extends PrimaryExpressionContext {
3402
3479
  }
3403
3480
  export declare class FunctionCallContext extends PrimaryExpressionContext {
3404
3481
  constructor(ctx: PrimaryExpressionContext);
3405
- functionNamePath(): FunctionNamePathContext;
3406
- LPAREN(): antlr.TerminalNode;
3482
+ functionNamePath(): FunctionNamePathContext | null;
3483
+ LPAREN(): antlr.TerminalNode | null;
3407
3484
  ASTERISK(): antlr.TerminalNode | null;
3408
- RPAREN(): antlr.TerminalNode;
3485
+ RPAREN(): antlr.TerminalNode | null;
3409
3486
  filter(): FilterContext | null;
3410
3487
  over(): OverContext | null;
3411
- expression(): ExpressionContext[];
3412
- expression(i: number): ExpressionContext | null;
3413
- KW_ORDER(): antlr.TerminalNode | null;
3414
- KW_BY(): antlr.TerminalNode | null;
3415
- sortItem(): SortItemContext[];
3416
- sortItem(i: number): SortItemContext | null;
3417
- setQuantifier(): SetQuantifierContext | null;
3418
- COMMA(): antlr.TerminalNode[];
3419
- COMMA(i: number): antlr.TerminalNode | null;
3488
+ functionCallExpression(): FunctionCallExpressionContext | null;
3420
3489
  enterRule(listener: ImpalaSqlParserListener): void;
3421
3490
  exitRule(listener: ImpalaSqlParserListener): void;
3422
3491
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;