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.
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/lib/SQLParserBase.d.ts +1 -13
- package/dist/lib/SQLParserBase.js +5 -40
- package/dist/lib/flink/FlinkSqlParser.d.ts +179 -222
- package/dist/lib/flink/FlinkSqlParser.js +2949 -3300
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -33
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -21
- package/dist/lib/generic/GenericSqlLexer.d.ts +143 -0
- package/dist/lib/generic/GenericSqlLexer.js +603 -0
- package/dist/lib/generic/GenericSqlListener.d.ts +1089 -0
- package/dist/lib/generic/GenericSqlListener.js +11 -0
- package/dist/lib/generic/GenericSqlParser.d.ts +1272 -0
- package/dist/lib/generic/GenericSqlParser.js +7641 -0
- package/dist/lib/generic/GenericSqlVisitor.d.ts +684 -0
- package/dist/lib/generic/GenericSqlVisitor.js +12 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +228 -274
- package/dist/lib/hive/HiveSqlParser.js +5912 -6304
- package/dist/lib/hive/HiveSqlParserListener.d.ts +0 -33
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +0 -21
- package/dist/lib/impala/ImpalaSqlParser.d.ts +103 -145
- package/dist/lib/impala/ImpalaSqlParser.js +3320 -3687
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -33
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -21
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/mysql/MySqlParser.d.ts +94 -161
- package/dist/lib/mysql/MySqlParser.js +9499 -9959
- package/dist/lib/mysql/MySqlParserListener.d.ts +5 -79
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +3 -49
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +71 -108
- package/dist/lib/postgresql/PostgreSqlParser.js +10388 -13330
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +0 -48
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +0 -30
- package/dist/lib/spark/SparkSqlParser.d.ts +145 -185
- package/dist/lib/spark/SparkSqlParser.js +5109 -5420
- package/dist/lib/spark/SparkSqlParserListener.d.ts +0 -33
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +0 -21
- package/dist/parser/common/basicSQL.d.ts +5 -5
- package/dist/parser/common/basicSQL.js +3 -3
- package/dist/parser/common/entityCollector.js +2 -14
- package/dist/parser/flink/index.js +2 -5
- package/dist/parser/generic/genericEntityCollector.d.ts +29 -0
- package/dist/parser/generic/genericEntityCollector.js +103 -0
- package/dist/parser/generic/genericErrorListener.d.ts +6 -0
- package/dist/parser/generic/genericErrorListener.js +56 -0
- package/dist/parser/generic/genericSemanticContextCollector.d.ts +9 -0
- package/dist/parser/generic/genericSemanticContextCollector.js +14 -0
- package/dist/parser/generic/genericSplitListener.d.ts +6 -0
- package/dist/parser/generic/genericSplitListener.js +6 -0
- package/dist/parser/generic/index.d.ts +33 -0
- package/dist/parser/generic/index.js +94 -0
- package/dist/parser/index.d.ts +1 -0
- package/dist/parser/index.js +1 -0
- package/dist/parser/mysql/index.js +1 -3
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +1 -2
- package/dist/parser/mysql/mysqlEntityCollector.js +3 -13
- package/dist/parser/mysql/mysqlErrorListener.js +0 -2
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +1 -3
- package/dist/parser/postgresql/postgreEntityCollector.js +0 -13
- package/dist/parser/spark/index.js +1 -3
- 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
|
|
440
|
-
static readonly
|
|
441
|
-
static readonly
|
|
442
|
-
static readonly
|
|
443
|
-
static readonly
|
|
444
|
-
static readonly
|
|
445
|
-
static readonly
|
|
446
|
-
static readonly
|
|
447
|
-
static readonly
|
|
448
|
-
static readonly
|
|
449
|
-
static readonly
|
|
450
|
-
static readonly
|
|
451
|
-
static readonly
|
|
452
|
-
static readonly
|
|
453
|
-
static readonly
|
|
454
|
-
static readonly
|
|
455
|
-
static readonly
|
|
456
|
-
static readonly
|
|
457
|
-
static readonly
|
|
458
|
-
static readonly
|
|
459
|
-
static readonly
|
|
460
|
-
static readonly
|
|
461
|
-
static readonly
|
|
462
|
-
static readonly
|
|
463
|
-
static readonly
|
|
464
|
-
static readonly
|
|
465
|
-
static readonly
|
|
466
|
-
static readonly
|
|
467
|
-
static readonly
|
|
468
|
-
static readonly
|
|
469
|
-
static readonly
|
|
470
|
-
static readonly
|
|
471
|
-
static readonly
|
|
472
|
-
static readonly
|
|
473
|
-
static readonly
|
|
474
|
-
static readonly
|
|
475
|
-
static readonly
|
|
476
|
-
static readonly
|
|
477
|
-
static readonly
|
|
478
|
-
static readonly
|
|
479
|
-
static readonly
|
|
480
|
-
static readonly
|
|
481
|
-
static readonly
|
|
482
|
-
static readonly
|
|
483
|
-
static readonly
|
|
484
|
-
static readonly
|
|
485
|
-
static readonly
|
|
486
|
-
static readonly
|
|
487
|
-
static readonly
|
|
488
|
-
static readonly
|
|
489
|
-
static readonly
|
|
490
|
-
static readonly
|
|
491
|
-
static readonly
|
|
492
|
-
static readonly
|
|
493
|
-
static readonly
|
|
494
|
-
static readonly
|
|
495
|
-
static readonly
|
|
496
|
-
static readonly
|
|
497
|
-
static readonly
|
|
498
|
-
static readonly
|
|
499
|
-
static readonly
|
|
500
|
-
static readonly
|
|
501
|
-
static readonly
|
|
502
|
-
static readonly
|
|
503
|
-
static readonly
|
|
504
|
-
static readonly
|
|
505
|
-
static readonly
|
|
506
|
-
static readonly
|
|
507
|
-
static readonly
|
|
508
|
-
static readonly
|
|
509
|
-
static readonly
|
|
510
|
-
static readonly
|
|
511
|
-
static readonly
|
|
512
|
-
static readonly
|
|
513
|
-
static readonly
|
|
514
|
-
static readonly
|
|
515
|
-
static readonly
|
|
516
|
-
static readonly
|
|
517
|
-
static readonly
|
|
518
|
-
static readonly
|
|
519
|
-
static readonly
|
|
520
|
-
static readonly
|
|
521
|
-
static readonly
|
|
522
|
-
static readonly
|
|
523
|
-
static readonly
|
|
524
|
-
static readonly
|
|
525
|
-
static readonly
|
|
526
|
-
static readonly
|
|
527
|
-
static readonly
|
|
528
|
-
static readonly
|
|
529
|
-
static readonly
|
|
530
|
-
static readonly
|
|
531
|
-
static readonly
|
|
532
|
-
static readonly
|
|
533
|
-
static readonly
|
|
534
|
-
static readonly
|
|
535
|
-
static readonly
|
|
536
|
-
static readonly
|
|
537
|
-
static readonly
|
|
538
|
-
static readonly
|
|
539
|
-
static readonly
|
|
540
|
-
static readonly
|
|
541
|
-
static readonly
|
|
542
|
-
static readonly
|
|
543
|
-
static readonly
|
|
544
|
-
static readonly
|
|
545
|
-
static readonly
|
|
546
|
-
static readonly
|
|
547
|
-
static readonly
|
|
548
|
-
static readonly
|
|
549
|
-
static readonly
|
|
550
|
-
static readonly
|
|
551
|
-
static readonly
|
|
552
|
-
static readonly
|
|
553
|
-
static readonly
|
|
554
|
-
static readonly
|
|
555
|
-
static readonly
|
|
556
|
-
static readonly
|
|
557
|
-
static readonly
|
|
558
|
-
static readonly
|
|
559
|
-
static readonly
|
|
560
|
-
static readonly
|
|
561
|
-
static readonly
|
|
562
|
-
static readonly
|
|
563
|
-
static readonly
|
|
564
|
-
static readonly
|
|
565
|
-
static readonly
|
|
566
|
-
static readonly
|
|
567
|
-
static readonly
|
|
568
|
-
static readonly
|
|
569
|
-
static readonly
|
|
570
|
-
static readonly
|
|
571
|
-
static readonly
|
|
572
|
-
static readonly
|
|
573
|
-
static readonly
|
|
574
|
-
static readonly
|
|
575
|
-
static readonly
|
|
576
|
-
static readonly
|
|
577
|
-
static readonly
|
|
578
|
-
static readonly
|
|
579
|
-
static readonly
|
|
580
|
-
static readonly
|
|
581
|
-
static readonly
|
|
582
|
-
static readonly
|
|
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
|
-
|
|
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;
|