dt-sql-parser 4.5.0-beta.3 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +2 -1
  2. package/dist/index.d.ts +3 -2
  3. package/dist/index.js +2 -2
  4. package/dist/lib/SQLParserBase.d.ts +13 -1
  5. package/dist/lib/SQLParserBase.js +40 -5
  6. package/dist/lib/flink/FlinkSqlParser.d.ts +229 -186
  7. package/dist/lib/flink/FlinkSqlParser.js +3508 -3156
  8. package/dist/lib/flink/FlinkSqlParserListener.d.ts +33 -0
  9. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +21 -0
  10. package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
  11. package/dist/lib/generic/GenericSqlLexer.js +603 -0
  12. package/dist/lib/generic/GenericSqlListener.d.ts +1089 -0
  13. package/dist/lib/generic/GenericSqlListener.js +11 -0
  14. package/dist/lib/generic/GenericSqlParser.d.ts +1272 -0
  15. package/dist/lib/generic/GenericSqlParser.js +7641 -0
  16. package/dist/lib/generic/GenericSqlVisitor.d.ts +684 -0
  17. package/dist/lib/generic/GenericSqlVisitor.js +12 -0
  18. package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
  19. package/dist/lib/hive/HiveSqlParser.js +6304 -5912
  20. package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
  21. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
  22. package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
  23. package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
  24. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
  25. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
  26. package/dist/lib/index.d.ts +2 -0
  27. package/dist/lib/index.js +2 -0
  28. package/dist/lib/mysql/MySqlParser.d.ts +161 -94
  29. package/dist/lib/mysql/MySqlParser.js +9959 -9499
  30. package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
  31. package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
  32. package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
  33. package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
  34. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
  35. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
  36. package/dist/lib/spark/SparkSqlParser.d.ts +186 -146
  37. package/dist/lib/spark/SparkSqlParser.js +5368 -5095
  38. package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
  39. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
  40. package/dist/lib/trino/TrinoSqlLexer.d.ts +297 -296
  41. package/dist/lib/trino/TrinoSqlLexer.js +1451 -1445
  42. package/dist/lib/trino/TrinoSqlListener.d.ts +13 -0
  43. package/dist/lib/trino/TrinoSqlParser.d.ts +308 -297
  44. package/dist/lib/trino/TrinoSqlParser.js +2381 -2300
  45. package/dist/lib/trino/TrinoSqlVisitor.d.ts +8 -0
  46. package/dist/parser/common/basicSQL.d.ts +5 -5
  47. package/dist/parser/common/basicSQL.js +3 -3
  48. package/dist/parser/common/entityCollector.js +14 -2
  49. package/dist/parser/flink/index.js +5 -2
  50. package/dist/parser/generic/genericEntityCollector.d.ts +30 -0
  51. package/dist/parser/generic/genericEntityCollector.js +116 -0
  52. package/dist/parser/generic/genericErrorListener.d.ts +6 -0
  53. package/dist/parser/generic/genericErrorListener.js +56 -0
  54. package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
  55. package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
  56. package/dist/parser/generic/genericSplitListener.d.ts +6 -0
  57. package/dist/parser/generic/genericSplitListener.js +6 -0
  58. package/dist/parser/generic/index.d.ts +33 -0
  59. package/dist/parser/generic/index.js +94 -0
  60. package/dist/parser/index.d.ts +1 -0
  61. package/dist/parser/index.js +1 -0
  62. package/dist/parser/mysql/index.js +3 -1
  63. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  64. package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
  65. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  66. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  67. package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
  68. package/dist/parser/spark/index.js +3 -1
  69. package/package.json +1 -1
@@ -395,6 +395,8 @@ 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";
398
400
  import { TableAllColumnsContext } from "./PostgreSqlParser.js";
399
401
  import { QualifiedNameListContext } from "./PostgreSqlParser.js";
400
402
  import { TableNameListContext } from "./PostgreSqlParser.js";
@@ -416,6 +418,7 @@ import { RoutineNameCreateContext } from "./PostgreSqlParser.js";
416
418
  import { RoutineNameContext } from "./PostgreSqlParser.js";
417
419
  import { ProcedureNameContext } from "./PostgreSqlParser.js";
418
420
  import { ProcedureNameCreateContext } from "./PostgreSqlParser.js";
421
+ import { EmptyColumnContext } from "./PostgreSqlParser.js";
419
422
  import { ColumnNameContext } from "./PostgreSqlParser.js";
420
423
  import { ColumnNamePathContext } from "./PostgreSqlParser.js";
421
424
  import { ColumnNameCreateContext } from "./PostgreSqlParser.js";
@@ -430,6 +433,7 @@ import { ColIdContext } from "./PostgreSqlParser.js";
430
433
  import { TypeFunctionNameContext } from "./PostgreSqlParser.js";
