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
@@ -389,99 +389,109 @@ export declare class ImpalaSqlParser extends SQLParserBase {
389
389
  static readonly RULE_tableNamePath = 93;
390
390
  static readonly RULE_viewNamePath = 94;
391
391
  static readonly RULE_functionNamePath = 95;
392
- static readonly RULE_columnNamePath = 96;
393
- static readonly RULE_columnName = 97;
394
- static readonly RULE_tableOrViewPath = 98;
395
- static readonly RULE_createCommonItem = 99;
396
- static readonly RULE_assignmentList = 100;
397
- static readonly RULE_assignmentItem = 101;
398
- static readonly RULE_viewColumns = 102;
399
- static readonly RULE_viewColumnItem = 103;
400
- static readonly RULE_queryStatement = 104;
401
- static readonly RULE_with = 105;
402
- static readonly RULE_constraintSpecification = 106;
403
- static readonly RULE_foreignKeySpecification = 107;
404
- static readonly RULE_columnSpec = 108;
405
- static readonly RULE_columnDefinition = 109;
406
- static readonly RULE_kuduTableElement = 110;
407
- static readonly RULE_kuduColumnDefinition = 111;
408
- static readonly RULE_commentClause = 112;
409
- static readonly RULE_columnSpecWithKudu = 113;
410
- static readonly RULE_createColumnSpecWithKudu = 114;
411
- static readonly RULE_kuduAttributes = 115;
412
- static readonly RULE_kuduStorageAttr = 116;
413
- static readonly RULE_statsKey = 117;
414
- static readonly RULE_fileFormat = 118;
415
- static readonly RULE_kuduPartitionClause = 119;
416
- static readonly RULE_hashClause = 120;
417
- static readonly RULE_rangeClause = 121;
418
- static readonly RULE_kuduPartitionSpec = 122;
419
- static readonly RULE_cacheSpec = 123;
420
- static readonly RULE_rangeOperator = 124;
421
- static readonly RULE_partitionCol = 125;
422
- static readonly RULE_likeClause = 126;
423
- static readonly RULE_properties = 127;
424
- static readonly RULE_partitionedBy = 128;
425
- static readonly RULE_sortedBy = 129;
426
- static readonly RULE_rowFormat = 130;
427
- static readonly RULE_property = 131;
428
- static readonly RULE_queryNoWith = 132;
429
- static readonly RULE_queryTerm = 133;
430
- static readonly RULE_queryPrimary = 134;
431
- static readonly RULE_sortItem = 135;
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;
392
+ static readonly RULE_emptyColumn = 96;
393
+ static readonly RULE_columnNamePath = 97;
394
+ static readonly RULE_columnName = 98;
395
+ static readonly RULE_columnNameAllowEmpty = 99;
396
+ static readonly RULE_tableOrViewPath = 100;
397
+ static readonly RULE_createCommonItem = 101;
398
+ static readonly RULE_assignmentList = 102;
399
+ static readonly RULE_assignmentItem = 103;
400
+ static readonly RULE_viewColumns = 104;
401
+ static readonly RULE_viewColumnItem = 105;
402
+ static readonly RULE_queryStatement = 106;
403
+ static readonly RULE_with = 107;
404
+ static readonly RULE_constraintSpecification = 108;
405
+ static readonly RULE_foreignKeySpecification = 109;
406
+ static readonly RULE_columnSpec = 110;
407
+ static readonly RULE_columnDefinition = 111;
408
+ static readonly RULE_kuduTableElement = 112;
409
+ static readonly RULE_kuduColumnDefinition = 113;
410
+ static readonly RULE_commentClause = 114;
411
+ static readonly RULE_columnSpecWithKudu = 115;
412
+ static readonly RULE_createColumnSpecWithKudu = 116;
413
+ static readonly RULE_kuduAttributes = 117;
414
+ static readonly RULE_kuduStorageAttr = 118;
415
+ static readonly RULE_statsKey = 119;
416
+ static readonly RULE_fileFormat = 120;
417
+ static readonly RULE_kuduPartitionClause = 121;
418
+ static readonly RULE_hashClause = 122;
419
+ static readonly RULE_rangeClause = 123;
420
+ static readonly RULE_kuduPartitionSpec = 124;
421
+ static readonly RULE_cacheSpec = 125;
422
+ static readonly RULE_rangeOperator = 126;
423
+ static readonly RULE_partitionCol = 127;
424
+ static readonly RULE_likeClause = 128;
425
+ static readonly RULE_properties = 129;
426
+ static readonly RULE_partitionedBy = 130;
427
+ static readonly RULE_sortedBy = 131;
428
+ static readonly RULE_rowFormat = 132;
429
+ static readonly RULE_property = 133;
430
+ static readonly RULE_queryNoWith = 134;
431
+ static readonly RULE_queryTerm = 135;
432
+ static readonly RULE_queryPrimary = 136;
433
+ static readonly RULE_sortItem = 137;
434
+ static readonly RULE_querySpecification = 138;
435
+ static readonly RULE_selectList = 139;
436
+ static readonly RULE_whereClause = 140;
437
+ static readonly RULE_havingClause = 141;
438
+ static readonly RULE_groupBy = 142;
439
+ static readonly RULE_groupingElement = 143;
440
+ static readonly RULE_groupingSet = 144;
441
+ static readonly RULE_namedQuery = 145;
442
+ static readonly RULE_setQuantifier = 146;
443
+ static readonly RULE_selectItem = 147;
444
+ static readonly RULE_columnAlias = 148;
445
+ static readonly RULE_selectLiteralColumnName = 149;
446
+ static readonly RULE_selectExpressionColumnName = 150;
447
+ static readonly RULE_tableAllColumns = 151;
448
+ static readonly RULE_relation = 152;
449
+ static readonly RULE_joinType = 153;
450
+ static readonly RULE_joinCriteria = 154;
451
+ static readonly RULE_sampledRelation = 155;
452
+ static readonly RULE_sampleType = 156;
453
+ static readonly RULE_aliasedRelation = 157;
454
+ static readonly RULE_columnAliases = 158;
455
+ static readonly RULE_relationPrimary = 159;
456
+ static readonly RULE_atomSubQueryTableSource = 160;
457
+ static readonly RULE_subQueryRelation = 161;
458
+ static readonly RULE_unnest = 162;
459
+ static readonly RULE_parenthesizedRelation = 163;
460
+ static readonly RULE_columnItem = 164;
461
+ static readonly RULE_expression = 165;
462
+ static readonly RULE_booleanExpression = 166;
463
+ static readonly RULE_predicate = 167;
464
+ static readonly RULE_valueExpression = 168;
465
+ static readonly RULE_functionCallExpression = 169;
466
+ static readonly RULE_primaryExpression = 170;
467
+ static readonly RULE_stringLiteral = 171;
468
+ static readonly RULE_comparisonOperator = 172;
469
+ static readonly RULE_comparisonQuantifier = 173;
470
+ static readonly RULE_booleanValue = 174;
471
+ static readonly RULE_interval = 175;
472
+ static readonly RULE_intervalField = 176;
473
+ static readonly RULE_normalForm = 177;
474
+ static readonly RULE_type = 178;
475
+ static readonly RULE_dataType = 179;
476
+ static readonly RULE_typeParameter = 180;
477
+ static readonly RULE_baseType = 181;
478
+ static readonly RULE_whenClause = 182;
479
+ static readonly RULE_filter = 183;
480
+ static readonly RULE_partitionByClause = 184;
481
+ static readonly RULE_over = 185;
482
+ static readonly RULE_windowFrame = 186;
483
+ static readonly RULE_frameBound = 187;
484
+ static readonly RULE_pathElement = 188;
485
+ static readonly RULE_pathSpecification = 189;
486
+ static readonly RULE_privilege = 190;
487
+ static readonly RULE_objectType = 191;
488
+ static readonly RULE_qualifiedName = 192;
489
+ static readonly RULE_qualifiedNameAllowEmpty = 193;
490
+ static readonly RULE_principal = 194;
491
+ static readonly RULE_identifier = 195;
492
+ static readonly RULE_number = 196;
493
+ static readonly RULE_reservedKeywordsUsedAsFuncName = 197;
494
+ static readonly RULE_nonReserved = 198;
485
495
  static readonly literalNames: (string | null)[];
486
496
  static readonly symbolicNames: (string | null)[];
487
497
  static readonly ruleNames: string[];
@@ -588,8 +598,10 @@ export declare class ImpalaSqlParser extends SQLParserBase {
588
598
  tableNamePath(): TableNamePathContext;
589
599
  viewNamePath(): ViewNamePathContext;
590
600
  functionNamePath(): FunctionNamePathContext;
601
+ emptyColumn(): EmptyColumnContext;
591
602
  columnNamePath(): ColumnNamePathContext;
592
603
  columnName(): ColumnNameContext;
604
+ columnNameAllowEmpty(): ColumnNameAllowEmptyContext;
593
605
  tableOrViewPath(): TableOrViewPathContext;
594
606
  createCommonItem(): CreateCommonItemContext;
595
607
  assignmentList(): AssignmentListContext;
@@ -630,6 +642,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
630
642
  queryPrimary(): QueryPrimaryContext;
631
643
  sortItem(): SortItemContext;
632
644
  querySpecification(): QuerySpecificationContext;
645
+ selectList(): SelectListContext;
633
646
  whereClause(): WhereClauseContext;
634
647
  havingClause(): HavingClauseContext;
635
648
  groupBy(): GroupByContext;
@@ -638,6 +651,10 @@ export declare class ImpalaSqlParser extends SQLParserBase {
638
651
  namedQuery(): NamedQueryContext;
639
652
  setQuantifier(): SetQuantifierContext;
640
653
  selectItem(): SelectItemContext;
654
+ columnAlias(): ColumnAliasContext;
655
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
656
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
657
+ tableAllColumns(): TableAllColumnsContext;
641
658
  relation(): RelationContext;
642
659
  relation(_p: number): RelationContext;
643
660
  joinType(): JoinTypeContext;
@@ -647,6 +664,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
647
664
  aliasedRelation(): AliasedRelationContext;
648
665
  columnAliases(): ColumnAliasesContext;
649
666
  relationPrimary(): RelationPrimaryContext;
667
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
650
668
  subQueryRelation(): SubQueryRelationContext;
651
669
  unnest(): UnnestContext;
652
670
  parenthesizedRelation(): ParenthesizedRelationContext;
@@ -657,6 +675,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
657
675
  predicate(value: antlr.ParserRuleContext): PredicateContext;
658
676
  valueExpression(): ValueExpressionContext;
659
677
  valueExpression(_p: number): ValueExpressionContext;
678
+ functionCallExpression(): FunctionCallExpressionContext;
660
679
  primaryExpression(): PrimaryExpressionContext;
661
680
  primaryExpression(_p: number): PrimaryExpressionContext;
662
681
  stringLiteral(): StringLiteralContext;
@@ -682,6 +701,7 @@ export declare class ImpalaSqlParser extends SQLParserBase {
682
701
  privilege(): PrivilegeContext;
683
702
  objectType(): ObjectTypeContext;
684
703
  qualifiedName(): QualifiedNameContext;
704
+ qualifiedNameAllowEmpty(): QualifiedNameAllowEmptyContext;
685
705
  principal(): PrincipalContext;
686
706
  identifier(): IdentifierContext;
687
707
  number_(): NumberContext;
@@ -689,12 +709,15 @@ export declare class ImpalaSqlParser extends SQLParserBase {
689
709
  nonReserved(): NonReservedContext;
690
710
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
691
711
  private columnNamePath_sempred;
712
+ private columnNameAllowEmpty_sempred;
692
713
  private queryTerm_sempred;
714
+ private selectItem_sempred;
693
715
  private relation_sempred;
694
716
  private booleanExpression_sempred;
695
717
  private valueExpression_sempred;
696
718
  private primaryExpression_sempred;
697
719
  private type_sempred;
720
+ private qualifiedNameAllowEmpty_sempred;
698
721
  static readonly _serializedATN: number[];
699
722
  private static __ATN;
700
723
  static get _ATN(): antlr.ATN;
@@ -2100,9 +2123,17 @@ export declare class FunctionNamePathContext extends antlr.ParserRuleContext {
2100
2123
  exitRule(listener: ImpalaSqlParserListener): void;
2101
2124
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2102
2125
  }
2126
+ export declare class EmptyColumnContext extends antlr.ParserRuleContext {
2127
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2128
+ get ruleIndex(): number;
2129
+ enterRule(listener: ImpalaSqlParserListener): void;
2130
+ exitRule(listener: ImpalaSqlParserListener): void;
2131
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2132
+ }
2103
2133
  export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
2104
2134
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2105
- qualifiedName(): QualifiedNameContext | null;
2135
+ emptyColumn(): EmptyColumnContext | null;
2136
+ qualifiedNameAllowEmpty(): QualifiedNameAllowEmptyContext | null;
2106
2137
  get ruleIndex(): number;
2107
2138
  enterRule(listener: ImpalaSqlParserListener): void;
2108
2139
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2116,6 +2147,15 @@ export declare class ColumnNameContext extends antlr.ParserRuleContext {
2116
2147
  exitRule(listener: ImpalaSqlParserListener): void;
2117
2148
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2118
2149
  }
2150
+ export declare class ColumnNameAllowEmptyContext extends antlr.ParserRuleContext {
2151
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2152
+ emptyColumn(): EmptyColumnContext | null;
2153
+ qualifiedNameAllowEmpty(): QualifiedNameAllowEmptyContext | null;
2154
+ get ruleIndex(): number;
2155
+ enterRule(listener: ImpalaSqlParserListener): void;
2156
+ exitRule(listener: ImpalaSqlParserListener): void;
2157
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2158
+ }
2119
2159
  export declare class TableOrViewPathContext extends antlr.ParserRuleContext {
2120
2160
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2121
2161
  tableNamePath(): TableNamePathContext | null;
@@ -2660,12 +2700,9 @@ export declare class SortItemContext extends antlr.ParserRuleContext {
2660
2700
  export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
2661
2701
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2662
2702
  KW_SELECT(): antlr.TerminalNode;
2663
- selectItem(): SelectItemContext[];
2664
- selectItem(i: number): SelectItemContext | null;
2703
+ selectList(): SelectListContext;
2665
2704
  setQuantifier(): SetQuantifierContext | null;
2666
2705
  KW_STRAIGHT_JOIN(): antlr.TerminalNode | null;
2667
- COMMA(): antlr.TerminalNode[];
2668
- COMMA(i: number): antlr.TerminalNode | null;
2669
2706
  KW_FROM(): antlr.TerminalNode | null;
2670
2707
  relation(): RelationContext[];
2671
2708
  relation(i: number): RelationContext | null;
@@ -2674,6 +2711,19 @@ export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
2674
2711
  KW_BY(): antlr.TerminalNode | null;
2675
2712
  groupBy(): GroupByContext | null;
2676
2713
  havingClause(): HavingClauseContext | null;
2714
+ COMMA(): antlr.TerminalNode[];
2715
+ COMMA(i: number): antlr.TerminalNode | null;
2716
+ get ruleIndex(): number;
2717
+ enterRule(listener: ImpalaSqlParserListener): void;
2718
+ exitRule(listener: ImpalaSqlParserListener): void;
2719
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2720
+ }
2721
+ export declare class SelectListContext extends antlr.ParserRuleContext {
2722
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2723
+ selectItem(): SelectItemContext[];
2724
+ selectItem(i: number): SelectItemContext | null;
2725
+ COMMA(): antlr.TerminalNode[];
2726
+ COMMA(i: number): antlr.TerminalNode | null;
2677
2727
  get ruleIndex(): number;
2678
2728
  enterRule(listener: ImpalaSqlParserListener): void;
2679
2729
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2683,7 +2733,8 @@ export declare class WhereClauseContext extends antlr.ParserRuleContext {
2683
2733
  _where?: BooleanExpressionContext;
2684
2734
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2685
2735
  KW_WHERE(): antlr.TerminalNode;
2686
- booleanExpression(): BooleanExpressionContext;
2736
+ columnNameAllowEmpty(): ColumnNameAllowEmptyContext | null;
2737
+ booleanExpression(): BooleanExpressionContext | null;
2687
2738
  get ruleIndex(): number;
2688
2739
  enterRule(listener: ImpalaSqlParserListener): void;
2689
2740
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2693,7 +2744,8 @@ export declare class HavingClauseContext extends antlr.ParserRuleContext {
2693
2744
  _having?: BooleanExpressionContext;
2694
2745
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2695
2746
  KW_HAVING(): antlr.TerminalNode;
2696
- booleanExpression(): BooleanExpressionContext;
2747
+ columnNameAllowEmpty(): ColumnNameAllowEmptyContext | null;
2748
+ booleanExpression(): BooleanExpressionContext | null;
2697
2749
  get ruleIndex(): number;
2698
2750
  enterRule(listener: ImpalaSqlParserListener): void;
2699
2751
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2759,23 +2811,48 @@ export declare class SetQuantifierContext extends antlr.ParserRuleContext {
2759
2811
  }
2760
2812
  export declare class SelectItemContext extends antlr.ParserRuleContext {
2761
2813
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2814
+ selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
2815
+ columnAlias(): ColumnAliasContext | null;
2816
+ selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
2817
+ tableAllColumns(): TableAllColumnsContext | null;
2818
+ emptyColumn(): EmptyColumnContext | null;
2762
2819
  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
2820
  enterRule(listener: ImpalaSqlParserListener): void;
2771
2821
  exitRule(listener: ImpalaSqlParserListener): void;
2772
2822
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2773
2823
  }
2774
- export declare class SelectSingleContext extends SelectItemContext {
2775
- constructor(ctx: SelectItemContext);
2776
- columnItem(): ColumnItemContext;
2777
- identifier(): IdentifierContext | null;
2824
+ export declare class ColumnAliasContext extends antlr.ParserRuleContext {
2825
+ _alias?: IdentifierContext;
2826
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2827
+ identifier(): IdentifierContext;
2778
2828
  KW_AS(): antlr.TerminalNode | null;
2829
+ get ruleIndex(): number;
2830
+ enterRule(listener: ImpalaSqlParserListener): void;
2831
+ exitRule(listener: ImpalaSqlParserListener): void;
2832
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2833
+ }
2834
+ export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
2835
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2836
+ columnNamePath(): ColumnNamePathContext;
2837
+ get ruleIndex(): number;
2838
+ enterRule(listener: ImpalaSqlParserListener): void;
2839
+ exitRule(listener: ImpalaSqlParserListener): void;
2840
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2841
+ }
2842
+ export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
2843
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2844
+ expression(): ExpressionContext;
2845
+ get ruleIndex(): number;
2846
+ enterRule(listener: ImpalaSqlParserListener): void;
2847
+ exitRule(listener: ImpalaSqlParserListener): void;
2848
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2849
+ }
2850
+ export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
2851
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2852
+ ASTERISK(): antlr.TerminalNode;
2853
+ qualifiedName(): QualifiedNameContext | null;
2854
+ DOT(): antlr.TerminalNode | null;
2855
+ get ruleIndex(): number;
2779
2856
  enterRule(listener: ImpalaSqlParserListener): void;
2780
2857
  exitRule(listener: ImpalaSqlParserListener): void;
2781
2858
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
@@ -2826,6 +2903,7 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
2826
2903
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2827
2904
  KW_ON(): antlr.TerminalNode | null;
2828
2905
  booleanExpression(): BooleanExpressionContext | null;
2906
+ columnNameAllowEmpty(): ColumnNameAllowEmptyContext | null;
2829
2907
  KW_USING(): antlr.TerminalNode | null;
2830
2908
  LPAREN(): antlr.TerminalNode | null;
2831
2909
  identifier(): IdentifierContext[];
@@ -2894,8 +2972,7 @@ export declare class ColumnAliasesContext extends antlr.ParserRuleContext {
2894
2972
  export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
2895
2973
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2896
2974
  tableOrViewPath(): TableOrViewPathContext | null;
2897
- subQueryRelation(): SubQueryRelationContext | null;
2898
- KW_LATERAL(): antlr.TerminalNode | null;
2975
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext | null;
2899
2976
  unnest(): UnnestContext | null;
2900
2977
  parenthesizedRelation(): ParenthesizedRelationContext | null;
2901
2978
  get ruleIndex(): number;
@@ -2903,6 +2980,15 @@ export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
2903
2980
  exitRule(listener: ImpalaSqlParserListener): void;
2904
2981
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2905
2982
  }
2983
+ export declare class AtomSubQueryTableSourceContext extends antlr.ParserRuleContext {
2984
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2985
+ subQueryRelation(): SubQueryRelationContext;
2986
+ KW_LATERAL(): antlr.TerminalNode | null;
2987
+ get ruleIndex(): number;
2988
+ enterRule(listener: ImpalaSqlParserListener): void;
2989
+ exitRule(listener: ImpalaSqlParserListener): void;
2990
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2991
+ }
2906
2992
  export declare class SubQueryRelationContext extends antlr.ParserRuleContext {
2907
2993
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2908
2994
  LPAREN(): antlr.TerminalNode;
@@ -3149,6 +3235,27 @@ export declare class ArithmeticUnaryContext extends ValueExpressionContext {
3149
3235
  exitRule(listener: ImpalaSqlParserListener): void;
3150
3236
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3151
3237
  }
3238
+ export declare class FunctionCallExpressionContext extends antlr.ParserRuleContext {
3239
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3240
+ functionNamePath(): FunctionNamePathContext;
3241
+ LPAREN(): antlr.TerminalNode;
3242
+ RPAREN(): antlr.TerminalNode;
3243
+ expression(): ExpressionContext[];
3244
+ expression(i: number): ExpressionContext | null;
3245
+ KW_ORDER(): antlr.TerminalNode | null;
3246
+ KW_BY(): antlr.TerminalNode | null;
3247
+ sortItem(): SortItemContext[];
3248
+ sortItem(i: number): SortItemContext | null;
3249
+ filter(): FilterContext | null;
3250
+ over(): OverContext | null;
3251
+ setQuantifier(): SetQuantifierContext | null;
3252
+ COMMA(): antlr.TerminalNode[];
3253
+ COMMA(i: number): antlr.TerminalNode | null;
3254
+ get ruleIndex(): number;
3255
+ enterRule(listener: ImpalaSqlParserListener): void;
3256
+ exitRule(listener: ImpalaSqlParserListener): void;
3257
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3258
+ }
3152
3259
  export declare class PrimaryExpressionContext extends antlr.ParserRuleContext {
3153
3260
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3154
3261
  get ruleIndex(): number;
@@ -3402,21 +3509,13 @@ export declare class ArrayConstructorContext extends PrimaryExpressionContext {
3402
3509
  }
3403
3510
  export declare class FunctionCallContext extends PrimaryExpressionContext {
3404
3511
  constructor(ctx: PrimaryExpressionContext);
3405
- functionNamePath(): FunctionNamePathContext;
3406
- LPAREN(): antlr.TerminalNode;
3512
+ functionNamePath(): FunctionNamePathContext | null;
3513
+ LPAREN(): antlr.TerminalNode | null;
3407
3514
  ASTERISK(): antlr.TerminalNode | null;
3408
- RPAREN(): antlr.TerminalNode;
3515
+ RPAREN(): antlr.TerminalNode | null;
3409
3516
  filter(): FilterContext | null;
3410
3517
  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;
3518
+ functionCallExpression(): FunctionCallExpressionContext | null;
3420
3519
  enterRule(listener: ImpalaSqlParserListener): void;
3421
3520
  exitRule(listener: ImpalaSqlParserListener): void;
3422
3521
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
@@ -3812,6 +3911,18 @@ export declare class QualifiedNameContext extends antlr.ParserRuleContext {
3812
3911
  exitRule(listener: ImpalaSqlParserListener): void;
3813
3912
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3814
3913
  }
3914
+ export declare class QualifiedNameAllowEmptyContext extends antlr.ParserRuleContext {
3915
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3916
+ identifier(): IdentifierContext[];
3917
+ identifier(i: number): IdentifierContext | null;
3918
+ DOT(): antlr.TerminalNode[];
3919
+ DOT(i: number): antlr.TerminalNode | null;
3920
+ emptyColumn(): EmptyColumnContext | null;
3921
+ get ruleIndex(): number;
3922
+ enterRule(listener: ImpalaSqlParserListener): void;
3923
+ exitRule(listener: ImpalaSqlParserListener): void;
3924
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3925
+ }
3815
3926
  export declare class PrincipalContext extends antlr.ParserRuleContext {
3816
3927
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3817
3928
  get ruleIndex(): number;