dt-sql-parser 4.4.2 → 4.5.0-beta.1
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/SQLParserBase.d.ts +13 -1
- package/dist/lib/SQLParserBase.js +40 -5
- package/dist/lib/flink/FlinkSqlLexer.d.ts +397 -399
- package/dist/lib/flink/FlinkSqlLexer.js +2489 -2504
- package/dist/lib/flink/FlinkSqlParser.d.ts +726 -728
- package/dist/lib/flink/FlinkSqlParser.js +4727 -5330
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +132 -90
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +84 -57
- package/dist/lib/hive/HiveSqlParser.d.ts +338 -239
- package/dist/lib/hive/HiveSqlParser.js +6466 -5794
- package/dist/lib/hive/HiveSqlParserListener.d.ts +88 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +56 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +236 -125
- package/dist/lib/impala/ImpalaSqlParser.js +4257 -3483
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +109 -14
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +69 -8
- package/dist/lib/mysql/MySqlParser.d.ts +403 -306
- package/dist/lib/mysql/MySqlParser.js +10694 -10030
- package/dist/lib/mysql/MySqlParserListener.d.ts +121 -18
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +75 -10
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +256 -173
- package/dist/lib/postgresql/PostgreSqlParser.js +14934 -11710
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +97 -5
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +61 -3
- package/dist/lib/spark/SparkSqlParser.d.ts +314 -149
- package/dist/lib/spark/SparkSqlParser.js +6185 -5227
- package/dist/lib/spark/SparkSqlParserListener.d.ts +180 -5
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +113 -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.d.ts +5 -5
- package/dist/parser/common/basicSQL.js +4 -2
- package/dist/parser/common/entityCollector.d.ts +91 -4
- package/dist/parser/common/entityCollector.js +227 -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/flink/index.js +5 -2
- 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/index.js +3 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +10 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +65 -12
- package/dist/parser/mysql/mysqlErrorListener.js +2 -0
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +12 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +99 -22
- package/dist/parser/spark/index.js +3 -1
- package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
- package/dist/parser/spark/sparkEntityCollector.js +88 -12
- package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
- package/dist/parser/trino/trinoEntityCollector.js +53 -12
- package/package.json +1 -1
|
@@ -373,132 +373,138 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
373
373
|
static readonly RULE_querySpecification = 26;
|
|
374
374
|
static readonly RULE_whereClause = 27;
|
|
375
375
|
static readonly RULE_havingClause = 28;
|
|
376
|
-
static readonly
|
|
377
|
-
static readonly
|
|
378
|
-
static readonly
|
|
379
|
-
static readonly
|
|
380
|
-
static readonly
|
|
381
|
-
static readonly
|
|
382
|
-
static readonly
|
|
383
|
-
static readonly
|
|
384
|
-
static readonly
|
|
385
|
-
static readonly
|
|
386
|
-
static readonly
|
|
387
|
-
static readonly
|
|
388
|
-
static readonly
|
|
389
|
-
static readonly
|
|
390
|
-
static readonly
|
|
391
|
-
static readonly
|
|
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
|
|
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
|
|
376
|
+
static readonly RULE_selectList = 29;
|
|
377
|
+
static readonly RULE_groupBy = 30;
|
|
378
|
+
static readonly RULE_partitionBy = 31;
|
|
379
|
+
static readonly RULE_groupingElement = 32;
|
|
380
|
+
static readonly RULE_groupingSet = 33;
|
|
381
|
+
static readonly RULE_groupingTerm = 34;
|
|
382
|
+
static readonly RULE_windowDefinition = 35;
|
|
383
|
+
static readonly RULE_windowSpecification = 36;
|
|
384
|
+
static readonly RULE_namedQuery = 37;
|
|
385
|
+
static readonly RULE_setQuantifier = 38;
|
|
386
|
+
static readonly RULE_selectItem = 39;
|
|
387
|
+
static readonly RULE_selectAllWithoutTable = 40;
|
|
388
|
+
static readonly RULE_tableAllColumns = 41;
|
|
389
|
+
static readonly RULE_selectLiteralColumnName = 42;
|
|
390
|
+
static readonly RULE_selectExpressionColumnName = 43;
|
|
391
|
+
static readonly RULE_relation = 44;
|
|
392
|
+
static readonly RULE_joinType = 45;
|
|
393
|
+
static readonly RULE_joinCriteria = 46;
|
|
394
|
+
static readonly RULE_sampledRelation = 47;
|
|
395
|
+
static readonly RULE_sampleType = 48;
|
|
396
|
+
static readonly RULE_trimsSpecification = 49;
|
|
397
|
+
static readonly RULE_listAggOverflowBehavior = 50;
|
|
398
|
+
static readonly RULE_listAggCountIndication = 51;
|
|
399
|
+
static readonly RULE_patternRecognition = 52;
|
|
400
|
+
static readonly RULE_measureDefinition = 53;
|
|
401
|
+
static readonly RULE_rowsPerMatch = 54;
|
|
402
|
+
static readonly RULE_emptyMatchHandling = 55;
|
|
403
|
+
static readonly RULE_skipTo = 56;
|
|
404
|
+
static readonly RULE_subsetDefinition = 57;
|
|
405
|
+
static readonly RULE_variableDefinition = 58;
|
|
406
|
+
static readonly RULE_aliasedRelation = 59;
|
|
407
|
+
static readonly RULE_columnListCreate = 60;
|
|
408
|
+
static readonly RULE_columnList = 61;
|
|
409
|
+
static readonly RULE_columnAliases = 62;
|
|
410
|
+
static readonly RULE_relationPrimary = 63;
|
|
411
|
+
static readonly RULE_relationSourceTable = 64;
|
|
412
|
+
static readonly RULE_jsonTableColumn = 65;
|
|
413
|
+
static readonly RULE_jsonTableSpecificPlan = 66;
|
|
414
|
+
static readonly RULE_jsonTablePathName = 67;
|
|
415
|
+
static readonly RULE_planPrimary = 68;
|
|
416
|
+
static readonly RULE_jsonTableDefaultPlan = 69;
|
|
417
|
+
static readonly RULE_tableFunctionCall = 70;
|
|
418
|
+
static readonly RULE_tableFunctionArgument = 71;
|
|
419
|
+
static readonly RULE_tableArgument = 72;
|
|
420
|
+
static readonly RULE_tableArgumentRelation = 73;
|
|
421
|
+
static readonly RULE_descriptorArgument = 74;
|
|
422
|
+
static readonly RULE_descriptorField = 75;
|
|
423
|
+
static readonly RULE_coPartitionTables = 76;
|
|
424
|
+
static readonly RULE_expression = 77;
|
|
425
|
+
static readonly RULE_booleanExpression = 78;
|
|
426
|
+
static readonly RULE_predicate = 79;
|
|
427
|
+
static readonly RULE_valueExpression = 80;
|
|
428
|
+
static readonly RULE_primaryExpression = 81;
|
|
429
|
+
static readonly RULE_jsonPathInvocation = 82;
|
|
430
|
+
static readonly RULE_jsonValueExpression = 83;
|
|
431
|
+
static readonly RULE_jsonRepresentation = 84;
|
|
432
|
+
static readonly RULE_jsonArgument = 85;
|
|
433
|
+
static readonly RULE_jsonExistsErrorBehavior = 86;
|
|
434
|
+
static readonly RULE_jsonValueBehavior = 87;
|
|
435
|
+
static readonly RULE_jsonQueryWrapperBehavior = 88;
|
|
436
|
+
static readonly RULE_jsonQueryBehavior = 89;
|
|
437
|
+
static readonly RULE_jsonObjectMember = 90;
|
|
438
|
+
static readonly RULE_processingMode = 91;
|
|
439
|
+
static readonly RULE_nullTreatment = 92;
|
|
440
|
+
static readonly RULE_string = 93;
|
|
441
|
+
static readonly RULE_timeZoneSpecifier = 94;
|
|
442
|
+
static readonly RULE_comparisonOperator = 95;
|
|
443
|
+
static readonly RULE_comparisonQuantifier = 96;
|
|
444
|
+
static readonly RULE_booleanValue = 97;
|
|
445
|
+
static readonly RULE_interval = 98;
|
|
446
|
+
static readonly RULE_intervalField = 99;
|
|
447
|
+
static readonly RULE_normalForm = 100;
|
|
448
|
+
static readonly RULE_type = 101;
|
|
449
|
+
static readonly RULE_rowField = 102;
|
|
450
|
+
static readonly RULE_typeParameter = 103;
|
|
451
|
+
static readonly RULE_whenClause = 104;
|
|
452
|
+
static readonly RULE_filter = 105;
|
|
453
|
+
static readonly RULE_mergeCase = 106;
|
|
454
|
+
static readonly RULE_over = 107;
|
|
455
|
+
static readonly RULE_windowFrame = 108;
|
|
456
|
+
static readonly RULE_frameExtent = 109;
|
|
457
|
+
static readonly RULE_frameBound = 110;
|
|
458
|
+
static readonly RULE_rowPattern = 111;
|
|
459
|
+
static readonly RULE_patternPrimary = 112;
|
|
460
|
+
static readonly RULE_patternQuantifier = 113;
|
|
461
|
+
static readonly RULE_updateAssignment = 114;
|
|
462
|
+
static readonly RULE_explainOption = 115;
|
|
463
|
+
static readonly RULE_transactionMode = 116;
|
|
464
|
+
static readonly RULE_levelOfIsolation = 117;
|
|
465
|
+
static readonly RULE_callArgument = 118;
|
|
466
|
+
static readonly RULE_pathElement = 119;
|
|
467
|
+
static readonly RULE_pathSpecification = 120;
|
|
468
|
+
static readonly RULE_functionSpecification = 121;
|
|
469
|
+
static readonly RULE_functionDeclaration = 122;
|
|
470
|
+
static readonly RULE_functionSignature = 123;
|
|
471
|
+
static readonly RULE_parameterDeclaration = 124;
|
|
472
|
+
static readonly RULE_returnsClause = 125;
|
|
473
|
+
static readonly RULE_routineCharacteristic = 126;
|
|
474
|
+
static readonly RULE_controlStatement = 127;
|
|
475
|
+
static readonly RULE_caseStatementWhenClause = 128;
|
|
476
|
+
static readonly RULE_elseIfClause = 129;
|
|
477
|
+
static readonly RULE_elseClause = 130;
|
|
478
|
+
static readonly RULE_variableDeclaration = 131;
|
|
479
|
+
static readonly RULE_sqlStatementList = 132;
|
|
480
|
+
static readonly RULE_privilege = 133;
|
|
481
|
+
static readonly RULE_entityKind = 134;
|
|
482
|
+
static readonly RULE_grantObject = 135;
|
|
483
|
+
static readonly RULE_tableOrViewName = 136;
|
|
484
|
+
static readonly RULE_tableRef = 137;
|
|
485
|
+
static readonly RULE_tableNameCreate = 138;
|
|
486
|
+
static readonly RULE_viewRef = 139;
|
|
487
|
+
static readonly RULE_viewNameCreate = 140;
|
|
488
|
+
static readonly RULE_schemaRef = 141;
|
|
489
|
+
static readonly RULE_schemaNameCreate = 142;
|
|
490
|
+
static readonly RULE_catalogRef = 143;
|
|
491
|
+
static readonly RULE_catalogNameCreate = 144;
|
|
492
|
+
static readonly RULE_functionName = 145;
|
|
493
|
+
static readonly RULE_functionNameCreate = 146;
|
|
494
|
+
static readonly RULE_columnRef = 147;
|
|
495
|
+
static readonly RULE_columnName = 148;
|
|
496
|
+
static readonly RULE_columnNameCreate = 149;
|
|
497
|
+
static readonly RULE_qualifiedName = 150;
|
|
498
|
+
static readonly RULE_queryPeriod = 151;
|
|
499
|
+
static readonly RULE_rangeType = 152;
|
|
500
|
+
static readonly RULE_grantor = 153;
|
|
501
|
+
static readonly RULE_principal = 154;
|
|
502
|
+
static readonly RULE_roles = 155;
|
|
503
|
+
static readonly RULE_privilegeOrRole = 156;
|
|
504
|
+
static readonly RULE_identifier = 157;
|
|
505
|
+
static readonly RULE_number = 158;
|
|
506
|
+
static readonly RULE_authorizationUser = 159;
|
|
507
|
+
static readonly RULE_nonReserved = 160;
|
|
502
508
|
static readonly literalNames: (string | null)[];
|
|
503
509
|
static readonly symbolicNames: (string | null)[];
|
|
504
510
|
static readonly ruleNames: string[];
|
|
@@ -539,6 +545,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
539
545
|
querySpecification(): QuerySpecificationContext;
|
|
540
546
|
whereClause(): WhereClauseContext;
|
|
541
547
|
havingClause(): HavingClauseContext;
|
|
548
|
+
selectList(): SelectListContext;
|
|
542
549
|
groupBy(): GroupByContext;
|
|
543
550
|
partitionBy(): PartitionByContext;
|
|
544
551
|
groupingElement(): GroupingElementContext;
|
|
@@ -549,6 +556,10 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
549
556
|
namedQuery(): NamedQueryContext;
|
|
550
557
|
setQuantifier(): SetQuantifierContext;
|
|
551
558
|
selectItem(): SelectItemContext;
|
|
559
|
+
selectAllWithoutTable(): SelectAllWithoutTableContext;
|
|
560
|
+
tableAllColumns(): TableAllColumnsContext;
|
|
561
|
+
selectLiteralColumnName(): SelectLiteralColumnNameContext;
|
|
562
|
+
selectExpressionColumnName(): SelectExpressionColumnNameContext;
|
|
552
563
|
relation(): RelationContext;
|
|
553
564
|
relation(_p: number): RelationContext;
|
|
554
565
|
joinType(): JoinTypeContext;
|
|
@@ -570,6 +581,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
570
581
|
columnList(): ColumnListContext;
|
|
571
582
|
columnAliases(): ColumnAliasesContext;
|
|
572
583
|
relationPrimary(): RelationPrimaryContext;
|
|
584
|
+
relationSourceTable(): RelationSourceTableContext;
|
|
573
585
|
jsonTableColumn(): JsonTableColumnContext;
|
|
574
586
|
jsonTableSpecificPlan(): JsonTableSpecificPlanContext;
|
|
575
587
|
jsonTablePathName(): JsonTablePathNameContext;
|
|
@@ -2142,8 +2154,7 @@ export declare class SortItemContext extends antlr.ParserRuleContext {
|
|
|
2142
2154
|
export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
|
|
2143
2155
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2144
2156
|
KW_SELECT(): antlr.TerminalNode;
|
|
2145
|
-
|
|
2146
|
-
selectItem(i: number): SelectItemContext | null;
|
|
2157
|
+
selectList(): SelectListContext;
|
|
2147
2158
|
setQuantifier(): SetQuantifierContext | null;
|
|
2148
2159
|
KW_FROM(): antlr.TerminalNode | null;
|
|
2149
2160
|
relation(): RelationContext[];
|
|
@@ -2181,6 +2192,15 @@ export declare class HavingClauseContext extends antlr.ParserRuleContext {
|
|
|
2181
2192
|
exitRule(listener: TrinoSqlListener): void;
|
|
2182
2193
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2183
2194
|
}
|
|
2195
|
+
export declare class SelectListContext extends antlr.ParserRuleContext {
|
|
2196
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2197
|
+
selectItem(): SelectItemContext[];
|
|
2198
|
+
selectItem(i: number): SelectItemContext | null;
|
|
2199
|
+
get ruleIndex(): number;
|
|
2200
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2201
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2202
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2203
|
+
}
|
|
2184
2204
|
export declare class GroupByContext extends antlr.ParserRuleContext {
|
|
2185
2205
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2186
2206
|
groupingElement(): GroupingElementContext[];
|
|
@@ -2308,27 +2328,49 @@ export declare class SetQuantifierContext extends antlr.ParserRuleContext {
|
|
|
2308
2328
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2309
2329
|
}
|
|
2310
2330
|
export declare class SelectItemContext extends antlr.ParserRuleContext {
|
|
2331
|
+
_alias?: IdentifierContext;
|
|
2311
2332
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2333
|
+
selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
|
|
2334
|
+
selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
|
|
2335
|
+
identifier(): IdentifierContext | null;
|
|
2336
|
+
KW_AS(): antlr.TerminalNode | null;
|
|
2337
|
+
tableAllColumns(): TableAllColumnsContext | null;
|
|
2338
|
+
columnAliases(): ColumnAliasesContext | null;
|
|
2339
|
+
selectAllWithoutTable(): SelectAllWithoutTableContext | null;
|
|
2312
2340
|
get ruleIndex(): number;
|
|
2313
|
-
|
|
2341
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2342
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2343
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2314
2344
|
}
|
|
2315
|
-
export declare class
|
|
2316
|
-
constructor(
|
|
2317
|
-
primaryExpression(): PrimaryExpressionContext | null;
|
|
2345
|
+
export declare class SelectAllWithoutTableContext extends antlr.ParserRuleContext {
|
|
2346
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2318
2347
|
ASTERISK(): antlr.TerminalNode;
|
|
2319
|
-
|
|
2320
|
-
columnAliases(): ColumnAliasesContext | null;
|
|
2348
|
+
get ruleIndex(): number;
|
|
2321
2349
|
enterRule(listener: TrinoSqlListener): void;
|
|
2322
2350
|
exitRule(listener: TrinoSqlListener): void;
|
|
2323
2351
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2324
2352
|
}
|
|
2325
|
-
export declare class
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2353
|
+
export declare class TableAllColumnsContext extends antlr.ParserRuleContext {
|
|
2354
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2355
|
+
primaryExpression(): PrimaryExpressionContext;
|
|
2356
|
+
ASTERISK(): antlr.TerminalNode;
|
|
2357
|
+
get ruleIndex(): number;
|
|
2358
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2359
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2360
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2361
|
+
}
|
|
2362
|
+
export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
|
|
2363
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2364
|
+
columnRef(): ColumnRefContext;
|
|
2365
|
+
get ruleIndex(): number;
|
|
2366
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2367
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2368
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2369
|
+
}
|
|
2370
|
+
export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
|
|
2371
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2372
|
+
expression(): ExpressionContext;
|
|
2373
|
+
get ruleIndex(): number;
|
|
2332
2374
|
enterRule(listener: TrinoSqlListener): void;
|
|
2333
2375
|
exitRule(listener: TrinoSqlListener): void;
|
|
2334
2376
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
@@ -2593,15 +2635,42 @@ export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
|
|
|
2593
2635
|
get ruleIndex(): number;
|
|
2594
2636
|
copyFrom(ctx: RelationPrimaryContext): void;
|
|
2595
2637
|
}
|
|
2596
|
-
export declare class
|
|
2638
|
+
export declare class ExpressionSourceTableContext extends RelationPrimaryContext {
|
|
2597
2639
|
constructor(ctx: RelationPrimaryContext);
|
|
2598
|
-
|
|
2640
|
+
relationSourceTable(): RelationSourceTableContext;
|
|
2599
2641
|
enterRule(listener: TrinoSqlListener): void;
|
|
2600
2642
|
exitRule(listener: TrinoSqlListener): void;
|
|
2601
2643
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2602
2644
|
}
|
|
2603
|
-
export declare class
|
|
2645
|
+
export declare class ParenthesizedRelationContext extends RelationPrimaryContext {
|
|
2604
2646
|
constructor(ctx: RelationPrimaryContext);
|
|
2647
|
+
relation(): RelationContext;
|
|
2648
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2649
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2650
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2651
|
+
}
|
|
2652
|
+
export declare class TableNameContext extends RelationPrimaryContext {
|
|
2653
|
+
constructor(ctx: RelationPrimaryContext);
|
|
2654
|
+
tableOrViewName(): TableOrViewNameContext;
|
|
2655
|
+
queryPeriod(): QueryPeriodContext | null;
|
|
2656
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2657
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2658
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2659
|
+
}
|
|
2660
|
+
export declare class RelationSourceTableContext extends antlr.ParserRuleContext {
|
|
2661
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2662
|
+
get ruleIndex(): number;
|
|
2663
|
+
copyFrom(ctx: RelationSourceTableContext): void;
|
|
2664
|
+
}
|
|
2665
|
+
export declare class SubqueryRelationContext extends RelationSourceTableContext {
|
|
2666
|
+
constructor(ctx: RelationSourceTableContext);
|
|
2667
|
+
query(): QueryContext;
|
|
2668
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2669
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2670
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2671
|
+
}
|
|
2672
|
+
export declare class JsonTableContext extends RelationSourceTableContext {
|
|
2673
|
+
constructor(ctx: RelationSourceTableContext);
|
|
2605
2674
|
KW_JSON_TABLE(): antlr.TerminalNode;
|
|
2606
2675
|
jsonPathInvocation(): JsonPathInvocationContext;
|
|
2607
2676
|
KW_COLUMNS(): antlr.TerminalNode;
|
|
@@ -2619,15 +2688,8 @@ export declare class JsonTableContext extends RelationPrimaryContext {
|
|
|
2619
2688
|
exitRule(listener: TrinoSqlListener): void;
|
|
2620
2689
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2621
2690
|
}
|
|
2622
|
-
export declare class
|
|
2623
|
-
constructor(ctx:
|
|
2624
|
-
relation(): RelationContext;
|
|
2625
|
-
enterRule(listener: TrinoSqlListener): void;
|
|
2626
|
-
exitRule(listener: TrinoSqlListener): void;
|
|
2627
|
-
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2628
|
-
}
|
|
2629
|
-
export declare class UnnestContext extends RelationPrimaryContext {
|
|
2630
|
-
constructor(ctx: RelationPrimaryContext);
|
|
2691
|
+
export declare class UnnestContext extends RelationSourceTableContext {
|
|
2692
|
+
constructor(ctx: RelationSourceTableContext);
|
|
2631
2693
|
KW_UNNEST(): antlr.TerminalNode;
|
|
2632
2694
|
expression(): ExpressionContext[];
|
|
2633
2695
|
expression(i: number): ExpressionContext | null;
|
|
@@ -2637,30 +2699,22 @@ export declare class UnnestContext extends RelationPrimaryContext {
|
|
|
2637
2699
|
exitRule(listener: TrinoSqlListener): void;
|
|
2638
2700
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2639
2701
|
}
|
|
2640
|
-
export declare class TableFunctionInvocationContext extends
|
|
2641
|
-
constructor(ctx:
|
|
2702
|
+
export declare class TableFunctionInvocationContext extends RelationSourceTableContext {
|
|
2703
|
+
constructor(ctx: RelationSourceTableContext);
|
|
2642
2704
|
KW_TABLE(): antlr.TerminalNode;
|
|
2643
2705
|
tableFunctionCall(): TableFunctionCallContext;
|
|
2644
2706
|
enterRule(listener: TrinoSqlListener): void;
|
|
2645
2707
|
exitRule(listener: TrinoSqlListener): void;
|
|
2646
2708
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2647
2709
|
}
|
|
2648
|
-
export declare class LateralContext extends
|
|
2649
|
-
constructor(ctx:
|
|
2710
|
+
export declare class LateralContext extends RelationSourceTableContext {
|
|
2711
|
+
constructor(ctx: RelationSourceTableContext);
|
|
2650
2712
|
KW_LATERAL(): antlr.TerminalNode;
|
|
2651
2713
|
query(): QueryContext;
|
|
2652
2714
|
enterRule(listener: TrinoSqlListener): void;
|
|
2653
2715
|
exitRule(listener: TrinoSqlListener): void;
|
|
2654
2716
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2655
2717
|
}
|
|
2656
|
-
export declare class TableNameContext extends RelationPrimaryContext {
|
|
2657
|
-
constructor(ctx: RelationPrimaryContext);
|
|
2658
|
-
tableOrViewName(): TableOrViewNameContext;
|
|
2659
|
-
queryPeriod(): QueryPeriodContext | null;
|
|
2660
|
-
enterRule(listener: TrinoSqlListener): void;
|
|
2661
|
-
exitRule(listener: TrinoSqlListener): void;
|
|
2662
|
-
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2663
|
-
}
|
|
2664
2718
|
export declare class JsonTableColumnContext extends antlr.ParserRuleContext {
|
|
2665
2719
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2666
2720
|
get ruleIndex(): number;
|