431
434
  import { NonReservedWordContext } from "./PostgreSqlParser.js";
432
435
  import { ColLabelContext } from "./PostgreSqlParser.js";
436
+ import { IndirectionLabelContext } from "./PostgreSqlParser.js";
433
437
  import { IdentifierContext } from "./PostgreSqlParser.js";
434
438
  import { UnreservedKeywordContext } from "./PostgreSqlParser.js";
435
439
  import { ColNameKeywordContext } from "./PostgreSqlParser.js";
@@ -4502,6 +4506,30 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
4502
4506
  * @param ctx the parse tree
4503
4507
  */
4504
4508
  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;
4505
4533
  /**
4506
4534
  * Enter a parse tree produced by `PostgreSqlParser.tableAllColumns`.
4507
4535
  * @param ctx the parse tree
@@ -4712,6 +4740,16 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
4712
4740
  * @param ctx the parse tree
4713
4741
  */
4714
4742
  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;
4715
4753
  /**
4716
4754
  * Enter a parse tree produced by `PostgreSqlParser.columnName`.
4717
4755
  * @param ctx the parse tree
@@ -4852,6 +4890,16 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
4852
4890
  * @param ctx the parse tree
4853
4891
  */
4854
4892
  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;
4855
4903
  /**
4856
4904
  * Enter a parse tree produced by `PostgreSqlParser.identifier`.
4857
4905
  * @param ctx the parse tree
@@ -395,6 +395,8 @@ 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";
398
400
  import { TableAllColumnsContext } from "./PostgreSqlParser.js";
399
401
  import { QualifiedNameListContext } from "./PostgreSqlParser.js";
400
402
  import { TableNameListContext } from "./PostgreSqlParser.js";
@@ -416,6 +418,7 @@ import { RoutineNameCreateContext } from "./PostgreSqlParser.js";
416
418
  import { RoutineNameContext } from "./PostgreSqlParser.js";
417
419
  import { ProcedureNameContext } from "./PostgreSqlParser.js";
418
420
  import { ProcedureNameCreateContext } from "./PostgreSqlParser.js";
421
+ import { EmptyColumnContext } from "./PostgreSqlParser.js";
419
422
  import { ColumnNameContext } from "./PostgreSqlParser.js";
420
423
  import { ColumnNamePathContext } from "./PostgreSqlParser.js";
421
424
  import { ColumnNameCreateContext } from "./PostgreSqlParser.js";
@@ -430,6 +433,7 @@ import { ColIdContext } from "./PostgreSqlParser.js";
430
433
  import { TypeFunctionNameContext } from "./PostgreSqlParser.js";
431
434
  import { NonReservedWordContext } from "./PostgreSqlParser.js";
432
435
  import { ColLabelContext } from "./PostgreSqlParser.js";
436
+ import { IndirectionLabelContext } from "./PostgreSqlParser.js";
433
437
  import { IdentifierContext } from "./PostgreSqlParser.js";
434
438
  import { UnreservedKeywordContext } from "./PostgreSqlParser.js";
435
439
  import { ColNameKeywordContext } from "./PostgreSqlParser.js";
@@ -2894,6 +2898,20 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
2894
2898
  * @return the visitor result
2895
2899
  */
2896
2900
  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;
2897
2915
  /**
2898
2916
  * Visit a parse tree produced by `PostgreSqlParser.tableAllColumns`.
2899
2917
  * @param ctx the parse tree
@@ -3020,6 +3038,12 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
3020
3038
  * @return the visitor result
3021
3039
  */
3022
3040
  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;
3023
3047
  /**
3024
3048
  * Visit a parse tree produced by `PostgreSqlParser.columnName`.
3025
3049
  * @param ctx the parse tree
@@ -3104,6 +3128,12 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
3104
3128
  * @return the visitor result
3105
3129
  */
3106
3130
  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;
