dt-sql-parser 4.5.0-beta.2 → 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.
- package/README.md +2 -1
- package/dist/lib/SQLParserBase.d.ts +13 -1
- package/dist/lib/SQLParserBase.js +40 -5
- package/dist/lib/flink/FlinkSqlLexer.d.ts +399 -397
- package/dist/lib/flink/FlinkSqlLexer.js +2504 -2489
- package/dist/lib/flink/FlinkSqlParser.d.ts +773 -578
- package/dist/lib/flink/FlinkSqlParser.js +5657 -3651
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +123 -0
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +78 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
- package/dist/lib/hive/HiveSqlParser.js +6304 -5912
- package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
- package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
- package/dist/lib/mysql/MySqlParser.d.ts +161 -94
- package/dist/lib/mysql/MySqlParser.js +9959 -9499
- package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
- package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
- package/dist/lib/spark/SparkSqlParser.d.ts +186 -146
- package/dist/lib/spark/SparkSqlParser.js +5368 -5095
- package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
- package/dist/lib/trino/TrinoSqlLexer.d.ts +297 -296
- package/dist/lib/trino/TrinoSqlLexer.js +1451 -1445
- package/dist/lib/trino/TrinoSqlListener.d.ts +13 -0
- package/dist/lib/trino/TrinoSqlParser.d.ts +308 -297
- package/dist/lib/trino/TrinoSqlParser.js +2381 -2300
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +8 -0
- package/dist/parser/common/basicSQL.d.ts +17 -5
- package/dist/parser/common/basicSQL.js +74 -3
- package/dist/parser/common/entityCollector.js +14 -2
- package/dist/parser/flink/index.js +5 -2
- package/dist/parser/generic/genericEntityCollector.d.ts +1 -0
- package/dist/parser/generic/genericEntityCollector.js +14 -1
- package/dist/parser/mysql/index.js +3 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
- package/dist/parser/mysql/mysqlErrorListener.js +2 -0
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
- package/dist/parser/spark/index.js +3 -1
- 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
|
|
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
|
|
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
|
-
|
|
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;
|