dt-sql-parser 4.5.0-beta.1 → 4.5.0-beta.2

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 (62) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.js +2 -2
  3. package/dist/lib/SQLParserBase.d.ts +1 -13
  4. package/dist/lib/SQLParserBase.js +5 -40
  5. package/dist/lib/flink/FlinkSqlParser.d.ts +179 -222
  6. package/dist/lib/flink/FlinkSqlParser.js +2949 -3300
  7. package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -33
  8. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -21
  9. package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
  10. package/dist/lib/generic/GenericSqlLexer.js +603 -0
  11. package/dist/lib/generic/GenericSqlListener.d.ts +1089 -0
  12. package/dist/lib/generic/GenericSqlListener.js +11 -0
  13. package/dist/lib/generic/GenericSqlParser.d.ts +1272 -0
  14. package/dist/lib/generic/GenericSqlParser.js +7641 -0
  15. package/dist/lib/generic/GenericSqlVisitor.d.ts +684 -0
  16. package/dist/lib/generic/GenericSqlVisitor.js +12 -0
  17. package/dist/lib/hive/HiveSqlParser.d.ts +228 -274
  18. package/dist/lib/hive/HiveSqlParser.js +5912 -6304
  19. package/dist/lib/hive/HiveSqlParserListener.d.ts +0 -33
  20. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +0 -21
  21. package/dist/lib/impala/ImpalaSqlParser.d.ts +103 -145
  22. package/dist/lib/impala/ImpalaSqlParser.js +3320 -3687
  23. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -33
  24. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -21
  25. package/dist/lib/index.d.ts +2 -0
  26. package/dist/lib/index.js +2 -0
  27. package/dist/lib/mysql/MySqlParser.d.ts +94 -161
  28. package/dist/lib/mysql/MySqlParser.js +9499 -9959
  29. package/dist/lib/mysql/MySqlParserListener.d.ts +5 -79
  30. package/dist/lib/mysql/MySqlParserVisitor.d.ts +3 -49
  31. package/dist/lib/postgresql/PostgreSqlParser.d.ts +71 -108
  32. package/dist/lib/postgresql/PostgreSqlParser.js +10388 -13330
  33. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +0 -48
  34. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +0 -30
  35. package/dist/lib/spark/SparkSqlParser.d.ts +145 -185
  36. package/dist/lib/spark/SparkSqlParser.js +5109 -5420
  37. package/dist/lib/spark/SparkSqlParserListener.d.ts +0 -33
  38. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +0 -21
  39. package/dist/parser/common/basicSQL.d.ts +5 -5
  40. package/dist/parser/common/basicSQL.js +3 -3
  41. package/dist/parser/common/entityCollector.js +2 -14
  42. package/dist/parser/flink/index.js +2 -5
  43. package/dist/parser/generic/genericEntityCollector.d.ts +29 -0
  44. package/dist/parser/generic/genericEntityCollector.js +103 -0
  45. package/dist/parser/generic/genericErrorListener.d.ts +6 -0
  46. package/dist/parser/generic/genericErrorListener.js +56 -0
  47. package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
  48. package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
  49. package/dist/parser/generic/genericSplitListener.d.ts +6 -0
  50. package/dist/parser/generic/genericSplitListener.js +6 -0
  51. package/dist/parser/generic/index.d.ts +33 -0
  52. package/dist/parser/generic/index.js +94 -0
  53. package/dist/parser/index.d.ts +1 -0
  54. package/dist/parser/index.js +1 -0
  55. package/dist/parser/mysql/index.js +1 -3
  56. package/dist/parser/mysql/mysqlEntityCollector.d.ts +1 -2
  57. package/dist/parser/mysql/mysqlEntityCollector.js +3 -13
  58. package/dist/parser/mysql/mysqlErrorListener.js +0 -2
  59. package/dist/parser/postgresql/postgreEntityCollector.d.ts +1 -3
  60. package/dist/parser/postgresql/postgreEntityCollector.js +0 -13
  61. package/dist/parser/spark/index.js +1 -3
  62. package/package.json +1 -1
