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
@@ -436,142 +436,153 @@ export declare class SparkSqlParser extends SQLParserBase {
436
436
  static readonly RULE_tableName = 36;
437
437
  static readonly RULE_viewNameCreate = 37;
438
438
  static readonly RULE_viewName = 38;
439
- static readonly RULE_columnName = 39;
440
- static readonly RULE_columnNamePath = 40;
441
- static readonly RULE_columnNameSeq = 41;
442
- static readonly RULE_columnNameCreate = 42;
443
- static readonly RULE_identifierReference = 43;
444
- static readonly RULE_queryOrganization = 44;
445
- static readonly RULE_limitClause = 45;
446
- static readonly RULE_orderOrSortByClause = 46;
447
- static readonly RULE_clusterOrDistributeBy = 47;
448
- static readonly RULE_queryTerm = 48;
449
- static readonly RULE_queryPrimary = 49;
450
- static readonly RULE_sortItem = 50;
451
- static readonly RULE_fromStatementBody = 51;
452
- static readonly RULE_querySpecification = 52;
453
- static readonly RULE_transformClause = 53;
454
- static readonly RULE_selectClause = 54;
455
- static readonly RULE_setClause = 55;
456
- static readonly RULE_matchedClause = 56;
457
- static readonly RULE_notMatchedClause = 57;
458
- static readonly RULE_notMatchedBySourceClause = 58;
459
- static readonly RULE_notMatchedAction = 59;
460
- static readonly RULE_assignmentList = 60;
461
- static readonly RULE_assignment = 61;
462
- static readonly RULE_whereClause = 62;
463
- static readonly RULE_havingClause = 63;
464
- static readonly RULE_hint = 64;
465
- static readonly RULE_hintStatement = 65;
466
- static readonly RULE_fromClause = 66;
467
- static readonly RULE_temporalClause = 67;
468
- static readonly RULE_aggregationClause = 68;
469
- static readonly RULE_groupByClause = 69;
470
- static readonly RULE_groupingAnalytics = 70;
471
- static readonly RULE_groupingSet = 71;
472
- static readonly RULE_pivotClause = 72;
473
- static readonly RULE_pivotColumn = 73;
474
- static readonly RULE_pivotValue = 74;
475
- static readonly RULE_unPivotClause = 75;
476
- static readonly RULE_unPivotSingleValueColumnClause = 76;
477
- static readonly RULE_unPivotMultiValueColumnClause = 77;
478
- static readonly RULE_unPivotColumnSet = 78;
479
- static readonly RULE_unPivotColumnAndAlias = 79;
480
- static readonly RULE_ifNotExists = 80;
481
- static readonly RULE_ifExists = 81;
482
- static readonly RULE_lateralView = 82;
483
- static readonly RULE_setQuantifier = 83;
484
- static readonly RULE_relation = 84;
485
- static readonly RULE_joinRelation = 85;
486
- static readonly RULE_joinType = 86;
487
- static readonly RULE_joinCriteria = 87;
488
- static readonly RULE_sample = 88;
489
- static readonly RULE_sampleMethod = 89;
490
- static readonly RULE_identifierList = 90;
491
- static readonly RULE_identifierSeq = 91;
492
- static readonly RULE_orderedIdentifierList = 92;
493
- static readonly RULE_orderedIdentifier = 93;
494
- static readonly RULE_identifierCommentList = 94;
495
- static readonly RULE_identifierComment = 95;
496
- static readonly RULE_relationPrimary = 96;
497
- static readonly RULE_functionTableSubqueryArgument = 97;
498
- static readonly RULE_tableArgumentPartitioning = 98;
499
- static readonly RULE_functionTableNamedArgumentExpression = 99;
500
- static readonly RULE_functionTableReferenceArgument = 100;
501
- static readonly RULE_functionTableArgument = 101;
502
- static readonly RULE_tableAlias = 102;
503
- static readonly RULE_rowFormat = 103;
504
- static readonly RULE_multipartIdentifierList = 104;
505
- static readonly RULE_multipartIdentifier = 105;
506
- static readonly RULE_multipartIdentifierPropertyList = 106;
507
- static readonly RULE_multipartIdentifierProperty = 107;
508
- static readonly RULE_tableIdentifier = 108;
509
- static readonly RULE_viewIdentifier = 109;
510
- static readonly RULE_namedExpression = 110;
511
- static readonly RULE_namedExpressionSeq = 111;
512
- static readonly RULE_partitionFieldList = 112;
513
- static readonly RULE_partitionField = 113;
514
- static readonly RULE_transform = 114;
515
- static readonly RULE_transformArgument = 115;
516
- static readonly RULE_expression = 116;
517
- static readonly RULE_namedArgumentExpression = 117;
518
- static readonly RULE_functionArgument = 118;
519
- static readonly RULE_expressionSeq = 119;
520
- static readonly RULE_booleanExpression = 120;
521
- static readonly RULE_predicate = 121;
522
- static readonly RULE_valueExpression = 122;
523
- static readonly RULE_datetimeUnit = 123;
524
- static readonly RULE_primaryExpression = 124;
525
- static readonly RULE_literalType = 125;
526
- static readonly RULE_constant = 126;
527
- static readonly RULE_comparisonOperator = 127;
528
- static readonly RULE_arithmeticOperator = 128;
529
- static readonly RULE_predicateOperator = 129;
530
- static readonly RULE_booleanValue = 130;
531
- static readonly RULE_interval = 131;
532
- static readonly RULE_errorCapturingMultiUnitsInterval = 132;
533
- static readonly RULE_multiUnitsInterval = 133;
534
- static readonly RULE_errorCapturingUnitToUnitInterval = 134;
535
- static readonly RULE_unitToUnitInterval = 135;
536
- static readonly RULE_intervalValue = 136;
537
- static readonly RULE_unitInMultiUnits = 137;
538
- static readonly RULE_unitInUnitToUnit = 138;
539
- static readonly RULE_colPosition = 139;
540
- static readonly RULE_type = 140;
541
- static readonly RULE_dataType = 141;
542
- static readonly RULE_qualifiedColTypeWithPositionSeqForAdd = 142;
543
- static readonly RULE_qualifiedColTypeWithPositionForAdd = 143;
544
- static readonly RULE_qualifiedColTypeWithPositionSeqForReplace = 144;
545
- static readonly RULE_qualifiedColTypeWithPositionForReplace = 145;
546
- static readonly RULE_colDefinitionDescriptorWithPosition = 146;
547
- static readonly RULE_variableDefaultExpression = 147;
548
- static readonly RULE_colTypeList = 148;
549
- static readonly RULE_columnType = 149;
550
- static readonly RULE_createOrReplaceTableColTypeList = 150;
551
- static readonly RULE_createOrReplaceTableColType = 151;
552
- static readonly RULE_colDefinitionOption = 152;
553
- static readonly RULE_complexColType = 153;
554
- static readonly RULE_whenClause = 154;
555
- static readonly RULE_windowClause = 155;
556
- static readonly RULE_zOrderClause = 156;
557
- static readonly RULE_windowSpec = 157;
558
- static readonly RULE_windowFrame = 158;
559
- static readonly RULE_frameBound = 159;
560
- static readonly RULE_qualifiedNameList = 160;
561
- static readonly RULE_functionName = 161;
562
- static readonly RULE_functionNameCreate = 162;
563
- static readonly RULE_qualifiedName = 163;
564
- static readonly RULE_errorCapturingIdentifier = 164;
565
- static readonly RULE_errorCapturingIdentifierExtra = 165;
566
- static readonly RULE_identifier = 166;
567
- static readonly RULE_strictIdentifier = 167;
568
- static readonly RULE_quotedIdentifier = 168;
569
- static readonly RULE_number = 169;
570
- static readonly RULE_alterColumnAction = 170;
571
- static readonly RULE_stringLit = 171;
572
- static readonly RULE_ansiNonReserved = 172;
573
- static readonly RULE_strictNonReserved = 173;
574
- static readonly RULE_nonReserved = 174;
439
+ static readonly RULE_emptyColumn = 39;
440
+ static readonly RULE_columnName = 40;
441
+ static readonly RULE_columnNamePath = 41;
442
+ static readonly RULE_columnNamePathAllowEmpty = 42;
443
+ static readonly RULE_columnNameSeq = 43;
444
+ static readonly RULE_columnNameCreate = 44;
445
+ static readonly RULE_identifierReference = 45;
446
+ static readonly RULE_queryOrganization = 46;
447
+ static readonly RULE_limitClause = 47;
448
+ static readonly RULE_orderOrSortByClause = 48;
449
+ static readonly RULE_clusterOrDistributeBy = 49;
450
+ static readonly RULE_queryTerm = 50;
451
+ static readonly RULE_queryPrimary = 51;
452
+ static readonly RULE_sortItem = 52;
453
+ static readonly RULE_fromStatementBody = 53;
454
+ static readonly RULE_querySpecification = 54;
455
+ static readonly RULE_transformClause = 55;
456
+ static readonly RULE_selectClause = 56;
457
+ static readonly RULE_setClause = 57;
458
+ static readonly RULE_matchedClause = 58;
459
+ static readonly RULE_notMatchedClause = 59;
460
+ static readonly RULE_notMatchedBySourceClause = 60;
461
+ static readonly RULE_notMatchedAction = 61;
462
+ static readonly RULE_assignmentList = 62;
463
+ static readonly RULE_assignment = 63;
464
+ static readonly RULE_whereClause = 64;
465
+ static readonly RULE_havingClause = 65;
466
+ static readonly RULE_hint = 66;
467
+ static readonly RULE_hintStatement = 67;
468
+ static readonly RULE_fromClause = 68;
469
+ static readonly RULE_temporalClause = 69;
470
+ static readonly RULE_aggregationClause = 70;
471
+ static readonly RULE_groupByClause = 71;
472
+ static readonly RULE_groupingAnalytics = 72;
473
+ static readonly RULE_groupingSet = 73;
474
+ static readonly RULE_pivotClause = 74;
475
+ static readonly RULE_pivotColumn = 75;
476
+ static readonly RULE_pivotValue = 76;
477
+ static readonly RULE_unPivotClause = 77;
478
+ static readonly RULE_unPivotSingleValueColumnClause = 78;
479
+ static readonly RULE_unPivotMultiValueColumnClause = 79;
480
+ static readonly RULE_unPivotColumnSet = 80;
481
+ static readonly RULE_unPivotColumnAndAlias = 81;
482
+ static readonly RULE_ifNotExists = 82;
483
+ static readonly RULE_ifExists = 83;
484
+ static readonly RULE_lateralView = 84;
485
+ static readonly RULE_setQuantifier = 85;
486
+ static readonly RULE_relation = 86;
487
+ static readonly RULE_joinRelation = 87;
488
+ static readonly RULE_joinType = 88;
489
+ static readonly RULE_joinCriteria = 89;
490
+ static readonly RULE_sample = 90;
491
+ static readonly RULE_sampleMethod = 91;
492
+ static readonly RULE_identifierList = 92;
493
+ static readonly RULE_identifierSeq = 93;
494
+ static readonly RULE_orderedIdentifierList = 94;
495
+ static readonly RULE_orderedIdentifier = 95;
496
+ static readonly RULE_identifierCommentList = 96;
497
+ static readonly RULE_identifierComment = 97;
498
+ static readonly RULE_relationPrimary = 98;
499
+ static readonly RULE_atomSubQueryTableSource = 99;
500
+ static readonly RULE_inlineTable = 100;
501
+ static readonly RULE_functionTableSubqueryArgument = 101;
502
+ static readonly RULE_tableArgumentPartitioning = 102;
503
+ static readonly RULE_functionTableNamedArgumentExpression = 103;
504
+ static readonly RULE_functionTableReferenceArgument = 104;
505
+ static readonly RULE_functionTableArgument = 105;
506
+ static readonly RULE_functionTable = 106;
507
+ static readonly RULE_atomFunctionTable = 107;
508
+ static readonly RULE_tableAlias = 108;
509
+ static readonly RULE_rowFormat = 109;
510
+ static readonly RULE_multipartIdentifierList = 110;
511
+ static readonly RULE_multipartIdentifier = 111;
512
+ static readonly RULE_multipartIdentifierAllowEmpty = 112;
513
+ static readonly RULE_multipartIdentifierPropertyList = 113;
514
+ static readonly RULE_multipartIdentifierProperty = 114;
515
+ static readonly RULE_tableIdentifier = 115;
516
+ static readonly RULE_viewIdentifier = 116;
517
+ static readonly RULE_selectLiteralColumnName = 117;
518
+ static readonly RULE_selectExpressionColumnName = 118;
519
+ static readonly RULE_tableAllColumns = 119;
520
+ static readonly RULE_namedExpression = 120;
521
+ static readonly RULE_namedExpressionSeq = 121;
522
+ static readonly RULE_selectList = 122;
523
+ static readonly RULE_partitionFieldList = 123;
524
+ static readonly RULE_partitionField = 124;
525
+ static readonly RULE_transform = 125;
526
+ static readonly RULE_transformArgument = 126;
527
+ static readonly RULE_expression = 127;
528
+ static readonly RULE_namedArgumentExpression = 128;
529
+ static readonly RULE_functionArgument = 129;
530
+ static readonly RULE_expressionSeq = 130;
531
+ static readonly RULE_booleanExpression = 131;
532
+ static readonly RULE_predicate = 132;
533
+ static readonly RULE_valueExpression = 133;
534
+ static readonly RULE_datetimeUnit = 134;
535
+ static readonly RULE_primaryExpression = 135;
536
+ static readonly RULE_literalType = 136;
537
+ static readonly RULE_constant = 137;
538
+ static readonly RULE_comparisonOperator = 138;
539
+ static readonly RULE_arithmeticOperator = 139;
540
+ static readonly RULE_predicateOperator = 140;
541
+ static readonly RULE_booleanValue = 141;
542
+ static readonly RULE_interval = 142;
543
+ static readonly RULE_errorCapturingMultiUnitsInterval = 143;
544
+ static readonly RULE_multiUnitsInterval = 144;
545
+ static readonly RULE_errorCapturingUnitToUnitInterval = 145;
546
+ static readonly RULE_unitToUnitInterval = 146;
547
+ static readonly RULE_intervalValue = 147;
548
+ static readonly RULE_unitInMultiUnits = 148;
549
+ static readonly RULE_unitInUnitToUnit = 149;
550
+ static readonly RULE_colPosition = 150;
551
+ static readonly RULE_type = 151;
552
+ static readonly RULE_dataType = 152;
553
+ static readonly RULE_qualifiedColTypeWithPositionSeqForAdd = 153;
554
+ static readonly RULE_qualifiedColTypeWithPositionForAdd = 154;
555
+ static readonly RULE_qualifiedColTypeWithPositionSeqForReplace = 155;
556
+ static readonly RULE_qualifiedColTypeWithPositionForReplace = 156;
557
+ static readonly RULE_colDefinitionDescriptorWithPosition = 157;
558
+ static readonly RULE_variableDefaultExpression = 158;
559
+ static readonly RULE_colTypeList = 159;
560
+ static readonly RULE_columnType = 160;
561
+ static readonly RULE_createOrReplaceTableColTypeList = 161;
562
+ static readonly RULE_createOrReplaceTableColType = 162;
563
+ static readonly RULE_colDefinitionOption = 163;
564
+ static readonly RULE_complexColType = 164;
565
+ static readonly RULE_whenClause = 165;
566
+ static readonly RULE_windowClause = 166;
567
+ static readonly RULE_zOrderClause = 167;
568
+ static readonly RULE_windowSpec = 168;
569
+ static readonly RULE_windowFrame = 169;
570
+ static readonly RULE_frameBound = 170;
571
+ static readonly RULE_qualifiedNameList = 171;
572
+ static readonly RULE_functionName = 172;
573
+ static readonly RULE_functionNameCreate = 173;
574
+ static readonly RULE_qualifiedName = 174;
575
+ static readonly RULE_errorCapturingIdentifier = 175;
576
+ static readonly RULE_errorCapturingIdentifierExtra = 176;
577
+ static readonly RULE_identifier = 177;
578
+ static readonly RULE_strictIdentifier = 178;
579
+ static readonly RULE_quotedIdentifier = 179;
580
+ static readonly RULE_number = 180;
581
+ static readonly RULE_alterColumnAction = 181;
582
+ static readonly RULE_stringLit = 182;
583
+ static readonly RULE_ansiNonReserved = 183;
584
+ static readonly RULE_strictNonReserved = 184;
585
+ static readonly RULE_nonReserved = 185;
575
586
  static readonly literalNames: (string | null)[];
576
587
  static readonly symbolicNames: (string | null)[];
577
588
  static readonly ruleNames: string[];
@@ -621,8 +632,10 @@ export declare class SparkSqlParser extends SQLParserBase {
621
632
  tableName(): TableNameContext;
622
633
  viewNameCreate(): ViewNameCreateContext;
623
634
  viewName(): ViewNameContext;
635
+ emptyColumn(): EmptyColumnContext;
624
636
  columnName(): ColumnNameContext;
625
637
  columnNamePath(): ColumnNamePathContext;
638
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext;
626
639
  columnNameSeq(): ColumnNameSeqContext;
627
640
  columnNameCreate(): ColumnNameCreateContext;
628
641
  identifierReference(): IdentifierReferenceContext;
@@ -680,21 +693,30 @@ export declare class SparkSqlParser extends SQLParserBase {
680
693
  identifierCommentList(): IdentifierCommentListContext;
681
694
  identifierComment(): IdentifierCommentContext;
682
695
  relationPrimary(): RelationPrimaryContext;
696
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
697
+ inlineTable(): InlineTableContext;
683
698
  functionTableSubqueryArgument(): FunctionTableSubqueryArgumentContext;
684
699
  tableArgumentPartitioning(): TableArgumentPartitioningContext;
685
700
  functionTableNamedArgumentExpression(): FunctionTableNamedArgumentExpressionContext;
686
701
  functionTableReferenceArgument(): FunctionTableReferenceArgumentContext;
687
702
  functionTableArgument(): FunctionTableArgumentContext;
703
+ functionTable(): FunctionTableContext;
704
+ atomFunctionTable(): AtomFunctionTableContext;
688
705
  tableAlias(): TableAliasContext;
689
706
  rowFormat(): RowFormatContext;
690
707
  multipartIdentifierList(): MultipartIdentifierListContext;
691
708
  multipartIdentifier(): MultipartIdentifierContext;
709
+ multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext;
692
710
  multipartIdentifierPropertyList(): MultipartIdentifierPropertyListContext;
693
711
  multipartIdentifierProperty(): MultipartIdentifierPropertyContext;
694
712
  tableIdentifier(): TableIdentifierContext;
695
713
  viewIdentifier(): ViewIdentifierContext;
714
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
715
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
716
+ tableAllColumns(): TableAllColumnsContext;
696
717
  namedExpression(): NamedExpressionContext;
697
718
  namedExpressionSeq(): NamedExpressionSeqContext;
719
+ selectList(): SelectListContext;
698
720
  partitionFieldList(): PartitionFieldListContext;
699
721
  partitionField(): PartitionFieldContext;
700
722
  transform(): TransformContext;
@@ -763,7 +785,10 @@ export declare class SparkSqlParser extends SQLParserBase {
763
785
  nonReserved(): NonReservedContext;
764
786
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
765
787
  private columnName_sempred;
788
+ private columnNamePathAllowEmpty_sempred;
766
789
  private queryTerm_sempred;
790
+ private multipartIdentifierAllowEmpty_sempred;
791
+ private namedExpression_sempred;
767
792
  private booleanExpression_sempred;
768
793
  private valueExpression_sempred;
769
794
  private primaryExpression_sempred;
@@ -2594,9 +2619,17 @@ export declare class ViewNameContext extends antlr.ParserRuleContext {
2594
2619
  exitRule(listener: SparkSqlParserListener): void;
2595
2620
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2596
2621
  }
2622
+ export declare class EmptyColumnContext extends antlr.ParserRuleContext {
2623
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2624
+ get ruleIndex(): number;
2625
+ enterRule(listener: SparkSqlParserListener): void;
2626
+ exitRule(listener: SparkSqlParserListener): void;
2627
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2628
+ }
2597
2629
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
2598
2630
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2599
- multipartIdentifier(): MultipartIdentifierContext | null;
2631
+ multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext | null;
2632
+ emptyColumn(): EmptyColumnContext | null;
2600
2633
  get ruleIndex(): number;
2601
2634
  enterRule(listener: SparkSqlParserListener): void;
2602
2635
  exitRule(listener: SparkSqlParserListener): void;
@@ -2610,6 +2643,15 @@ export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
2610
2643
  exitRule(listener: SparkSqlParserListener): void;
2611
2644
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2612
2645
  }
2646
+ export declare class ColumnNamePathAllowEmptyContext extends antlr.ParserRuleContext {
2647
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2648
+ multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext | null;
2649
+ emptyColumn(): EmptyColumnContext | null;
2650
+ get ruleIndex(): number;
2651
+ enterRule(listener: SparkSqlParserListener): void;
2652
+ exitRule(listener: SparkSqlParserListener): void;
2653
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2654
+ }
2613
2655
  export declare class ColumnNameSeqContext extends antlr.ParserRuleContext {
2614
2656
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2615
2657
  columnName(): ColumnNameContext[];
@@ -2822,7 +2864,7 @@ export declare class SelectClauseContext extends antlr.ParserRuleContext {
2822
2864
  _hints: HintContext[];
2823
2865
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2824
2866
  KW_SELECT(): antlr.TerminalNode;
2825
- namedExpressionSeq(): NamedExpressionSeqContext;
2867
+ selectList(): SelectListContext;
2826
2868
  setQuantifier(): SetQuantifierContext | null;
2827
2869
  hint(): HintContext[];
2828
2870
  hint(i: number): HintContext | null;
@@ -3328,6 +3370,9 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
3328
3370
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3329
3371
  KW_ON(): antlr.TerminalNode | null;
3330
3372
  booleanExpression(): BooleanExpressionContext | null;
3373
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext[];
3374
+ columnNamePathAllowEmpty(i: number): ColumnNamePathAllowEmptyContext | null;
3375
+ EQ(): antlr.TerminalNode | null;
3331
3376
  KW_USING(): antlr.TerminalNode | null;
3332
3377
  identifierList(): IdentifierListContext | null;
3333
3378
  get ruleIndex(): number;
@@ -3453,24 +3498,73 @@ export declare class IdentifierCommentContext extends antlr.ParserRuleContext {
3453
3498
  }
3454
3499
  export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
3455
3500
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3501
+ get ruleIndex(): number;
3502
+ copyFrom(ctx: RelationPrimaryContext): void;
3503
+ }
3504
+ export declare class SubQueryTableSourceContext extends RelationPrimaryContext {
3505
+ constructor(ctx: RelationPrimaryContext);
3506
+ atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
3507
+ tableAlias(): TableAliasContext;
3508
+ sample(): SampleContext | null;
3509
+ enterRule(listener: SparkSqlParserListener): void;
3510
+ exitRule(listener: SparkSqlParserListener): void;
3511
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3512
+ }
3513
+ export declare class TableSourceContext extends RelationPrimaryContext {
3514
+ constructor(ctx: RelationPrimaryContext);
3456
3515
  tableAlias(): TableAliasContext;
3457
3516
  tableName(): TableNameContext | null;
3458
3517
  viewName(): ViewNameContext | null;
3459
3518
  identifierReference(): IdentifierReferenceContext | null;
3460
3519
  temporalClause(): TemporalClauseContext | null;
3461
3520
  sample(): SampleContext | null;
3462
- LEFT_PAREN(): antlr.TerminalNode | null;
3463
- query(): QueryContext | null;
3464
- RIGHT_PAREN(): antlr.TerminalNode | null;
3465
- relation(): RelationContext | null;
3466
- KW_VALUES(): antlr.TerminalNode | null;
3521
+ enterRule(listener: SparkSqlParserListener): void;
3522
+ exitRule(listener: SparkSqlParserListener): void;
3523
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3524
+ }
3525
+ export declare class FunctionTableSourceContext extends RelationPrimaryContext {
3526
+ constructor(ctx: RelationPrimaryContext);
3527
+ functionTable(): FunctionTableContext;
3528
+ enterRule(listener: SparkSqlParserListener): void;
3529
+ exitRule(listener: SparkSqlParserListener): void;
3530
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3531
+ }
3532
+ export declare class JoinTableSourceContext extends RelationPrimaryContext {
3533
+ constructor(ctx: RelationPrimaryContext);
3534
+ LEFT_PAREN(): antlr.TerminalNode;
3535
+ relation(): RelationContext;
3536
+ RIGHT_PAREN(): antlr.TerminalNode;
3537
+ tableAlias(): TableAliasContext;
3538
+ sample(): SampleContext | null;
3539
+ enterRule(listener: SparkSqlParserListener): void;
3540
+ exitRule(listener: SparkSqlParserListener): void;
3541
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3542
+ }
3543
+ export declare class InlineTableSourceContext extends RelationPrimaryContext {
3544
+ constructor(ctx: RelationPrimaryContext);
3545
+ inlineTable(): InlineTableContext;
3546
+ tableAlias(): TableAliasContext;
3547
+ enterRule(listener: SparkSqlParserListener): void;
3548
+ exitRule(listener: SparkSqlParserListener): void;
3549
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3550
+ }
3551
+ export declare class AtomSubQueryTableSourceContext extends antlr.ParserRuleContext {
3552
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3553
+ LEFT_PAREN(): antlr.TerminalNode;
3554
+ query(): QueryContext;
3555
+ RIGHT_PAREN(): antlr.TerminalNode;
3556
+ get ruleIndex(): number;
3557
+ enterRule(listener: SparkSqlParserListener): void;
3558
+ exitRule(listener: SparkSqlParserListener): void;
3559
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3560
+ }
3561
+ export declare class InlineTableContext extends antlr.ParserRuleContext {
3562
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3563
+ KW_VALUES(): antlr.TerminalNode;
3467
3564
  expression(): ExpressionContext[];
3468
3565
  expression(i: number): ExpressionContext | null;
3469
3566
  COMMA(): antlr.TerminalNode[];
3470
3567
  COMMA(i: number): antlr.TerminalNode | null;
3471
- functionName(): FunctionNameContext | null;
3472
- functionTableArgument(): FunctionTableArgumentContext[];
3473
- functionTableArgument(i: number): FunctionTableArgumentContext | null;
3474
3568
  get ruleIndex(): number;
3475
3569
  enterRule(listener: SparkSqlParserListener): void;
3476
3570
  exitRule(listener: SparkSqlParserListener): void;
@@ -3546,6 +3640,29 @@ export declare class FunctionTableArgumentContext extends antlr.ParserRuleContex
3546
3640
  exitRule(listener: SparkSqlParserListener): void;
3547
3641
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3548
3642
  }
3643
+ export declare class FunctionTableContext extends antlr.ParserRuleContext {
3644
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3645
+ atomFunctionTable(): AtomFunctionTableContext;
3646
+ tableAlias(): TableAliasContext;
3647
+ get ruleIndex(): number;
3648
+ enterRule(listener: SparkSqlParserListener): void;
3649
+ exitRule(listener: SparkSqlParserListener): void;
3650
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3651
+ }
3652
+ export declare class AtomFunctionTableContext extends antlr.ParserRuleContext {
3653
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3654
+ functionName(): FunctionNameContext;
3655
+ LEFT_PAREN(): antlr.TerminalNode;
3656
+ RIGHT_PAREN(): antlr.TerminalNode;
3657
+ functionTableArgument(): FunctionTableArgumentContext[];
3658
+ functionTableArgument(i: number): FunctionTableArgumentContext | null;
3659
+ COMMA(): antlr.TerminalNode[];
3660
+ COMMA(i: number): antlr.TerminalNode | null;
3661
+ get ruleIndex(): number;
3662
+ enterRule(listener: SparkSqlParserListener): void;
3663
+ exitRule(listener: SparkSqlParserListener): void;
3664
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3665
+ }
3549
3666
  export declare class TableAliasContext extends antlr.ParserRuleContext {
3550
3667
  _alias?: StrictIdentifierContext;
3551
3668
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
@@ -3619,6 +3736,16 @@ export declare class MultipartIdentifierContext extends antlr.ParserRuleContext
3619
3736
  exitRule(listener: SparkSqlParserListener): void;
3620
3737
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3621
3738
  }
3739
+ export declare class MultipartIdentifierAllowEmptyContext extends antlr.ParserRuleContext {
3740
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3741
+ multipartIdentifier(): MultipartIdentifierContext;
3742
+ DOT(): antlr.TerminalNode | null;
3743
+ emptyColumn(): EmptyColumnContext | null;
3744
+ get ruleIndex(): number;
3745
+ enterRule(listener: SparkSqlParserListener): void;
3746
+ exitRule(listener: SparkSqlParserListener): void;
3747
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3748
+ }
3622
3749
  export declare class MultipartIdentifierPropertyListContext extends antlr.ParserRuleContext {
3623
3750
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3624
3751
  multipartIdentifierProperty(): MultipartIdentifierPropertyContext[];
@@ -3665,14 +3792,44 @@ export declare class ViewIdentifierContext extends antlr.ParserRuleContext {
3665
3792
  exitRule(listener: SparkSqlParserListener): void;
3666
3793
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3667
3794
  }
3795
+ export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
3796
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3797
+ columnName(): ColumnNameContext;
3798
+ get ruleIndex(): number;
3799
+ enterRule(listener: SparkSqlParserListener): void;
3800
+ exitRule(listener: SparkSqlParserListener): void;
3801
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3802
+ }
3803
+ export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
3804
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3805
+ expression(): ExpressionContext;
3806
+ get ruleIndex(): number;
3807
+ enterRule(listener: SparkSqlParserListener): void;
3808
+ exitRule(listener: SparkSqlParserListener): void;
3809
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3810
+ }
3811
+ export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
3812
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3813
+ ASTERISK(): antlr.TerminalNode;
3814
+ qualifiedName(): QualifiedNameContext[];
3815
+ qualifiedName(i: number): QualifiedNameContext | null;
3816
+ DOT(): antlr.TerminalNode[];
3817
+ DOT(i: number): antlr.TerminalNode | null;
3818
+ get ruleIndex(): number;
3819
+ enterRule(listener: SparkSqlParserListener): void;
3820
+ exitRule(listener: SparkSqlParserListener): void;
3821
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3822
+ }
3668
3823
  export declare class NamedExpressionContext extends antlr.ParserRuleContext {
3669
- _name?: ErrorCapturingIdentifierContext;
3824
+ _alias?: ErrorCapturingIdentifierContext;
3670
3825
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3671
- columnName(): ColumnNameContext | null;
3672
- expression(): ExpressionContext | null;
3826
+ tableAllColumns(): TableAllColumnsContext | null;
3827
+ selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
3828
+ selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
3673
3829
  identifierList(): IdentifierListContext | null;
3674
3830
  KW_AS(): antlr.TerminalNode | null;
3675
3831
  errorCapturingIdentifier(): ErrorCapturingIdentifierContext | null;
3832
+ emptyColumn(): EmptyColumnContext | null;
3676
3833
  get ruleIndex(): number;
3677
3834
  enterRule(listener: SparkSqlParserListener): void;
3678
3835
  exitRule(listener: SparkSqlParserListener): void;
@@ -3689,6 +3846,14 @@ export declare class NamedExpressionSeqContext extends antlr.ParserRuleContext {
3689
3846
  exitRule(listener: SparkSqlParserListener): void;
3690
3847
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3691
3848
  }
3849
+ export declare class SelectListContext extends antlr.ParserRuleContext {
3850
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3851
+ namedExpressionSeq(): NamedExpressionSeqContext;
3852
+ get ruleIndex(): number;
3853
+ enterRule(listener: SparkSqlParserListener): void;
3854
+ exitRule(listener: SparkSqlParserListener): void;
3855
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3856
+ }
3692
3857
  export declare class PartitionFieldListContext extends antlr.ParserRuleContext {
3693
3858
  _partitionField?: PartitionFieldContext;
3694
3859
  _fields: PartitionFieldContext[];