dt-sql-parser 4.4.0-beta.0 → 4.5.0-beta.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 +140 -3
- package/dist/lib/flink/FlinkSqlParser.d.ts +221 -114
- package/dist/lib/flink/FlinkSqlParser.js +3608 -2907
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +99 -0
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +63 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +169 -116
- package/dist/lib/hive/HiveSqlParser.js +5708 -5428
- package/dist/lib/hive/HiveSqlParserListener.d.ts +55 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +35 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +150 -81
- package/dist/lib/impala/ImpalaSqlParser.js +3730 -3323
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +76 -14
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +48 -8
- package/dist/lib/mysql/MySqlParser.d.ts +346 -316
- package/dist/lib/mysql/MySqlParser.js +10224 -10020
- package/dist/lib/mysql/MySqlParserListener.d.ts +55 -26
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +33 -14
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +215 -169
- package/dist/lib/postgresql/PostgreSqlParser.js +10333 -10051
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +51 -7
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +32 -4
- package/dist/lib/spark/SparkSqlParser.d.ts +215 -90
- package/dist/lib/spark/SparkSqlParser.js +5143 -4496
- package/dist/lib/spark/SparkSqlParserListener.d.ts +147 -5
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +92 -3
- package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
- package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
- package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
- package/dist/parser/common/basicSQL.js +2 -0
- package/dist/parser/common/entityCollector.d.ts +91 -4
- package/dist/parser/common/entityCollector.js +215 -11
- package/dist/parser/common/textAndWord.d.ts +9 -1
- package/dist/parser/common/textAndWord.js +2 -0
- package/dist/parser/common/types.d.ts +2 -0
- package/dist/parser/common/types.js +2 -0
- package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
- package/dist/parser/flink/flinkEntityCollector.js +76 -14
- package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
- package/dist/parser/hive/hiveEntityCollector.js +85 -12
- package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
- package/dist/parser/impala/impalaEntityCollector.js +63 -12
- package/dist/parser/impala/index.js +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +9 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +55 -12
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +10 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +86 -22
- package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
- package/dist/parser/spark/sparkEntityCollector.js +88 -12
- package/dist/parser/trino/index.js +2 -1
- package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
- package/dist/parser/trino/trinoEntityCollector.js +53 -12
- package/package.json +1 -1
|
@@ -305,6 +305,7 @@ import { ValuesClauseContext } from "./PostgreSqlParser.js";
|
|
|
305
305
|
import { FromClauseContext } from "./PostgreSqlParser.js";
|
|
306
306
|
import { FromListContext } from "./PostgreSqlParser.js";
|
|
307
307
|
import { TableRefContext } from "./PostgreSqlParser.js";
|
|
308
|
+
import { ExpressionTableContext } from "./PostgreSqlParser.js";
|
|
308
309
|
import { AliasClauseContext } from "./PostgreSqlParser.js";
|
|
309
310
|
import { FuncAliasClauseContext } from "./PostgreSqlParser.js";
|
|
310
311
|
import { JoinTypeContext } from "./PostgreSqlParser.js";
|
|
@@ -377,6 +378,8 @@ import { QualOpContext } from "./PostgreSqlParser.js";
|
|
|
377
378
|
import { QualAllOpContext } from "./PostgreSqlParser.js";
|
|
378
379
|
import { SubqueryOperatorContext } from "./PostgreSqlParser.js";
|
|
379
380
|
import { ExprListContext } from "./PostgreSqlParser.js";
|
|
381
|
+
import { SelectExpressionColumnNameContext } from "./PostgreSqlParser.js";
|
|
382
|
+
import { SelectLiteralColumnNameContext } from "./PostgreSqlParser.js";
|
|
380
383
|
import { ColumnExprContext } from "./PostgreSqlParser.js";
|
|
381
384
|
import { ColumnExprNoParenContext } from "./PostgreSqlParser.js";
|
|
382
385
|
import { FuncArgListContext } from "./PostgreSqlParser.js";
|
|
@@ -390,8 +393,9 @@ import { IndirectionElContext } from "./PostgreSqlParser.js";
|
|
|
390
393
|
import { IndirectionContext } from "./PostgreSqlParser.js";
|
|
391
394
|
import { OptIndirectionContext } from "./PostgreSqlParser.js";
|
|
392
395
|
import { TargetListContext } from "./PostgreSqlParser.js";
|
|
393
|
-
import { Target_labelContext } from "./PostgreSqlParser.js";
|
|
394
396
|
import { Target_starContext } from "./PostgreSqlParser.js";
|
|
397
|
+
import { Target_labelContext } from "./PostgreSqlParser.js";
|
|
398
|
+
import { TableAllColumnsContext } from "./PostgreSqlParser.js";
|
|
395
399
|
import { QualifiedNameListContext } from "./PostgreSqlParser.js";
|
|
396
400
|
import { TableNameListContext } from "./PostgreSqlParser.js";
|
|
397
401
|
import { SchemaNameListContext } from "./PostgreSqlParser.js";
|
|
@@ -3562,6 +3566,16 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
|
|
|
3562
3566
|
* @param ctx the parse tree
|
|
3563
3567
|
*/
|
|
3564
3568
|
exitTableRef?: (ctx: TableRefContext) => void;
|
|
3569
|
+
/**
|
|
3570
|
+
* Enter a parse tree produced by `PostgreSqlParser.expressionTable`.
|
|
3571
|
+
* @param ctx the parse tree
|
|
3572
|
+
*/
|
|
3573
|
+
enterExpressionTable?: (ctx: ExpressionTableContext) => void;
|
|
3574
|
+
/**
|
|
3575
|
+
* Exit a parse tree produced by `PostgreSqlParser.expressionTable`.
|
|
3576
|
+
* @param ctx the parse tree
|
|
3577
|
+
*/
|
|
3578
|
+
exitExpressionTable?: (ctx: ExpressionTableContext) => void;
|
|
3565
3579
|
/**
|
|
3566
3580
|
* Enter a parse tree produced by `PostgreSqlParser.aliasClause`.
|
|
3567
3581
|
* @param ctx the parse tree
|
|
@@ -4314,6 +4328,26 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
|
|
|
4314
4328
|
* @param ctx the parse tree
|
|
4315
4329
|
*/
|
|
4316
4330
|
exitExprList?: (ctx: ExprListContext) => void;
|
|
4331
|
+
/**
|
|
4332
|
+
* Enter a parse tree produced by `PostgreSqlParser.selectExpressionColumnName`.
|
|
4333
|
+
* @param ctx the parse tree
|
|
4334
|
+
*/
|
|
4335
|
+
enterSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
|
|
4336
|
+
/**
|
|
4337
|
+
* Exit a parse tree produced by `PostgreSqlParser.selectExpressionColumnName`.
|
|
4338
|
+
* @param ctx the parse tree
|
|
4339
|
+
*/
|
|
4340
|
+
exitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
|
|
4341
|
+
/**
|
|
4342
|
+
* Enter a parse tree produced by `PostgreSqlParser.selectLiteralColumnName`.
|
|
4343
|
+
* @param ctx the parse tree
|
|
4344
|
+
*/
|
|
4345
|
+
enterSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
|
|
4346
|
+
/**
|
|
4347
|
+
* Exit a parse tree produced by `PostgreSqlParser.selectLiteralColumnName`.
|
|
4348
|
+
* @param ctx the parse tree
|
|
4349
|
+
*/
|
|
4350
|
+
exitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
|
|
4317
4351
|
/**
|
|
4318
4352
|
* Enter a parse tree produced by `PostgreSqlParser.columnExpr`.
|
|
4319
4353
|
* @param ctx the parse tree
|
|
@@ -4444,6 +4478,18 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
|
|
|
4444
4478
|
* @param ctx the parse tree
|
|
4445
4479
|
*/
|
|
4446
4480
|
exitTargetList?: (ctx: TargetListContext) => void;
|
|
4481
|
+
/**
|
|
4482
|
+
* Enter a parse tree produced by the `target_star`
|
|
4483
|
+
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
4484
|
+
* @param ctx the parse tree
|
|
4485
|
+
*/
|
|
4486
|
+
enterTarget_star?: (ctx: Target_starContext) => void;
|
|
4487
|
+
/**
|
|
4488
|
+
* Exit a parse tree produced by the `target_star`
|
|
4489
|
+
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
4490
|
+
* @param ctx the parse tree
|
|
4491
|
+
*/
|
|
4492
|
+
exitTarget_star?: (ctx: Target_starContext) => void;
|
|
4447
4493
|
/**
|
|
4448
4494
|
* Enter a parse tree produced by the `target_label`
|
|
4449
4495
|
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
@@ -4457,17 +4503,15 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
|
|
|
4457
4503
|
*/
|
|
4458
4504
|
exitTarget_label?: (ctx: Target_labelContext) => void;
|
|
4459
4505
|
/**
|
|
4460
|
-
* Enter a parse tree produced by
|
|
4461
|
-
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
4506
|
+
* Enter a parse tree produced by `PostgreSqlParser.tableAllColumns`.
|
|
4462
4507
|
* @param ctx the parse tree
|
|
4463
4508
|
*/
|
|
4464
|
-
|
|
4509
|
+
enterTableAllColumns?: (ctx: TableAllColumnsContext) => void;
|
|
4465
4510
|
/**
|
|
4466
|
-
* Exit a parse tree produced by
|
|
4467
|
-
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
4511
|
+
* Exit a parse tree produced by `PostgreSqlParser.tableAllColumns`.
|
|
4468
4512
|
* @param ctx the parse tree
|
|
4469
4513
|
*/
|
|
4470
|
-
|
|
4514
|
+
exitTableAllColumns?: (ctx: TableAllColumnsContext) => void;
|
|
4471
4515
|
/**
|
|
4472
4516
|
* Enter a parse tree produced by `PostgreSqlParser.qualifiedNameList`.
|
|
4473
4517
|
* @param ctx the parse tree
|
|
@@ -305,6 +305,7 @@ import { ValuesClauseContext } from "./PostgreSqlParser.js";
|
|
|
305
305
|
import { FromClauseContext } from "./PostgreSqlParser.js";
|
|
306
306
|
import { FromListContext } from "./PostgreSqlParser.js";
|
|
307
307
|
import { TableRefContext } from "./PostgreSqlParser.js";
|
|
308
|
+
import { ExpressionTableContext } from "./PostgreSqlParser.js";
|
|
308
309
|
import { AliasClauseContext } from "./PostgreSqlParser.js";
|
|
309
310
|
import { FuncAliasClauseContext } from "./PostgreSqlParser.js";
|
|
310
311
|
import { JoinTypeContext } from "./PostgreSqlParser.js";
|
|
@@ -377,6 +378,8 @@ import { QualOpContext } from "./PostgreSqlParser.js";
|
|
|
377
378
|
import { QualAllOpContext } from "./PostgreSqlParser.js";
|
|
378
379
|
import { SubqueryOperatorContext } from "./PostgreSqlParser.js";
|
|
379
380
|
import { ExprListContext } from "./PostgreSqlParser.js";
|
|
381
|
+
import { SelectExpressionColumnNameContext } from "./PostgreSqlParser.js";
|
|
382
|
+
import { SelectLiteralColumnNameContext } from "./PostgreSqlParser.js";
|
|
380
383
|
import { ColumnExprContext } from "./PostgreSqlParser.js";
|
|
381
384
|
import { ColumnExprNoParenContext } from "./PostgreSqlParser.js";
|
|
382
385
|
import { FuncArgListContext } from "./PostgreSqlParser.js";
|
|
@@ -390,8 +393,9 @@ import { IndirectionElContext } from "./PostgreSqlParser.js";
|
|
|
390
393
|
import { IndirectionContext } from "./PostgreSqlParser.js";
|
|
391
394
|
import { OptIndirectionContext } from "./PostgreSqlParser.js";
|
|
392
395
|
import { TargetListContext } from "./PostgreSqlParser.js";
|
|
393
|
-
import { Target_labelContext } from "./PostgreSqlParser.js";
|
|
394
396
|
import { Target_starContext } from "./PostgreSqlParser.js";
|
|
397
|
+
import { Target_labelContext } from "./PostgreSqlParser.js";
|
|
398
|
+
import { TableAllColumnsContext } from "./PostgreSqlParser.js";
|
|
395
399
|
import { QualifiedNameListContext } from "./PostgreSqlParser.js";
|
|
396
400
|
import { TableNameListContext } from "./PostgreSqlParser.js";
|
|
397
401
|
import { SchemaNameListContext } from "./PostgreSqlParser.js";
|
|
@@ -2332,6 +2336,12 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
|
|
|
2332
2336
|
* @return the visitor result
|
|
2333
2337
|
*/
|
|
2334
2338
|
visitTableRef?: (ctx: TableRefContext) => Result;
|
|
2339
|
+
/**
|
|
2340
|
+
* Visit a parse tree produced by `PostgreSqlParser.expressionTable`.
|
|
2341
|
+
* @param ctx the parse tree
|
|
2342
|
+
* @return the visitor result
|
|
2343
|
+
*/
|
|
2344
|
+
visitExpressionTable?: (ctx: ExpressionTableContext) => Result;
|
|
2335
2345
|
/**
|
|
2336
2346
|
* Visit a parse tree produced by `PostgreSqlParser.aliasClause`.
|
|
2337
2347
|
* @param ctx the parse tree
|
|
@@ -2780,6 +2790,18 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
|
|
|
2780
2790
|
* @return the visitor result
|
|
2781
2791
|
*/
|
|
2782
2792
|
visitExprList?: (ctx: ExprListContext) => Result;
|
|
2793
|
+
/**
|
|
2794
|
+
* Visit a parse tree produced by `PostgreSqlParser.selectExpressionColumnName`.
|
|
2795
|
+
* @param ctx the parse tree
|
|
2796
|
+
* @return the visitor result
|
|
2797
|
+
*/
|
|
2798
|
+
visitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => Result;
|
|
2799
|
+
/**
|
|
2800
|
+
* Visit a parse tree produced by `PostgreSqlParser.selectLiteralColumnName`.
|
|
2801
|
+
* @param ctx the parse tree
|
|
2802
|
+
* @return the visitor result
|
|
2803
|
+
*/
|
|
2804
|
+
visitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => Result;
|
|
2783
2805
|
/**
|
|
2784
2806
|
* Visit a parse tree produced by `PostgreSqlParser.columnExpr`.
|
|
2785
2807
|
* @param ctx the parse tree
|
|
@@ -2858,6 +2880,13 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
|
|
|
2858
2880
|
* @return the visitor result
|
|
2859
2881
|
*/
|
|
2860
2882
|
visitTargetList?: (ctx: TargetListContext) => Result;
|
|
2883
|
+
/**
|
|
2884
|
+
* Visit a parse tree produced by the `target_star`
|
|
2885
|
+
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
2886
|
+
* @param ctx the parse tree
|
|
2887
|
+
* @return the visitor result
|
|
2888
|
+
*/
|
|
2889
|
+
visitTarget_star?: (ctx: Target_starContext) => Result;
|
|
2861
2890
|
/**
|
|
2862
2891
|
* Visit a parse tree produced by the `target_label`
|
|
2863
2892
|
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
@@ -2866,12 +2895,11 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
|
|
|
2866
2895
|
*/
|
|
2867
2896
|
visitTarget_label?: (ctx: Target_labelContext) => Result;
|
|
2868
2897
|
/**
|
|
2869
|
-
* Visit a parse tree produced by
|
|
2870
|
-
* labeled alternative in `PostgreSqlParser.targetEl`.
|
|
2898
|
+
* Visit a parse tree produced by `PostgreSqlParser.tableAllColumns`.
|
|
2871
2899
|
* @param ctx the parse tree
|
|
2872
2900
|
* @return the visitor result
|
|
2873
2901
|
*/
|
|
2874
|
-
|
|
2902
|
+
visitTableAllColumns?: (ctx: TableAllColumnsContext) => Result;
|
|
2875
2903
|
/**
|
|
2876
2904
|
* Visit a parse tree produced by `PostgreSqlParser.qualifiedNameList`.
|
|
2877
2905
|
* @param ctx the parse tree
|
|
@@ -494,84 +494,92 @@ export declare class SparkSqlParser extends SQLParserBase {
|
|
|
494
494
|
static readonly RULE_identifierCommentList = 94;
|
|
495
495
|
static readonly RULE_identifierComment = 95;
|
|
496
496
|
static readonly RULE_relationPrimary = 96;
|
|
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
|
|
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;
|
|
575
583
|
static readonly literalNames: (string | null)[];
|
|
576
584
|
static readonly symbolicNames: (string | null)[];
|
|
577
585
|
static readonly ruleNames: string[];
|
|
@@ -680,11 +688,15 @@ export declare class SparkSqlParser extends SQLParserBase {
|
|
|
680
688
|
identifierCommentList(): IdentifierCommentListContext;
|
|
681
689
|
identifierComment(): IdentifierCommentContext;
|
|
682
690
|
relationPrimary(): RelationPrimaryContext;
|
|
691
|
+
atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
|
|
692
|
+
inlineTable(): InlineTableContext;
|
|
683
693
|
functionTableSubqueryArgument(): FunctionTableSubqueryArgumentContext;
|
|
684
694
|
tableArgumentPartitioning(): TableArgumentPartitioningContext;
|
|
685
695
|
functionTableNamedArgumentExpression(): FunctionTableNamedArgumentExpressionContext;
|
|
686
696
|
functionTableReferenceArgument(): FunctionTableReferenceArgumentContext;
|
|
687
697
|
functionTableArgument(): FunctionTableArgumentContext;
|
|
698
|
+
functionTable(): FunctionTableContext;
|
|
699
|
+
atomFunctionTable(): AtomFunctionTableContext;
|
|
688
700
|
tableAlias(): TableAliasContext;
|
|
689
701
|
rowFormat(): RowFormatContext;
|
|
690
702
|
multipartIdentifierList(): MultipartIdentifierListContext;
|
|
@@ -693,8 +705,12 @@ export declare class SparkSqlParser extends SQLParserBase {
|
|
|
693
705
|
multipartIdentifierProperty(): MultipartIdentifierPropertyContext;
|
|
694
706
|
tableIdentifier(): TableIdentifierContext;
|
|
695
707
|
viewIdentifier(): ViewIdentifierContext;
|
|
708
|
+
selectLiteralColumnName(): SelectLiteralColumnNameContext;
|
|
709
|
+
selectExpressionColumnName(): SelectExpressionColumnNameContext;
|
|
710
|
+
tableAllColumns(): TableAllColumnsContext;
|
|
696
711
|
namedExpression(): NamedExpressionContext;
|
|
697
712
|
namedExpressionSeq(): NamedExpressionSeqContext;
|
|
713
|
+
selectList(): SelectListContext;
|
|
698
714
|
partitionFieldList(): PartitionFieldListContext;
|
|
699
715
|
partitionField(): PartitionFieldContext;
|
|
700
716
|
transform(): TransformContext;
|
|
@@ -2822,7 +2838,7 @@ export declare class SelectClauseContext extends antlr.ParserRuleContext {
|
|
|
2822
2838
|
_hints: HintContext[];
|
|
2823
2839
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2824
2840
|
KW_SELECT(): antlr.TerminalNode;
|
|
2825
|
-
|
|
2841
|
+
selectList(): SelectListContext;
|
|
2826
2842
|
setQuantifier(): SetQuantifierContext | null;
|
|
2827
2843
|
hint(): HintContext[];
|
|
2828
2844
|
hint(i: number): HintContext | null;
|
|
@@ -3453,24 +3469,73 @@ export declare class IdentifierCommentContext extends antlr.ParserRuleContext {
|
|
|
3453
3469
|
}
|
|
3454
3470
|
export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
|
|
3455
3471
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3472
|
+
get ruleIndex(): number;
|
|
3473
|
+
copyFrom(ctx: RelationPrimaryContext): void;
|
|
3474
|
+
}
|
|
3475
|
+
export declare class SubQueryTableSourceContext extends RelationPrimaryContext {
|
|
3476
|
+
constructor(ctx: RelationPrimaryContext);
|
|
3477
|
+
atomSubQueryTableSource(): AtomSubQueryTableSourceContext;
|
|
3478
|
+
tableAlias(): TableAliasContext;
|
|
3479
|
+
sample(): SampleContext | null;
|
|
3480
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3481
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3482
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3483
|
+
}
|
|
3484
|
+
export declare class TableSourceContext extends RelationPrimaryContext {
|
|
3485
|
+
constructor(ctx: RelationPrimaryContext);
|
|
3456
3486
|
tableAlias(): TableAliasContext;
|
|
3457
3487
|
tableName(): TableNameContext | null;
|
|
3458
3488
|
viewName(): ViewNameContext | null;
|
|
3459
3489
|
identifierReference(): IdentifierReferenceContext | null;
|
|
3460
3490
|
temporalClause(): TemporalClauseContext | null;
|
|
3461
3491
|
sample(): SampleContext | null;
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3492
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3493
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3494
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3495
|
+
}
|
|
3496
|
+
export declare class FunctionTableSourceContext extends RelationPrimaryContext {
|
|
3497
|
+
constructor(ctx: RelationPrimaryContext);
|
|
3498
|
+
functionTable(): FunctionTableContext;
|
|
3499
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3500
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3501
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3502
|
+
}
|
|
3503
|
+
export declare class JoinTableSourceContext extends RelationPrimaryContext {
|
|
3504
|
+
constructor(ctx: RelationPrimaryContext);
|
|
3505
|
+
LEFT_PAREN(): antlr.TerminalNode;
|
|
3506
|
+
relation(): RelationContext;
|
|
3507
|
+
RIGHT_PAREN(): antlr.TerminalNode;
|
|
3508
|
+
tableAlias(): TableAliasContext;
|
|
3509
|
+
sample(): SampleContext | null;
|
|
3510
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3511
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3512
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3513
|
+
}
|
|
3514
|
+
export declare class InlineTableSourceContext extends RelationPrimaryContext {
|
|
3515
|
+
constructor(ctx: RelationPrimaryContext);
|
|
3516
|
+
inlineTable(): InlineTableContext;
|
|
3517
|
+
tableAlias(): TableAliasContext;
|
|
3518
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3519
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3520
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3521
|
+
}
|
|
3522
|
+
export declare class AtomSubQueryTableSourceContext extends antlr.ParserRuleContext {
|
|
3523
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3524
|
+
LEFT_PAREN(): antlr.TerminalNode;
|
|
3525
|
+
query(): QueryContext;
|
|
3526
|
+
RIGHT_PAREN(): antlr.TerminalNode;
|
|
3527
|
+
get ruleIndex(): number;
|
|
3528
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3529
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3530
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3531
|
+
}
|
|
3532
|
+
export declare class InlineTableContext extends antlr.ParserRuleContext {
|
|
3533
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3534
|
+
KW_VALUES(): antlr.TerminalNode;
|
|
3467
3535
|
expression(): ExpressionContext[];
|
|
3468
3536
|
expression(i: number): ExpressionContext | null;
|
|
3469
3537
|
COMMA(): antlr.TerminalNode[];
|
|
3470
3538
|
COMMA(i: number): antlr.TerminalNode | null;
|
|
3471
|
-
functionName(): FunctionNameContext | null;
|
|
3472
|
-
functionTableArgument(): FunctionTableArgumentContext[];
|
|
3473
|
-
functionTableArgument(i: number): FunctionTableArgumentContext | null;
|
|
3474
3539
|
get ruleIndex(): number;
|
|
3475
3540
|
enterRule(listener: SparkSqlParserListener): void;
|
|
3476
3541
|
exitRule(listener: SparkSqlParserListener): void;
|
|
@@ -3546,6 +3611,29 @@ export declare class FunctionTableArgumentContext extends antlr.ParserRuleContex
|
|
|
3546
3611
|
exitRule(listener: SparkSqlParserListener): void;
|
|
3547
3612
|
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3548
3613
|
}
|
|
3614
|
+
export declare class FunctionTableContext extends antlr.ParserRuleContext {
|
|
3615
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3616
|
+
atomFunctionTable(): AtomFunctionTableContext;
|
|
3617
|
+
tableAlias(): TableAliasContext;
|
|
3618
|
+
get ruleIndex(): number;
|
|
3619
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3620
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3621
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3622
|
+
}
|
|
3623
|
+
export declare class AtomFunctionTableContext extends antlr.ParserRuleContext {
|
|
3624
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3625
|
+
functionName(): FunctionNameContext;
|
|
3626
|
+
LEFT_PAREN(): antlr.TerminalNode;
|
|
3627
|
+
RIGHT_PAREN(): antlr.TerminalNode;
|
|
3628
|
+
functionTableArgument(): FunctionTableArgumentContext[];
|
|
3629
|
+
functionTableArgument(i: number): FunctionTableArgumentContext | null;
|
|
3630
|
+
COMMA(): antlr.TerminalNode[];
|
|
3631
|
+
COMMA(i: number): antlr.TerminalNode | null;
|
|
3632
|
+
get ruleIndex(): number;
|
|
3633
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3634
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3635
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3636
|
+
}
|
|
3549
3637
|
export declare class TableAliasContext extends antlr.ParserRuleContext {
|
|
3550
3638
|
_alias?: StrictIdentifierContext;
|
|
3551
3639
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
@@ -3665,11 +3753,40 @@ export declare class ViewIdentifierContext extends antlr.ParserRuleContext {
|
|
|
3665
3753
|
exitRule(listener: SparkSqlParserListener): void;
|
|
3666
3754
|
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3667
3755
|
}
|
|
3756
|
+
export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
|
|
3757
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3758
|
+
columnName(): ColumnNameContext;
|
|
3759
|
+
get ruleIndex(): number;
|
|
3760
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3761
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3762
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3763
|
+
}
|
|
3764
|
+
export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
|
|
3765
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3766
|
+
expression(): ExpressionContext;
|
|
3767
|
+
get ruleIndex(): number;
|
|
3768
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3769
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3770
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3771
|
+
}
|
|
3772
|
+
export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
|
|
3773
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3774
|
+
ASTERISK(): antlr.TerminalNode;
|
|
3775
|
+
qualifiedName(): QualifiedNameContext[];
|
|
3776
|
+
qualifiedName(i: number): QualifiedNameContext | null;
|
|
3777
|
+
DOT(): antlr.TerminalNode[];
|
|
3778
|
+
DOT(i: number): antlr.TerminalNode | null;
|
|
3779
|
+
get ruleIndex(): number;
|
|
3780
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3781
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3782
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3783
|
+
}
|
|
3668
3784
|
export declare class NamedExpressionContext extends antlr.ParserRuleContext {
|
|
3669
|
-
|
|
3785
|
+
_alias?: ErrorCapturingIdentifierContext;
|
|
3670
3786
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3671
|
-
|
|
3672
|
-
|
|
3787
|
+
tableAllColumns(): TableAllColumnsContext | null;
|
|
3788
|
+
selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
|
|
3789
|
+
selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
|
|
3673
3790
|
identifierList(): IdentifierListContext | null;
|
|
3674
3791
|
KW_AS(): antlr.TerminalNode | null;
|
|
3675
3792
|
errorCapturingIdentifier(): ErrorCapturingIdentifierContext | null;
|
|
@@ -3689,6 +3806,14 @@ export declare class NamedExpressionSeqContext extends antlr.ParserRuleContext {
|
|
|
3689
3806
|
exitRule(listener: SparkSqlParserListener): void;
|
|
3690
3807
|
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3691
3808
|
}
|
|
3809
|
+
export declare class SelectListContext extends antlr.ParserRuleContext {
|
|
3810
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3811
|
+
namedExpressionSeq(): NamedExpressionSeqContext;
|
|
3812
|
+
get ruleIndex(): number;
|
|
3813
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
3814
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
3815
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result | null;
|
|
3816
|
+
}
|
|
3692
3817
|
export declare class PartitionFieldListContext extends antlr.ParserRuleContext {
|
|
3693
3818
|
_partitionField?: PartitionFieldContext;
|
|
3694
3819
|
_fields: PartitionFieldContext[];
|