@@ -395,8 +395,6 @@ import { OptIndirectionContext } from "./PostgreSqlParser.js";
395
395
  import { TargetListContext } from "./PostgreSqlParser.js";
396
396
  import { Target_starContext } from "./PostgreSqlParser.js";
397
397
  import { Target_labelContext } from "./PostgreSqlParser.js";
398
- import { Target_dot_emptyContext } from "./PostgreSqlParser.js";
399
- import { Target_emptyContext } from "./PostgreSqlParser.js";
400
398
  import { TableAllColumnsContext } from "./PostgreSqlParser.js";
401
399
  import { QualifiedNameListContext } from "./PostgreSqlParser.js";
402
400
  import { TableNameListContext } from "./PostgreSqlParser.js";
@@ -418,7 +416,6 @@ import { RoutineNameCreateContext } from "./PostgreSqlParser.js";
418
416
  import { RoutineNameContext } from "./PostgreSqlParser.js";
419
417
  import { ProcedureNameContext } from "./PostgreSqlParser.js";
420
418
  import { ProcedureNameCreateContext } from "./PostgreSqlParser.js";
421
- import { EmptyColumnContext } from "./PostgreSqlParser.js";
422
419
  import { ColumnNameContext } from "./PostgreSqlParser.js";
423
420
  import { ColumnNamePathContext } from "./PostgreSqlParser.js";
424
421
  import { ColumnNameCreateContext } from "./PostgreSqlParser.js";
@@ -433,7 +430,6 @@ import { ColIdContext } from "./PostgreSqlParser.js";
433
430
  import { TypeFunctionNameContext } from "./PostgreSqlParser.js";
434
431
  import { NonReservedWordContext } from "./PostgreSqlParser.js";
435
432
  import { ColLabelContext } from "./PostgreSqlParser.js";
436
- import { IndirectionLabelContext } from "./PostgreSqlParser.js";
437
433
  import { IdentifierContext } from "./PostgreSqlParser.js";
438
434
  import { UnreservedKeywordContext } from "./PostgreSqlParser.js";
439
435
  import { ColNameKeywordContext } from "./PostgreSqlParser.js";
@@ -4506,30 +4502,6 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
4506
4502
  * @param ctx the parse tree
4507
4503
  */
4508
4504
  exitTarget_label?: (ctx: Target_labelContext) => void;
4509
- /**
4510
- * Enter a parse tree produced by the `target_dot_empty`
4511
- * labeled alternative in `PostgreSqlParser.targetEl`.
4512
- * @param ctx the parse tree
4513
- */
4514
- enterTarget_dot_empty?: (ctx: Target_dot_emptyContext) => void;
4515
- /**
4516
- * Exit a parse tree produced by the `target_dot_empty`
4517
- * labeled alternative in `PostgreSqlParser.targetEl`.
4518
- * @param ctx the parse tree
4519
- */
4520
- exitTarget_dot_empty?: (ctx: Target_dot_emptyContext) => void;
4521
- /**
4522
- * Enter a parse tree produced by the `target_empty`
4523
- * labeled alternative in `PostgreSqlParser.targetEl`.
4524
- * @param ctx the parse tree
4525
- */
4526
- enterTarget_empty?: (ctx: Target_emptyContext) => void;
4527
- /**
4528
- * Exit a parse tree produced by the `target_empty`
4529
- * labeled alternative in `PostgreSqlParser.targetEl`.
4530
- * @param ctx the parse tree
4531
- */
4532
- exitTarget_empty?: (ctx: Target_emptyContext) => void;
4533
4505
  /**
4534
4506
  * Enter a parse tree produced by `PostgreSqlParser.tableAllColumns`.
4535
4507
  * @param ctx the parse tree
@@ -4740,16 +4712,6 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
4740
4712
  * @param ctx the parse tree
4741
4713
  */
