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
|
@@ -129,7 +129,6 @@ import { ColumnNameColonTypeListContext } from "./HiveSqlParser.js";
|
|
|
129
129
|
import { ColumnNameListContext } from "./HiveSqlParser.js";
|
|
130
130
|
import { ColumnNameContext } from "./HiveSqlParser.js";
|
|
131
131
|
import { ColumnNamePathContext } from "./HiveSqlParser.js";
|
|
132
|
-
import { ColumnNamePathAllowEmptyContext } from "./HiveSqlParser.js";
|
|
133
132
|
import { ColumnNameCreateContext } from "./HiveSqlParser.js";
|
|
134
133
|
import { ExtColumnNameContext } from "./HiveSqlParser.js";
|
|
135
134
|
import { ColumnNameOrderListContext } from "./HiveSqlParser.js";
|
|
@@ -350,9 +349,7 @@ import { HourContext } from "./HiveSqlParser.js";
|
|
|
350
349
|
import { MinuteContext } from "./HiveSqlParser.js";
|
|
351
350
|
import { SecondContext } from "./HiveSqlParser.js";
|
|
352
351
|
import { DecimalContext } from "./HiveSqlParser.js";
|
|
353
|
-
import { EmptyColumnContext } from "./HiveSqlParser.js";
|
|
354
352
|
import { PoolPathContext } from "./HiveSqlParser.js";
|
|
355
|
-
import { PoolPathAllowEmptyContext } from "./HiveSqlParser.js";
|
|
356
353
|
import { TriggerAtomExpressionContext } from "./HiveSqlParser.js";
|
|
357
354
|
import { TriggerActionExpressionContext } from "./HiveSqlParser.js";
|
|
358
355
|
import { PoolAssignContext } from "./HiveSqlParser.js";
|
|
@@ -1662,16 +1659,6 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
|
|
|
1662
1659
|
* @param ctx the parse tree
|
|
1663
1660
|
*/
|
|
1664
1661
|
exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
|
|
1665
|
-
/**
|
|
1666
|
-
* Enter a parse tree produced by `HiveSqlParser.columnNamePathAllowEmpty`.
|
|
1667
|
-
* @param ctx the parse tree
|
|
1668
|
-
*/
|
|
1669
|
-
enterColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
|
|
1670
|
-
/**
|
|
1671
|
-
* Exit a parse tree produced by `HiveSqlParser.columnNamePathAllowEmpty`.
|
|
1672
|
-
* @param ctx the parse tree
|
|
1673
|
-
*/
|
|
1674
|
-
exitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => void;
|
|
1675
1662
|
/**
|
|
1676
1663
|
* Enter a parse tree produced by `HiveSqlParser.columnNameCreate`.
|
|
1677
1664
|
* @param ctx the parse tree
|
|
@@ -3880,16 +3867,6 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
|
|
|
3880
3867
|
* @param ctx the parse tree
|
|
3881
3868
|
*/
|
|
3882
3869
|
exitDecimal?: (ctx: DecimalContext) => void;
|
|
3883
|
-
/**
|
|
3884
|
-
* Enter a parse tree produced by `HiveSqlParser.emptyColumn`.
|
|
3885
|
-
* @param ctx the parse tree
|
|
3886
|
-
*/
|
|
3887
|
-
enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
|
|
3888
|
-
/**
|
|
3889
|
-
* Exit a parse tree produced by `HiveSqlParser.emptyColumn`.
|
|
3890
|
-
* @param ctx the parse tree
|
|
3891
|
-
*/
|
|
3892
|
-
exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
|
|
3893
3870
|
/**
|
|
3894
3871
|
* Enter a parse tree produced by `HiveSqlParser.poolPath`.
|
|
3895
3872
|
* @param ctx the parse tree
|
|
@@ -3900,16 +3877,6 @@ export declare class HiveSqlParserListener implements ParseTreeListener {
|
|
|
3900
3877
|
* @param ctx the parse tree
|
|
3901
3878
|
*/
|
|
3902
3879
|
exitPoolPath?: (ctx: PoolPathContext) => void;
|
|
3903
|
-
/**
|
|
3904
|
-
* Enter a parse tree produced by `HiveSqlParser.poolPathAllowEmpty`.
|
|
3905
|
-
* @param ctx the parse tree
|
|
3906
|
-
*/
|
|
3907
|
-
enterPoolPathAllowEmpty?: (ctx: PoolPathAllowEmptyContext) => void;
|
|
3908
|
-
/**
|
|
3909
|
-
* Exit a parse tree produced by `HiveSqlParser.poolPathAllowEmpty`.
|
|
3910
|
-
* @param ctx the parse tree
|
|
3911
|
-
*/
|
|
3912
|
-
exitPoolPathAllowEmpty?: (ctx: PoolPathAllowEmptyContext) => void;
|
|
3913
3880
|
/**
|
|
3914
3881
|
* Enter a parse tree produced by `HiveSqlParser.triggerAtomExpression`.
|
|
3915
3882
|
* @param ctx the parse tree
|
|
@@ -129,7 +129,6 @@ import { ColumnNameColonTypeListContext } from "./HiveSqlParser.js";
|
|
|
129
129
|
import { ColumnNameListContext } from "./HiveSqlParser.js";
|
|
130
130
|
import { ColumnNameContext } from "./HiveSqlParser.js";
|
|
131
131
|
import { ColumnNamePathContext } from "./HiveSqlParser.js";
|
|
132
|
-
import { ColumnNamePathAllowEmptyContext } from "./HiveSqlParser.js";
|
|
133
132
|
import { ColumnNameCreateContext } from "./HiveSqlParser.js";
|
|
134
133
|
import { ExtColumnNameContext } from "./HiveSqlParser.js";
|
|
135
134
|
import { ColumnNameOrderListContext } from "./HiveSqlParser.js";
|
|
@@ -350,9 +349,7 @@ import { HourContext } from "./HiveSqlParser.js";
|
|
|
350
349
|
import { MinuteContext } from "./HiveSqlParser.js";
|
|
351
350
|
import { SecondContext } from "./HiveSqlParser.js";
|
|
352
351
|
import { DecimalContext } from "./HiveSqlParser.js";
|
|
353
|
-
import { EmptyColumnContext } from "./HiveSqlParser.js";
|
|
354
352
|
import { PoolPathContext } from "./HiveSqlParser.js";
|
|
355
|
-
import { PoolPathAllowEmptyContext } from "./HiveSqlParser.js";
|
|
356
353
|
import { TriggerAtomExpressionContext } from "./HiveSqlParser.js";
|
|
357
354
|
import { TriggerActionExpressionContext } from "./HiveSqlParser.js";
|
|
358
355
|
import { PoolAssignContext } from "./HiveSqlParser.js";
|
|
@@ -1145,12 +1142,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
|
|
|
1145
1142
|
* @return the visitor result
|
|
1146
1143
|
*/
|
|
1147
1144
|
visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
|
|
1148
|
-
/**
|
|
1149
|
-
* Visit a parse tree produced by `HiveSqlParser.columnNamePathAllowEmpty`.
|
|
1150
|
-
* @param ctx the parse tree
|
|
1151
|
-
* @return the visitor result
|
|
1152
|
-
*/
|
|
1153
|
-
visitColumnNamePathAllowEmpty?: (ctx: ColumnNamePathAllowEmptyContext) => Result;
|
|
1154
1145
|
/**
|
|
1155
1146
|
* Visit a parse tree produced by `HiveSqlParser.columnNameCreate`.
|
|
1156
1147
|
* @param ctx the parse tree
|
|
@@ -2475,24 +2466,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
|
|
|
2475
2466
|
* @return the visitor result
|
|
2476
2467
|
*/
|
|
2477
2468
|
visitDecimal?: (ctx: DecimalContext) => Result;
|
|
2478
|
-
/**
|
|
2479
|
-
* Visit a parse tree produced by `HiveSqlParser.emptyColumn`.
|
|
2480
|
-
* @param ctx the parse tree
|
|
2481
|
-
* @return the visitor result
|
|
2482
|
-
*/
|
|
2483
|
-
visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
|
|
2484
2469
|
/**
|
|
2485
2470
|
* Visit a parse tree produced by `HiveSqlParser.poolPath`.
|
|
2486
2471
|
* @param ctx the parse tree
|
|
2487
2472
|
* @return the visitor result
|
|
2488
2473
|
*/
|
|
2489
2474
|
visitPoolPath?: (ctx: PoolPathContext) => Result;
|
|
2490
|
-
/**
|
|
2491
|
-
* Visit a parse tree produced by `HiveSqlParser.poolPathAllowEmpty`.
|
|
2492
|
-
* @param ctx the parse tree
|
|
2493
|
-
* @return the visitor result
|
|
2494
|
-
*/
|
|
2495
|
-
visitPoolPathAllowEmpty?: (ctx: PoolPathAllowEmptyContext) => Result;
|
|
2496
2475
|
/**
|
|
2497
2476
|
* Visit a parse tree produced by `HiveSqlParser.triggerAtomExpression`.
|
|
2498
2477
|
* @param ctx the parse tree
|
|
@@ -389,109 +389,106 @@ export declare class ImpalaSqlParser extends SQLParserBase {
|
|
|
389
389
|
static readonly RULE_tableNamePath = 93;
|
|
390
390
|
static readonly RULE_viewNamePath = 94;
|
|
391
391
|
static readonly RULE_functionNamePath = 95;
|
|
392
|
-
static readonly
|
|
393
|
-
static readonly
|
|
394
|
-
static readonly
|
|
395
|
-
static readonly
|
|
396
|
-
static readonly
|
|
397
|
-
static readonly
|
|
398
|
-
static readonly
|
|
399
|
-
static readonly
|
|
400
|
-
static readonly
|
|
401
|
-
static readonly
|
|
402
|
-
static readonly
|
|
403
|
-
static readonly
|
|
404
|
-
static readonly
|
|
405
|
-
static readonly
|
|
406
|
-
static readonly
|
|
407
|
-
static readonly
|
|
408
|
-
static readonly
|
|
409
|
-
static readonly
|
|
410
|
-
static readonly
|
|
411
|
-
static readonly
|
|
412
|
-
static readonly
|
|
413
|
-
static readonly
|
|
414
|
-
static readonly
|
|
415
|
-
static readonly
|
|
416
|
-
static readonly
|
|
417
|
-
static readonly
|
|
418
|
-
static readonly
|
|
419
|
-
static readonly
|
|
420
|
-
static readonly
|
|
421
|
-
static readonly
|
|
422
|
-
static readonly
|
|
423
|
-
static readonly
|
|
424
|
-
static readonly
|
|
425
|
-
static readonly
|
|
426
|
-
static readonly
|
|
427
|
-
static readonly
|
|
428
|
-
static readonly
|
|
429
|
-
static readonly
|
|
430
|
-
static readonly
|
|
431
|
-
static readonly
|
|
432
|
-
static readonly
|
|
433
|
-
static readonly
|
|
434
|
-
static readonly
|
|
435
|
-
static readonly
|
|
436
|
-
static readonly
|
|
437
|
-
static readonly
|
|
438
|
-
static readonly
|
|
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 RULE_number = 196;
|
|
493
|
-
static readonly RULE_reservedKeywordsUsedAsFuncName = 197;
|
|
494
|
-
static readonly RULE_nonReserved = 198;
|
|
392
|
+
static readonly RULE_columnNamePath = 96;
|
|
393
|
+
static readonly RULE_columnName = 97;
|
|
394
|
+
static readonly RULE_tableOrViewPath = 98;
|
|
395
|
+
static readonly RULE_createCommonItem = 99;
|
|
396
|
+
static readonly RULE_assignmentList = 100;
|
|
397
|
+
static readonly RULE_assignmentItem = 101;
|
|
398
|
+
static readonly RULE_viewColumns = 102;
|
|
399
|
+
static readonly RULE_viewColumnItem = 103;
|
|
400
|
+
static readonly RULE_queryStatement = 104;
|
|
401
|
+
static readonly RULE_with = 105;
|
|
402
|
+
static readonly RULE_constraintSpecification = 106;
|
|
403
|
+
static readonly RULE_foreignKeySpecification = 107;
|
|
404
|
+
static readonly RULE_columnSpec = 108;
|
|
405
|
+
static readonly RULE_columnDefinition = 109;
|
|
406
|
+
static readonly RULE_kuduTableElement = 110;
|
|
407
|
+
static readonly RULE_kuduColumnDefinition = 111;
|
|
408
|
+
static readonly RULE_commentClause = 112;
|
|
409
|
+
static readonly RULE_columnSpecWithKudu = 113;
|
|
410
|
+
static readonly RULE_createColumnSpecWithKudu = 114;
|
|
411
|
+
static readonly RULE_kuduAttributes = 115;
|
|
412
|
+
static readonly RULE_kuduStorageAttr = 116;
|
|
413
|
+
static readonly RULE_statsKey = 117;
|
|
414
|
+
static readonly RULE_fileFormat = 118;
|
|
415
|
+
static readonly RULE_kuduPartitionClause = 119;
|
|
416
|
+
static readonly RULE_hashClause = 120;
|
|
417
|
+
static readonly RULE_rangeClause = 121;
|
|
418
|
+
static readonly RULE_kuduPartitionSpec = 122;
|
|
419
|
+
static readonly RULE_cacheSpec = 123;
|
|
420
|
+
static readonly RULE_rangeOperator = 124;
|
|
421
|
+
static readonly RULE_partitionCol = 125;
|
|
422
|
+
static readonly RULE_likeClause = 126;
|
|
423
|
+
static readonly RULE_properties = 127;
|
|
424
|
+
static readonly RULE_partitionedBy = 128;
|
|
425
|
+
static readonly RULE_sortedBy = 129;
|
|
426
|
+
static readonly RULE_rowFormat = 130;
|
|
427
|
+
static readonly RULE_property = 131;
|
|
428
|
+
static readonly RULE_queryNoWith = 132;
|
|
429
|
+
static readonly RULE_queryTerm = 133;
|
|
430
|
+
static readonly RULE_queryPrimary = 134;
|
|
431
|
+
static readonly RULE_sortItem = 135;
|
|
432
|
+
static readonly RULE_querySpecification = 136;
|
|
433
|
+
static readonly RULE_selectList = 137;
|
|
434
|
+
static readonly RULE_whereClause = 138;
|
|
435
|
+
static readonly RULE_havingClause = 139;
|
|
436
|
+
static readonly RULE_groupBy = 140;
|
|
437
|
+
static readonly RULE_groupingElement = 141;
|
|
438
|
+
static readonly RULE_groupingSet = 142;
|
|
439
|
+
static readonly RULE_namedQuery = 143;
|
|
440
|
+
static readonly RULE_setQuantifier = 144;
|
|
441
|
+
static readonly RULE_selectItem = 145;
|
|
442
|
+
static readonly RULE_columnAlias = 146;
|
|
443
|
+
static readonly RULE_selectLiteralColumnName = 147;
|
|
444
|
+
static readonly RULE_selectExpressionColumnName = 148;
|
|
445
|
+
static readonly RULE_tableAllColumns = 149;
|
|
446
|
+
static readonly RULE_relation = 150;
|
|
447
|
+
static readonly RULE_joinType = 151;
|
|
448
|
+
static readonly RULE_joinCriteria = 152;
|
|
449
|
+
static readonly RULE_sampledRelation = 153;
|
|
450
|
+
static readonly RULE_sampleType = 154;
|
|
451
|
+
static readonly RULE_aliasedRelation = 155;
|
|
452
|
+
static readonly RULE_columnAliases = 156;
|
|
453
|
+
static readonly RULE_relationPrimary = 157;
|
|
454
|
+
static readonly RULE_atomSubQueryTableSource = 158;
|
|
455
|
+
static readonly RULE_subQueryRelation = 159;
|
|
456
|
+
static readonly RULE_unnest = 160;
|
|
457
|
+
static readonly RULE_parenthesizedRelation = 161;
|
|
458
|
+
static readonly RULE_columnItem = 162;
|
|
459
|
+
static readonly RULE_expression = 163;
|
|
460
|
+
static readonly RULE_booleanExpression = 164;
|
|
461
|
+
static readonly RULE_predicate = 165;
|
|
462
|
+
static readonly RULE_valueExpression = 166;
|
|
463
|
+
static readonly RULE_functionCallExpression = 167;
|
|
464
|
+
static readonly RULE_primaryExpression = 168;
|
|
465
|
+
static readonly RULE_stringLiteral = 169;
|
|
466
|
+
static readonly RULE_comparisonOperator = 170;
|
|
467
|
+
static readonly RULE_comparisonQuantifier = 171;
|
|
468
|
+
static readonly RULE_booleanValue = 172;
|
|
469
|
+
static readonly RULE_interval = 173;
|
|
470
|
+
static readonly RULE_intervalField = 174;
|
|
471
|
+
static readonly RULE_normalForm = 175;
|
|
472
|
+
static readonly RULE_type = 176;
|
|
473
|
+
static readonly RULE_dataType = 177;
|
|
474
|
+
static readonly RULE_typeParameter = 178;
|
|
475
|
+
static readonly RULE_baseType = 179;
|
|
476
|
+
static readonly RULE_whenClause = 180;
|
|
477
|
+
static readonly RULE_filter = 181;
|
|
478
|
+
static readonly RULE_partitionByClause = 182;
|
|
479
|
+
static readonly RULE_over = 183;
|
|
480
|
+
static readonly RULE_windowFrame = 184;
|
|
481
|
+
static readonly RULE_frameBound = 185;
|
|
482
|
+
static readonly RULE_pathElement = 186;
|
|
483
|
+
static readonly RULE_pathSpecification = 187;
|
|
484
|
+
static readonly RULE_privilege = 188;
|
|
485
|
+
static readonly RULE_objectType = 189;
|
|
486
|
+
static readonly RULE_qualifiedName = 190;
|
|
487
|
+
static readonly RULE_principal = 191;
|
|
488
|
+
static readonly RULE_identifier = 192;
|
|
489
|
+
static readonly RULE_number = 193;
|
|
490
|
+
static readonly RULE_reservedKeywordsUsedAsFuncName = 194;
|
|
491
|
+
static readonly RULE_nonReserved = 195;
|
|
495
492
|
static readonly literalNames: (string | null)[];
|
|
496
493
|
static readonly symbolicNames: (string | null)[];
|
|
497
494
|
static readonly ruleNames: string[];
|
|
@@ -598,10 +595,8 @@ export declare class ImpalaSqlParser extends SQLParserBase {
|
|
|
598
595
|
tableNamePath(): TableNamePathContext;
|
|
599
596
|
viewNamePath(): ViewNamePathContext;
|
|
600
597
|
functionNamePath(): FunctionNamePathContext;
|
|
601
|
-
emptyColumn(): EmptyColumnContext;
|
|
602
598
|
columnNamePath(): ColumnNamePathContext;
|
|
603
599
|
columnName(): ColumnNameContext;
|
|
604
|
-
columnNameAllowEmpty(): ColumnNameAllowEmptyContext;
|
|
605
600
|
tableOrViewPath(): TableOrViewPathContext;
|
|
606
601
|
createCommonItem(): CreateCommonItemContext;
|
|
607
602
|
assignmentList(): AssignmentListContext;
|
|
@@ -701,7 +696,6 @@ export declare class ImpalaSqlParser extends SQLParserBase {
|
|
|
701
696
|
privilege(): PrivilegeContext;
|
|
702
697
|
objectType(): ObjectTypeContext;
|
|
703
698
|
qualifiedName(): QualifiedNameContext;
|
|
704
|
-
qualifiedNameAllowEmpty(): QualifiedNameAllowEmptyContext;
|
|
705
699
|
principal(): PrincipalContext;
|
|
706
700
|
identifier(): IdentifierContext;
|
|
707
701
|
number_(): NumberContext;
|
|
@@ -709,15 +703,12 @@ export declare class ImpalaSqlParser extends SQLParserBase {
|
|
|
709
703
|
nonReserved(): NonReservedContext;
|
|
710
704
|
sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
|
|
711
705
|
private columnNamePath_sempred;
|
|
712
|
-
private columnNameAllowEmpty_sempred;
|
|
713
706
|
private queryTerm_sempred;
|
|
714
|
-
private selectItem_sempred;
|
|
715
707
|
private relation_sempred;
|
|
716
708
|
private booleanExpression_sempred;
|
|
717
709
|
private valueExpression_sempred;
|
|
718
710
|
private primaryExpression_sempred;
|
|
719
711
|
private type_sempred;
|
|
720
|
-
private qualifiedNameAllowEmpty_sempred;
|
|
721
712
|
static readonly _serializedATN: number[];
|
|
722
713
|
private static __ATN;
|
|
723
714
|
static get _ATN(): antlr.ATN;
|
|
@@ -2123,17 +2114,9 @@ export declare class FunctionNamePathContext extends antlr.ParserRuleContext {
|
|
|
2123
2114
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
2124
2115
|
accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
|
|
2125
2116
|
}
|
|
2126
|
-
export declare class EmptyColumnContext extends antlr.ParserRuleContext {
|
|
2127
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2128
|
-
get ruleIndex(): number;
|
|
2129
|
-
enterRule(listener: ImpalaSqlParserListener): void;
|
|
2130
|
-
exitRule(listener: ImpalaSqlParserListener): void;
|
|
2131
|
-
accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
|
|
2132
|
-
}
|
|
2133
2117
|
export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
|
|
2134
2118
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2135
|
-
|
|
2136
|
-
qualifiedNameAllowEmpty(): QualifiedNameAllowEmptyContext | null;
|
|
2119
|
+
qualifiedName(): QualifiedNameContext | null;
|
|
2137
2120
|
get ruleIndex(): number;
|
|
2138
2121
|
enterRule(listener: ImpalaSqlParserListener): void;
|
|
2139
2122
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
@@ -2147,15 +2130,6 @@ export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
|
2147
2130
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
2148
2131
|
accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
|
|
2149
2132
|
}
|
|
2150
|
-
export declare class ColumnNameAllowEmptyContext extends antlr.ParserRuleContext {
|
|
2151
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2152
|
-
emptyColumn(): EmptyColumnContext | null;
|
|
2153
|
-
qualifiedNameAllowEmpty(): QualifiedNameAllowEmptyContext | null;
|
|
2154
|
-
get ruleIndex(): number;
|
|
2155
|
-
enterRule(listener: ImpalaSqlParserListener): void;
|
|
2156
|
-
exitRule(listener: ImpalaSqlParserListener): void;
|
|
2157
|
-
accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
|
|
2158
|
-
}
|
|
2159
2133
|
export declare class TableOrViewPathContext extends antlr.ParserRuleContext {
|
|
2160
2134
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2161
2135
|
tableNamePath(): TableNamePathContext | null;
|
|
@@ -2733,8 +2707,7 @@ export declare class WhereClauseContext extends antlr.ParserRuleContext {
|
|
|
2733
2707
|
_where?: BooleanExpressionContext;
|
|
2734
2708
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2735
2709
|
KW_WHERE(): antlr.TerminalNode;
|
|
2736
|
-
|
|
2737
|
-
booleanExpression(): BooleanExpressionContext | null;
|
|
2710
|
+
booleanExpression(): BooleanExpressionContext;
|
|
2738
2711
|
get ruleIndex(): number;
|
|
2739
2712
|
enterRule(listener: ImpalaSqlParserListener): void;
|
|
2740
2713
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
@@ -2744,8 +2717,7 @@ export declare class HavingClauseContext extends antlr.ParserRuleContext {
|
|
|
2744
2717
|
_having?: BooleanExpressionContext;
|
|
2745
2718
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2746
2719
|
KW_HAVING(): antlr.TerminalNode;
|
|
2747
|
-
|
|
2748
|
-
booleanExpression(): BooleanExpressionContext | null;
|
|
2720
|
+
booleanExpression(): BooleanExpressionContext;
|
|
2749
2721
|
get ruleIndex(): number;
|
|
2750
2722
|
enterRule(listener: ImpalaSqlParserListener): void;
|
|
2751
2723
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
@@ -2815,7 +2787,6 @@ export declare class SelectItemContext extends antlr.ParserRuleContext {
|
|
|
2815
2787
|
columnAlias(): ColumnAliasContext | null;
|
|
2816
2788
|
selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
|
|
2817
2789
|
tableAllColumns(): TableAllColumnsContext | null;
|
|
2818
|
-
emptyColumn(): EmptyColumnContext | null;
|
|
2819
2790
|
get ruleIndex(): number;
|
|
2820
2791
|
enterRule(listener: ImpalaSqlParserListener): void;
|
|
2821
2792
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
@@ -2903,7 +2874,6 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
|
|
|
2903
2874
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2904
2875
|
KW_ON(): antlr.TerminalNode | null;
|
|
2905
2876
|
booleanExpression(): BooleanExpressionContext | null;
|
|
2906
|
-
columnNameAllowEmpty(): ColumnNameAllowEmptyContext | null;
|
|
2907
2877
|
KW_USING(): antlr.TerminalNode | null;
|
|
2908
2878
|
LPAREN(): antlr.TerminalNode | null;
|
|
2909
2879
|
identifier(): IdentifierContext[];
|
|
@@ -3911,18 +3881,6 @@ export declare class QualifiedNameContext extends antlr.ParserRuleContext {
|
|
|
3911
3881
|
exitRule(listener: ImpalaSqlParserListener): void;
|
|
3912
3882
|
accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
|
|
3913
3883
|
}
|
|
3914
|
-
export declare class QualifiedNameAllowEmptyContext extends antlr.ParserRuleContext {
|
|
3915
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3916
|
-
identifier(): IdentifierContext[];
|
|
3917
|
-
identifier(i: number): IdentifierContext | null;
|
|
3918
|
-
DOT(): antlr.TerminalNode[];
|
|
3919
|
-
DOT(i: number): antlr.TerminalNode | null;
|
|
3920
|
-
emptyColumn(): EmptyColumnContext | null;
|
|
3921
|
-
get ruleIndex(): number;
|
|
3922
|
-
enterRule(listener: ImpalaSqlParserListener): void;
|
|
3923
|
-
exitRule(listener: ImpalaSqlParserListener): void;
|
|
3924
|
-
accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
|
|
3925
|
-
}
|
|
3926
3884
|
export declare class PrincipalContext extends antlr.ParserRuleContext {
|
|
3927
3885
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3928
3886
|
get ruleIndex(): number;
|