3107
3137
  /**
3108
3138
  * Visit a parse tree produced by `PostgreSqlParser.identifier`.
3109
3139
  * @param ctx the parse tree
@@ -436,150 +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_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;
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;
583
586
  static readonly literalNames: (string | null)[];
584
587
  static readonly symbolicNames: (string | null)[];
585
588
  static readonly ruleNames: string[];
@@ -629,8 +632,10 @@ export declare class SparkSqlParser extends SQLParserBase {
629
632
  tableName(): TableNameContext;
630
633
  viewNameCreate(): ViewNameCreateContext;
631
634
  viewName(): ViewNameContext;
635
+ emptyColumn(): EmptyColumnContext;
632
636
  columnName(): ColumnNameContext;
633
637
  columnNamePath(): ColumnNamePathContext;
638
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext;
634
639
  columnNameSeq(): ColumnNameSeqContext;
635
640
  columnNameCreate(): ColumnNameCreateContext;
636
641
  identifierReference(): IdentifierReferenceContext;
@@ -701,6 +706,7 @@ export declare class SparkSqlParser extends SQLParserBase {
701
706
  rowFormat(): RowFormatContext;
702
707
  multipartIdentifierList(): MultipartIdentifierListContext;
703
708
  multipartIdentifier(): MultipartIdentifierContext;
709
+ multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext;
704
710
  multipartIdentifierPropertyList(): MultipartIdentifierPropertyListContext;
705
711
  multipartIdentifierProperty(): MultipartIdentifierPropertyContext;
706
712
  tableIdentifier(): TableIdentifierContext;
@@ -779,7 +785,10 @@ export declare class SparkSqlParser extends SQLParserBase {
779
785
  nonReserved(): NonReservedContext;
780
786
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
781
787
  private columnName_sempred;
788
+ private columnNamePathAllowEmpty_sempred;
782
789
  private queryTerm_sempred;
790
+ private multipartIdentifierAllowEmpty_sempred;
791
+ private namedExpression_sempred;
783
792
  private booleanExpression_sempred;
784
793
  private valueExpression_sempred;
785
794
  private primaryExpression_sempred;
@@ -2610,9 +2619,17 @@ export declare class ViewNameContext extends antlr.ParserRuleContext {
2610
2619
  exitRule(listener: SparkSqlParserListener): void;
2611
2620
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2612
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
+ }
2613
2629
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
2614
2630
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2615
- multipartIdentifier(): MultipartIdentifierContext | null;
2631
+ multipartIdentifierAllowEmpty(): MultipartIdentifierAllowEmptyContext | null;
2632
+ emptyColumn(): EmptyColumnContext | null;
2616
2633
  get ruleIndex(): number;
2617
2634
  enterRule(listener: SparkSqlParserListener): void;
2618
2635
  exitRule(listener: SparkSqlParserListener): void;
@@ -2626,6 +2643,15 @@ export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
2626
2643
  exitRule(listener: SparkSqlParserListener): void;
2627
2644
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
2628
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
+ }
2629
2655
  export declare class ColumnNameSeqContext extends antlr.ParserRuleContext {
2630
2656
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2631
2657
  columnName(): ColumnNameContext[];
@@ -2721,10 +2747,10 @@ export declare class QueryTermContext extends antlr.ParserRuleContext {
2721
2747
  queryTerm(): QueryTermContext[];
2722
2748
  queryTerm(i: number): QueryTermContext | null;
2723
2749
  KW_INTERSECT(): antlr.TerminalNode | null;
2750
+ setQuantifier(): SetQuantifierContext | null;
2724
2751
  KW_UNION(): antlr.TerminalNode | null;
2725
2752
  KW_EXCEPT(): antlr.TerminalNode | null;
2726
2753
  KW_MINUS(): antlr.TerminalNode | null;
2727
- setQuantifier(): SetQuantifierContext | null;
2728
2754
  get ruleIndex(): number;
2729
2755
  enterRule(listener: SparkSqlParserListener): void;
2730
2756
  exitRule(listener: SparkSqlParserListener): void;
@@ -3344,6 +3370,9 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
3344
3370
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3345
3371
  KW_ON(): antlr.TerminalNode | null;
3346
3372
  booleanExpression(): BooleanExpressionContext | null;
3373
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext[];
3374
+ columnNamePathAllowEmpty(i: number): ColumnNamePathAllowEmptyContext | null;
3375
+ EQ(): antlr.TerminalNode | null;
3347
3376
  KW_USING(): antlr.TerminalNode | null;
3348
3377
  identifierList(): IdentifierListContext | null;
3349
3378
  get ruleIndex(): number;
@@ -3707,6 +3736,16 @@ export declare class MultipartIdentifierContext extends antlr.ParserRuleContext
3707
3736
  exitRule(listener: SparkSqlParserListener): void;
3708
3737
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
3709
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
+ }
3710
3749
  export declare class MultipartIdentifierPropertyListContext extends antlr.ParserRuleContext {
3711
3750
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3712
3751
  multipartIdentifierProperty(): MultipartIdentifierPropertyContext[];
@@ -3790,6 +3829,7 @@ export declare class NamedExpressionContext extends antlr.ParserRuleContext {
3790
3829
  identifierList(): IdentifierListContext | null;
3791
3830
  KW_AS(): antlr.TerminalNode | null;
3792
3831
  errorCapturingIdentifier(): ErrorCapturingIdentifierContext | null;
3832
+ emptyColumn(): EmptyColumnContext | null;
3793
3833
  get ruleIndex(): number;
3794
3834
  enterRule(listener: SparkSqlParserListener): void;
3795
3835
  exitRule(listener: SparkSqlParserListener): void;