4742
4714
  exitProcedureNameCreate?: (ctx: ProcedureNameCreateContext) => void;
4743
- /**
4744
- * Enter a parse tree produced by `PostgreSqlParser.emptyColumn`.
4745
- * @param ctx the parse tree
4746
- */
4747
- enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
4748
- /**
4749
- * Exit a parse tree produced by `PostgreSqlParser.emptyColumn`.
4750
- * @param ctx the parse tree
4751
- */
4752
- exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
4753
4715
  /**
4754
4716
  * Enter a parse tree produced by `PostgreSqlParser.columnName`.
4755
4717
  * @param ctx the parse tree
@@ -4890,16 +4852,6 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
4890
4852
  * @param ctx the parse tree
4891
4853
  */
4892
4854
  exitColLabel?: (ctx: ColLabelContext) => void;
4893
- /**
4894
- * Enter a parse tree produced by `PostgreSqlParser.indirectionLabel`.
4895
- * @param ctx the parse tree
4896
- */
4897
- enterIndirectionLabel?: (ctx: IndirectionLabelContext) => void;
4898
- /**
4899
- * Exit a parse tree produced by `PostgreSqlParser.indirectionLabel`.
4900
- * @param ctx the parse tree
4901
- */
4902
- exitIndirectionLabel?: (ctx: IndirectionLabelContext) => void;
4903
4855
  /**
4904
4856
  * Enter a parse tree produced by `PostgreSqlParser.identifier`.
4905
4857
  * @param ctx the parse tree
@@ -395,8 +395,6 @@ import { OptIndirectionContext } from "./PostgreSqlParser.js";
395
395
  import { TargetListContext } from "./PostgreSqlParser.js";
396
396
  import { Target_starContext } from "./PostgreSqlParser.js";
397
397
  import { Target_labelContext } from "./PostgreSqlParser.js";
398
- import { Target_dot_emptyContext } from "./PostgreSqlParser.js";
399
- import { Target_emptyContext } from "./PostgreSqlParser.js";
400
398
  import { TableAllColumnsContext } from "./PostgreSqlParser.js";
401
399
  import { QualifiedNameListContext } from "./PostgreSqlParser.js";
402
400
  import { TableNameListContext } from "./PostgreSqlParser.js";
@@ -418,7 +416,6 @@ import { RoutineNameCreateContext } from "./PostgreSqlParser.js";
418
416
  import { RoutineNameContext } from "./PostgreSqlParser.js";
419
417
  import { ProcedureNameContext } from "./PostgreSqlParser.js";
420
418
  import { ProcedureNameCreateContext } from "./PostgreSqlParser.js";
421
- import { EmptyColumnContext } from "./PostgreSqlParser.js";
422
419
  import { ColumnNameContext } from "./PostgreSqlParser.js";
423
420
  import { ColumnNamePathContext } from "./PostgreSqlParser.js";
424
421
  import { ColumnNameCreateContext } from "./PostgreSqlParser.js";
@@ -433,7 +430,6 @@ import { ColIdContext } from "./PostgreSqlParser.js";
433
430
  import { TypeFunctionNameContext } from "./PostgreSqlParser.js";
434
431
  import { NonReservedWordContext } from "./PostgreSqlParser.js";
435
432
  import { ColLabelContext } from "./PostgreSqlParser.js";
436
- import { IndirectionLabelContext } from "./PostgreSqlParser.js";
437
433
  import { IdentifierContext } from "./PostgreSqlParser.js";
438
434
  import { UnreservedKeywordContext } from "./PostgreSqlParser.js";
439
435
  import { ColNameKeywordContext } from "./PostgreSqlParser.js";
@@ -2898,20 +2894,6 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
2898
2894
  * @return the visitor result
2899
2895
  */
2900
2896
  visitTarget_label?: (ctx: Target_labelContext) => Result;
2901
- /**
2902
- * Visit a parse tree produced by the `target_dot_empty`
2903
- * labeled alternative in `PostgreSqlParser.targetEl`.
2904
- * @param ctx the parse tree
2905
- * @return the visitor result
2906
- */
2907
- visitTarget_dot_empty?: (ctx: Target_dot_emptyContext) => Result;
2908
- /**
2909
- * Visit a parse tree produced by the `target_empty`
2910
- * labeled alternative in `PostgreSqlParser.targetEl`.
2911
- * @param ctx the parse tree
2912
- * @return the visitor result
2913
- */
2914
- visitTarget_empty?: (ctx: Target_emptyContext) => Result;
2915
2897
  /**
2916
2898
  * Visit a parse tree produced by `PostgreSqlParser.tableAllColumns`.
2917
2899
  * @param ctx the parse tree
@@ -3038,12 +3020,6 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
3038
3020
  * @return the visitor result
3039
3021
  */
3040
3022
  visitProcedureNameCreate?: (ctx: ProcedureNameCreateContext) => Result;
3041
- /**
3042
- * Visit a parse tree produced by `PostgreSqlParser.emptyColumn`.
3043
- * @param ctx the parse tree
3044
- * @return the visitor result
3045
- */
3046
- visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
3047
3023
  /**
3048
3024
  * Visit a parse tree produced by `PostgreSqlParser.columnName`.
3049
3025
  * @param ctx the parse tree
@@ -3128,12 +3104,6 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
3128
3104
  * @return the visitor result
3129
3105
  */
3130
3106
  visitColLabel?: (ctx: ColLabelContext) => Result;
3131
- /**
3132
- * Visit a parse tree produced by `PostgreSqlParser.indirectionLabel`.
3133
- * @param ctx the parse tree
3134
- * @return the visitor result
3135
- */
3136
- visitIndirectionLabel?: (ctx: IndirectionLabelContext) => Result;
3137
3107
  /**
3138
3108
  * Visit a parse tree produced by `PostgreSqlParser.identifier`.
3139
3109
  * @param ctx the parse tree
@@ -436,153 +436,150 @@ 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_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;
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_atomSubQueryTableSource = 97;
498
+ static readonly RULE_inlineTable = 98;
499
+ static readonly RULE_functionTableSubqueryArgument = 99;
500
+ static readonly RULE_tableArgumentPartitioning = 100;
501
+ static readonly RULE_functionTableNamedArgumentExpression = 101;
502
+ static readonly RULE_functionTableReferenceArgument = 102;
503
+ static readonly RULE_functionTableArgument = 103;
504
+ static readonly RULE_functionTable = 104;
505
+ static readonly RULE_atomFunctionTable = 105;
506
+ static readonly RULE_tableAlias = 106;
507
+ static readonly RULE_rowFormat = 107;
508
+ static readonly RULE_multipartIdentifierList = 108;
509
+ static readonly RULE_multipartIdentifier = 109;
510
+ static readonly RULE_multipartIdentifierPropertyList = 110;
511
+ static readonly RULE_multipartIdentifierProperty = 111;
512
+ static readonly RULE_tableIdentifier = 112;
513
+ static readonly RULE_viewIdentifier = 113;
514
+ static readonly RULE_selectLiteralColumnName = 114;
515
+ static readonly RULE_selectExpressionColumnName = 115;
516
+ static readonly RULE_tableAllColumns = 116;
517
+ static readonly RULE_namedExpression = 117;
518
+ static readonly RULE_namedExpressionSeq = 118;
519
+ static readonly RULE_selectList = 119;
520
+ static readonly RULE_partitionFieldList = 120;
521
+ static readonly RULE_partitionField = 121;
522
+ static readonly RULE_transform = 122;
523
+ static readonly RULE_transformArgument = 123;
524
+ static readonly RULE_expression = 124;
525
+ static readonly RULE_namedArgumentExpression = 125;
526
+ static readonly RULE_functionArgument = 126;
527
+ static readonly RULE_expressionSeq = 127;
528
+ static readonly RULE_booleanExpression = 128;
529
+ static readonly RULE_predicate = 129;
530
+ static readonly RULE_valueExpression = 130;
531
+ static readonly RULE_datetimeUnit = 131;
532
+ static readonly RULE_primaryExpression = 132;
533
+ static readonly RULE_literalType = 133;
534
+ static readonly RULE_constant = 134;
535
+ static readonly RULE_comparisonOperator = 135;
536
+ static readonly RULE_arithmeticOperator = 136;
537
+ static readonly RULE_predicateOperator = 137;
538
+ static readonly RULE_booleanValue = 138;
539
+ static readonly RULE_interval = 139;
540
+ static readonly RULE_errorCapturingMultiUnitsInterval = 140;
541
+ static readonly RULE_multiUnitsInterval = 141;
542
+ static readonly RULE_errorCapturingUnitToUnitInterval = 142;
543
+ static readonly RULE_unitToUnitInterval = 143;
544
+ static readonly RULE_intervalValue = 144;
545
+ static readonly RULE_unitInMultiUnits = 145;
546
+ static readonly RULE_unitInUnitToUnit = 146;
547
+ static readonly RULE_colPosition = 147;
548
+ static readonly RULE_type = 148;
549
+ static readonly RULE_dataType = 149;
550
+ static readonly RULE_qualifiedColTypeWithPositionSeqForAdd = 150;
551
+ static readonly RULE_qualifiedColTypeWithPositionForAdd = 151;
552
+ static readonly RULE_qualifiedColTypeWithPositionSeqForReplace = 152;
553
+ static readonly RULE_qualifiedColTypeWithPositionForReplace = 153;
554
+ static readonly RULE_colDefinitionDescriptorWithPosition = 154;
555
+ static readonly RULE_variableDefaultExpression = 155;
556
+ static readonly RULE_colTypeList = 156;
557
+ static readonly RULE_columnType = 157;
558
+ static readonly RULE_createOrReplaceTableColTypeList = 158;
559
+ static readonly RULE_createOrReplaceTableColType = 159;
560
+ static readonly RULE_colDefinitionOption = 160;
561
+ static readonly RULE_complexColType = 161;
562
+ static readonly RULE_whenClause = 162;
563
+ static readonly RULE_windowClause = 163;
564
+ static readonly RULE_zOrderClause = 164;
565
+ static readonly RULE_windowSpec = 165;
566
+ static readonly RULE_windowFrame = 166;
567
+ static readonly RULE_frameBound = 167;
568
+ static readonly RULE_qualifiedNameList = 168;
569
+ static readonly RULE_functionName = 169;
570
+ static readonly RULE_functionNameCreate = 170;
571
+ static readonly RULE_qualifiedName = 171;
572
+ static readonly RULE_errorCapturingIdentifier = 172;
573
+ static readonly RULE_errorCapturingIdentifierExtra = 173;
574
+ static readonly RULE_identifier = 174;
575
+ static readonly RULE_strictIdentifier = 175;
576
+ static readonly RULE_quotedIdentifier = 176;
577
+ static readonly RULE_number = 177;
578
+ static readonly RULE_alterColumnAction = 178;
579
+ static readonly RULE_stringLit = 179;
580
+ static readonly RULE_ansiNonReserved = 180;
581
+ static readonly RULE_strictNonReserved = 181;
582
+ static readonly RULE_nonReserved = 182;
586
583
  static readonly literalNames: (string | null)[];
587
584
  static readonly symbolicNames: (string | null)[];
588
585
  static readonly ruleNames: string[];
@@ -632,10 +629,8 @@ export declare class SparkSqlParser extends SQLParserBase {
632
629
  tableName(): TableNameContext;
633
630
  viewNameCreate(): ViewNameCreateContext;
634
631
  viewName(): ViewNameContext;
635
- emptyColumn(): EmptyColumnContext;
636
632
  columnName(): ColumnNameContext;
637
633
  columnNamePath(): ColumnNamePathContext;
638
- columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext;
639
634
  columnNameSeq(): ColumnNameSeqContext;
640
635
  columnNameCreate(): ColumnNameCreateContext;
641
636
  identifierReference(): IdentifierReferenceContext;
@@ -706,7 +701,6 @@ export declare class SparkSqlParser extends SQLParserBase {
706
701
  rowFormat(): RowFormatContext;
707
702
  multipartIdentifierList(): MultipartIdentifierListContext;
708
703
  multipartIdentifier(): MultipartIdentifierContext;
709
- multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext;
710
704
  multipartIdentifierPropertyList(): MultipartIdentifierPropertyListContext;
711
705
  multipartIdentifierProperty(): MultipartIdentifierPropertyContext;
712
706
  tableIdentifier(): TableIdentifierContext;
@@ -785,10 +779,7 @@ export declare class SparkSqlParser extends SQLParserBase {
785
779
  nonReserved(): NonReservedContext;
786
780
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
787
781
  private columnName_sempred;
788
- private columnNamePathAllowEmpty_sempred;
789
782
  private queryTerm_sempred;
790
- private multipartIdentifierAllowEmpty_sempred;
791
- private namedExpression_sempred;
792
783
  private booleanExpression_sempred;
793
784
  private valueExpression_sempred;
794
785
  private primaryExpression_sempred;
@@ -2619,17 +2610,9 @@ export declare class ViewNameContext extends antlr.ParserRuleContext {
2619
2610
  exitRule(listener: SparkSqlParserListener): void;
2620
2611
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2621
2612
  }
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
- }
2629
2613
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
2630
2614
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2631
- multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext | null;
2632
- emptyColumn(): EmptyColumnContext | null;
2615
+ multipartIdentifier(): MultipartIdentifierContext | null;
2633
2616
  get ruleIndex(): number;
2634
2617
  enterRule(listener: SparkSqlParserListener): void;
2635
2618
  exitRule(listener: SparkSqlParserListener): void;
@@ -2643,15 +2626,6 @@ export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
2643
2626
  exitRule(listener: SparkSqlParserListener): void;
2644
2627
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2645
2628
  }
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
- }
2655
2629
  export declare class ColumnNameSeqContext extends antlr.ParserRuleContext {
2656
2630
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2657
2631
  columnName(): ColumnNameContext[];
@@ -3370,9 +3344,6 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
3370
3344
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3371
3345
  KW_ON(): antlr.TerminalNode | null;
3372
3346
  booleanExpression(): BooleanExpressionContext | null;
3373
- columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext[];
3374
- columnNamePathAllowEmpty(i: number): ColumnNamePathAllowEmptyContext | null;
3375
- EQ(): antlr.TerminalNode | null;
3376
3347
  KW_USING(): antlr.TerminalNode | null;
3377
3348
  identifierList(): IdentifierListContext | null;
3378
3349
  get ruleIndex(): number;
@@ -3736,16 +3707,6 @@ export declare class MultipartIdentifierContext extends antlr.ParserRuleContext
3736
3707
  exitRule(listener: SparkSqlParserListener): void;
3737
3708
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3738
3709
  }
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
- }
3749
3710
  export declare class MultipartIdentifierPropertyListContext extends antlr.ParserRuleContext {
3750
3711
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3751
3712
  multipartIdentifierProperty(): MultipartIdentifierPropertyContext[];
@@ -3829,7 +3790,6 @@ export declare class NamedExpressionContext extends antlr.ParserRuleContext {
3829
3790
  identifierList(): IdentifierListContext | null;
3830
3791
  KW_AS(): antlr.TerminalNode | null;
3831
3792
  errorCapturingIdentifier(): ErrorCapturingIdentifierContext | null;
3832
- emptyColumn(): EmptyColumnContext | null;
3833
3793
  get ruleIndex(): number;
3834
3794
  enterRule(listener: SparkSqlParserListener): void;
3835
3795
  exitRule(listener: SparkSqlParserListener): void;