dt-sql-parser 4.1.2-beta.0 → 4.2.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 +51 -0
- package/dist/lib/flink/FlinkSqlLexer.d.ts +5 -5
- package/dist/lib/flink/FlinkSqlLexer.js +1991 -1992
- package/dist/lib/flink/FlinkSqlParser.d.ts +240 -230
- package/dist/lib/flink/FlinkSqlParser.js +3036 -2978
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +81 -70
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +49 -42
- package/dist/lib/hive/HiveSqlParser.d.ts +251 -231
- package/dist/lib/hive/HiveSqlParser.js +6264 -5674
- package/dist/lib/hive/HiveSqlParserListener.d.ts +32 -10
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +20 -6
- package/dist/lib/impala/ImpalaSqlLexer.d.ts +2 -2
- package/dist/lib/impala/ImpalaSqlLexer.js +587 -588
- package/dist/lib/impala/ImpalaSqlParser.d.ts +151 -113
- package/dist/lib/impala/ImpalaSqlParser.js +3464 -3250
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +49 -5
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +31 -3
- package/dist/lib/mysql/MySqlLexer.d.ts +2 -2
- package/dist/lib/mysql/MySqlLexer.js +3515 -3516
- package/dist/lib/mysql/MySqlParser.d.ts +138 -138
- package/dist/lib/mysql/MySqlParser.js +511 -511
- package/dist/lib/mysql/MySqlParserListener.d.ts +105 -105
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +63 -63
- package/dist/lib/postgresql/PostgreSqlLexer.d.ts +14 -15
- package/dist/lib/postgresql/PostgreSqlLexer.js +2077 -2092
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +2860 -2980
- package/dist/lib/postgresql/PostgreSqlParser.js +20155 -20660
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +2110 -2181
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +1261 -1301
- package/dist/lib/spark/SparkSqlLexer.d.ts +2 -2
- package/dist/lib/spark/SparkSqlLexer.js +949 -950
- package/dist/lib/spark/SparkSqlParser.d.ts +413 -645
- package/dist/lib/spark/SparkSqlParser.js +6840 -8200
- package/dist/lib/spark/SparkSqlParserListener.d.ts +68 -356
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +42 -225
- package/dist/lib/trino/TrinoSqlLexer.d.ts +2 -2
- package/dist/lib/trino/TrinoSqlLexer.js +319 -321
- package/dist/lib/trino/TrinoSqlListener.d.ts +67 -23
- package/dist/lib/trino/TrinoSqlParser.d.ts +210 -181
- package/dist/lib/trino/TrinoSqlParser.js +4854 -4695
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +42 -14
- package/dist/parser/common/basicSQL.d.ts +43 -9
- package/dist/parser/common/basicSQL.js +147 -40
- package/dist/parser/common/semanticContextCollector.d.ts +50 -0
- package/dist/parser/common/semanticContextCollector.js +202 -0
- package/dist/parser/common/tokenUtils.d.ts +12 -0
- package/dist/parser/common/tokenUtils.js +38 -0
- package/dist/parser/common/types.d.ts +25 -0
- package/dist/parser/common/types.js +7 -0
- package/dist/parser/flink/flinkErrorListener.js +14 -2
- package/dist/parser/flink/flinkSemanticContextCollector.d.ts +9 -0
- package/dist/parser/flink/flinkSemanticContextCollector.js +14 -0
- package/dist/parser/flink/index.d.ts +4 -2
- package/dist/parser/flink/index.js +22 -14
- package/dist/parser/hive/hiveErrorListener.js +9 -3
- package/dist/parser/hive/hiveSemanticContextCollector.d.ts +9 -0
- package/dist/parser/hive/hiveSemanticContextCollector.js +14 -0
- package/dist/parser/hive/index.d.ts +4 -2
- package/dist/parser/hive/index.js +29 -14
- package/dist/parser/impala/ImpalaErrorListener.js +8 -2
- package/dist/parser/impala/impalaSemanticContextCollector.d.ts +9 -0
- package/dist/parser/impala/impalaSemanticContextCollector.js +14 -0
- package/dist/parser/impala/index.d.ts +4 -2
- package/dist/parser/impala/index.js +21 -14
- package/dist/parser/mysql/index.d.ts +4 -2
- package/dist/parser/mysql/index.js +10 -14
- package/dist/parser/mysql/mysqlErrorListener.js +6 -2
- package/dist/parser/mysql/mysqlSemanticContextCollector.d.ts +9 -0
- package/dist/parser/mysql/mysqlSemanticContextCollector.js +14 -0
- package/dist/parser/postgresql/index.d.ts +4 -2
- package/dist/parser/postgresql/index.js +51 -42
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +5 -5
- package/dist/parser/postgresql/postgreEntityCollector.js +7 -7
- package/dist/parser/postgresql/postgreErrorListener.js +36 -30
- package/dist/parser/postgresql/postgreSemanticContextCollector.d.ts +9 -0
- package/dist/parser/postgresql/postgreSemanticContextCollector.js +14 -0
- package/dist/parser/spark/index.d.ts +4 -2
- package/dist/parser/spark/index.js +26 -14
- package/dist/parser/spark/sparkErrorListener.js +9 -3
- package/dist/parser/spark/sparkSemanticContextCollector.d.ts +9 -0
- package/dist/parser/spark/sparkSemanticContextCollector.js +14 -0
- package/dist/parser/trino/index.d.ts +4 -2
- package/dist/parser/trino/index.js +22 -14
- package/dist/parser/trino/trinoErrorListener.js +9 -3
- package/dist/parser/trino/trinoSemanticContextCollector.d.ts +9 -0
- package/dist/parser/trino/trinoSemanticContextCollector.js +14 -0
- package/package.json +2 -1
|
@@ -339,9 +339,9 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
339
339
|
static readonly DIGIT_IDENTIFIER = 333;
|
|
340
340
|
static readonly QUOTED_IDENTIFIER = 334;
|
|
341
341
|
static readonly BACKQUOTED_IDENTIFIER = 335;
|
|
342
|
-
static readonly
|
|
342
|
+
static readonly LINE_COMMENT = 336;
|
|
343
343
|
static readonly BRACKETED_COMMENT = 337;
|
|
344
|
-
static readonly
|
|
344
|
+
static readonly WHITE_SPACE = 338;
|
|
345
345
|
static readonly UNRECOGNIZED = 339;
|
|
346
346
|
static readonly DELIMITER = 340;
|
|
347
347
|
static readonly RULE_program = 0;
|
|
@@ -371,130 +371,134 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
371
371
|
static readonly RULE_queryPrimary = 24;
|
|
372
372
|
static readonly RULE_sortItem = 25;
|
|
373
373
|
static readonly RULE_querySpecification = 26;
|
|
374
|
-
static readonly
|
|
375
|
-
static readonly
|
|
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
|
|
374
|
+
static readonly RULE_whereClause = 27;
|
|
375
|
+
static readonly RULE_havingClause = 28;
|
|
376
|
+
static readonly RULE_groupBy = 29;
|
|
377
|
+
static readonly RULE_partitionBy = 30;
|
|
378
|
+
static readonly RULE_groupingElement = 31;
|
|
379
|
+
static readonly RULE_groupingSet = 32;
|
|
380
|
+
static readonly RULE_groupingTerm = 33;
|
|
381
|
+
static readonly RULE_windowDefinition = 34;
|
|
382
|
+
static readonly RULE_windowSpecification = 35;
|
|
383
|
+
static readonly RULE_namedQuery = 36;
|
|
384
|
+
static readonly RULE_setQuantifier = 37;
|
|
385
|
+
static readonly RULE_selectItem = 38;
|
|
386
|
+
static readonly RULE_relation = 39;
|
|
387
|
+
static readonly RULE_joinType = 40;
|
|
388
|
+
static readonly RULE_joinCriteria = 41;
|
|
389
|
+
static readonly RULE_sampledRelation = 42;
|
|
390
|
+
static readonly RULE_sampleType = 43;
|
|
391
|
+
static readonly RULE_trimsSpecification = 44;
|
|
392
|
+
static readonly RULE_listAggOverflowBehavior = 45;
|
|
393
|
+
static readonly RULE_listAggCountIndication = 46;
|
|
394
|
+
static readonly RULE_patternRecognition = 47;
|
|
395
|
+
static readonly RULE_measureDefinition = 48;
|
|
396
|
+
static readonly RULE_rowsPerMatch = 49;
|
|
397
|
+
static readonly RULE_emptyMatchHandling = 50;
|
|
398
|
+
static readonly RULE_skipTo = 51;
|
|
399
|
+
static readonly RULE_subsetDefinition = 52;
|
|
400
|
+
static readonly RULE_variableDefinition = 53;
|
|
401
|
+
static readonly RULE_aliasedRelation = 54;
|
|
402
|
+
static readonly RULE_columnListCreate = 55;
|
|
403
|
+
static readonly RULE_columnList = 56;
|
|
404
|
+
static readonly RULE_columnAliases = 57;
|
|
405
|
+
static readonly RULE_relationPrimary = 58;
|
|
406
|
+
static readonly RULE_jsonTableColumn = 59;
|
|
407
|
+
static readonly RULE_jsonTableSpecificPlan = 60;
|
|
408
|
+
static readonly RULE_jsonTablePathName = 61;
|
|
409
|
+
static readonly RULE_planPrimary = 62;
|
|
410
|
+
static readonly RULE_jsonTableDefaultPlan = 63;
|
|
411
|
+
static readonly RULE_tableFunctionCall = 64;
|
|
412
|
+
static readonly RULE_tableFunctionArgument = 65;
|
|
413
|
+
static readonly RULE_tableArgument = 66;
|
|
414
|
+
static readonly RULE_tableArgumentRelation = 67;
|
|
415
|
+
static readonly RULE_descriptorArgument = 68;
|
|
416
|
+
static readonly RULE_descriptorField = 69;
|
|
417
|
+
static readonly RULE_coPartitionTables = 70;
|
|
418
|
+
static readonly RULE_expression = 71;
|
|
419
|
+
static readonly RULE_booleanExpression = 72;
|
|
420
|
+
static readonly RULE_predicate = 73;
|
|
421
|
+
static readonly RULE_valueExpression = 74;
|
|
422
|
+
static readonly RULE_primaryExpression = 75;
|
|
423
|
+
static readonly RULE_jsonPathInvocation = 76;
|
|
424
|
+
static readonly RULE_jsonValueExpression = 77;
|
|
425
|
+
static readonly RULE_jsonRepresentation = 78;
|
|
426
|
+
static readonly RULE_jsonArgument = 79;
|
|
427
|
+
static readonly RULE_jsonExistsErrorBehavior = 80;
|
|
428
|
+
static readonly RULE_jsonValueBehavior = 81;
|
|
429
|
+
static readonly RULE_jsonQueryWrapperBehavior = 82;
|
|
430
|
+
static readonly RULE_jsonQueryBehavior = 83;
|
|
431
|
+
static readonly RULE_jsonObjectMember = 84;
|
|
432
|
+
static readonly RULE_processingMode = 85;
|
|
433
|
+
static readonly RULE_nullTreatment = 86;
|
|
434
|
+
static readonly RULE_string = 87;
|
|
435
|
+
static readonly RULE_timeZoneSpecifier = 88;
|
|
436
|
+
static readonly RULE_comparisonOperator = 89;
|
|
437
|
+
static readonly RULE_comparisonQuantifier = 90;
|
|
438
|
+
static readonly RULE_booleanValue = 91;
|
|
439
|
+
static readonly RULE_interval = 92;
|
|
440
|
+
static readonly RULE_intervalField = 93;
|
|
441
|
+
static readonly RULE_normalForm = 94;
|
|
442
|
+
static readonly RULE_type = 95;
|
|
443
|
+
static readonly RULE_rowField = 96;
|
|
444
|
+
static readonly RULE_typeParameter = 97;
|
|
445
|
+
static readonly RULE_whenClause = 98;
|
|
446
|
+
static readonly RULE_filter = 99;
|
|
447
|
+
static readonly RULE_mergeCase = 100;
|
|
448
|
+
static readonly RULE_over = 101;
|
|
449
|
+
static readonly RULE_windowFrame = 102;
|
|
450
|
+
static readonly RULE_frameExtent = 103;
|
|
451
|
+
static readonly RULE_frameBound = 104;
|
|
452
|
+
static readonly RULE_rowPattern = 105;
|
|
453
|
+
static readonly RULE_patternPrimary = 106;
|
|
454
|
+
static readonly RULE_patternQuantifier = 107;
|
|
455
|
+
static readonly RULE_updateAssignment = 108;
|
|
456
|
+
static readonly RULE_explainOption = 109;
|
|
457
|
+
static readonly RULE_transactionMode = 110;
|
|
458
|
+
static readonly RULE_levelOfIsolation = 111;
|
|
459
|
+
static readonly RULE_callArgument = 112;
|
|
460
|
+
static readonly RULE_pathElement = 113;
|
|
461
|
+
static readonly RULE_pathSpecification = 114;
|
|
462
|
+
static readonly RULE_functionSpecification = 115;
|
|
463
|
+
static readonly RULE_functionDeclaration = 116;
|
|
464
|
+
static readonly RULE_functionSignature = 117;
|
|
465
|
+
static readonly RULE_parameterDeclaration = 118;
|
|
466
|
+
static readonly RULE_returnsClause = 119;
|
|
467
|
+
static readonly RULE_routineCharacteristic = 120;
|
|
468
|
+
static readonly RULE_controlStatement = 121;
|
|
469
|
+
static readonly RULE_caseStatementWhenClause = 122;
|
|
470
|
+
static readonly RULE_elseIfClause = 123;
|
|
471
|
+
static readonly RULE_elseClause = 124;
|
|
472
|
+
static readonly RULE_variableDeclaration = 125;
|
|
473
|
+
static readonly RULE_sqlStatementList = 126;
|
|
474
|
+
static readonly RULE_privilege = 127;
|
|
475
|
+
static readonly RULE_entityKind = 128;
|
|
476
|
+
static readonly RULE_grantObject = 129;
|
|
477
|
+
static readonly RULE_tableOrViewName = 130;
|
|
478
|
+
static readonly RULE_tableRef = 131;
|
|
479
|
+
static readonly RULE_tableNameCreate = 132;
|
|
480
|
+
static readonly RULE_viewRef = 133;
|
|
481
|
+
static readonly RULE_viewNameCreate = 134;
|
|
482
|
+
static readonly RULE_schemaRef = 135;
|
|
483
|
+
static readonly RULE_schemaNameCreate = 136;
|
|
484
|
+
static readonly RULE_catalogRef = 137;
|
|
485
|
+
static readonly RULE_catalogNameCreate = 138;
|
|
486
|
+
static readonly RULE_functionName = 139;
|
|
487
|
+
static readonly RULE_functionNameCreate = 140;
|
|
488
|
+
static readonly RULE_columnRef = 141;
|
|
489
|
+
static readonly RULE_columnName = 142;
|
|
490
|
+
static readonly RULE_columnNameCreate = 143;
|
|
491
|
+
static readonly RULE_qualifiedName = 144;
|
|
492
|
+
static readonly RULE_queryPeriod = 145;
|
|
493
|
+
static readonly RULE_rangeType = 146;
|
|
494
|
+
static readonly RULE_grantor = 147;
|
|
495
|
+
static readonly RULE_principal = 148;
|
|
496
|
+
static readonly RULE_roles = 149;
|
|
497
|
+
static readonly RULE_privilegeOrRole = 150;
|
|
498
|
+
static readonly RULE_identifier = 151;
|
|
499
|
+
static readonly RULE_number = 152;
|
|
500
|
+
static readonly RULE_authorizationUser = 153;
|
|
501
|
+
static readonly RULE_nonReserved = 154;
|
|
498
502
|
static readonly literalNames: (string | null)[];
|
|
499
503
|
static readonly symbolicNames: (string | null)[];
|
|
500
504
|
static readonly ruleNames: string[];
|
|
@@ -533,7 +537,10 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
533
537
|
queryPrimary(): QueryPrimaryContext;
|
|
534
538
|
sortItem(): SortItemContext;
|
|
535
539
|
querySpecification(): QuerySpecificationContext;
|
|
540
|
+
whereClause(): WhereClauseContext;
|
|
541
|
+
havingClause(): HavingClauseContext;
|
|
536
542
|
groupBy(): GroupByContext;
|
|
543
|
+
partitionBy(): PartitionByContext;
|
|
537
544
|
groupingElement(): GroupingElementContext;
|
|
538
545
|
groupingSet(): GroupingSetContext;
|
|
539
546
|
groupingTerm(): GroupingTermContext;
|
|
@@ -550,7 +557,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
550
557
|
sampleType(): SampleTypeContext;
|
|
551
558
|
trimsSpecification(): TrimsSpecificationContext;
|
|
552
559
|
listAggOverflowBehavior(): ListAggOverflowBehaviorContext;
|
|
553
|
-
|
|
560
|
+
listAggCountIndication(): ListAggCountIndicationContext;
|
|
554
561
|
patternRecognition(): PatternRecognitionContext;
|
|
555
562
|
measureDefinition(): MeasureDefinitionContext;
|
|
556
563
|
rowsPerMatch(): RowsPerMatchContext;
|
|
@@ -574,7 +581,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
574
581
|
tableArgumentRelation(): TableArgumentRelationContext;
|
|
575
582
|
descriptorArgument(): DescriptorArgumentContext;
|
|
576
583
|
descriptorField(): DescriptorFieldContext;
|
|
577
|
-
|
|
584
|
+
coPartitionTables(): CoPartitionTablesContext;
|
|
578
585
|
expression(): ExpressionContext;
|
|
579
586
|
booleanExpression(): BooleanExpressionContext;
|
|
580
587
|
booleanExpression(_p: number): BooleanExpressionContext;
|
|
@@ -651,6 +658,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
651
658
|
functionName(): FunctionNameContext;
|
|
652
659
|
functionNameCreate(): FunctionNameCreateContext;
|
|
653
660
|
columnRef(): ColumnRefContext;
|
|
661
|
+
columnName(): ColumnNameContext;
|
|
654
662
|
columnNameCreate(): ColumnNameCreateContext;
|
|
655
663
|
qualifiedName(): QualifiedNameContext;
|
|
656
664
|
queryPeriod(): QueryPeriodContext;
|
|
@@ -1490,15 +1498,13 @@ export declare class DropFunctionContext extends StatementContext {
|
|
|
1490
1498
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
1491
1499
|
}
|
|
1492
1500
|
export declare class UpdateContext extends StatementContext {
|
|
1493
|
-
_where?: BooleanExpressionContext;
|
|
1494
1501
|
constructor(ctx: StatementContext);
|
|
1495
1502
|
KW_UPDATE(): antlr.TerminalNode;
|
|
1496
1503
|
tableRef(): TableRefContext;
|
|
1497
1504
|
KW_SET(): antlr.TerminalNode;
|
|
1498
1505
|
updateAssignment(): UpdateAssignmentContext[];
|
|
1499
1506
|
updateAssignment(i: number): UpdateAssignmentContext | null;
|
|
1500
|
-
|
|
1501
|
-
booleanExpression(): BooleanExpressionContext | null;
|
|
1507
|
+
whereClause(): WhereClauseContext | null;
|
|
1502
1508
|
enterRule(listener: TrinoSqlListener): void;
|
|
1503
1509
|
exitRule(listener: TrinoSqlListener): void;
|
|
1504
1510
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
@@ -1506,15 +1512,13 @@ export declare class UpdateContext extends StatementContext {
|
|
|
1506
1512
|
export declare class TableExecuteContext extends StatementContext {
|
|
1507
1513
|
_tableName?: TableRefContext;
|
|
1508
1514
|
_procedureName?: FunctionNameContext;
|
|
1509
|
-
_where?: BooleanExpressionContext;
|
|
1510
1515
|
constructor(ctx: StatementContext);
|
|
1511
1516
|
KW_ALTER(): antlr.TerminalNode;
|
|
1512
1517
|
KW_TABLE(): antlr.TerminalNode;
|
|
1513
1518
|
KW_EXECUTE(): antlr.TerminalNode;
|
|
1514
1519
|
tableRef(): TableRefContext;
|
|
1515
1520
|
functionName(): FunctionNameContext;
|
|
1516
|
-
|
|
1517
|
-
booleanExpression(): BooleanExpressionContext | null;
|
|
1521
|
+
whereClause(): WhereClauseContext | null;
|
|
1518
1522
|
callArgument(): CallArgumentContext[];
|
|
1519
1523
|
callArgument(i: number): CallArgumentContext | null;
|
|
1520
1524
|
enterRule(listener: TrinoSqlListener): void;
|
|
@@ -1526,8 +1530,7 @@ export declare class DeleteContext extends StatementContext {
|
|
|
1526
1530
|
KW_DELETE(): antlr.TerminalNode;
|
|
1527
1531
|
KW_FROM(): antlr.TerminalNode;
|
|
1528
1532
|
tableRef(): TableRefContext;
|
|
1529
|
-
|
|
1530
|
-
booleanExpression(): BooleanExpressionContext | null;
|
|
1533
|
+
whereClause(): WhereClauseContext | null;
|
|
1531
1534
|
enterRule(listener: TrinoSqlListener): void;
|
|
1532
1535
|
exitRule(listener: TrinoSqlListener): void;
|
|
1533
1536
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
@@ -2137,8 +2140,6 @@ export declare class SortItemContext extends antlr.ParserRuleContext {
|
|
|
2137
2140
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2138
2141
|
}
|
|
2139
2142
|
export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
|
|
2140
|
-
_where?: BooleanExpressionContext;
|
|
2141
|
-
_having?: BooleanExpressionContext;
|
|
2142
2143
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2143
2144
|
KW_SELECT(): antlr.TerminalNode;
|
|
2144
2145
|
selectItem(): SelectItemContext[];
|
|
@@ -2147,16 +2148,34 @@ export declare class QuerySpecificationContext extends antlr.ParserRuleContext {
|
|
|
2147
2148
|
KW_FROM(): antlr.TerminalNode | null;
|
|
2148
2149
|
relation(): RelationContext[];
|
|
2149
2150
|
relation(i: number): RelationContext | null;
|
|
2150
|
-
|
|
2151
|
+
whereClause(): WhereClauseContext | null;
|
|
2151
2152
|
KW_GROUP(): antlr.TerminalNode | null;
|
|
2152
2153
|
KW_BY(): antlr.TerminalNode | null;
|
|
2153
2154
|
groupBy(): GroupByContext | null;
|
|
2154
|
-
|
|
2155
|
+
havingClause(): HavingClauseContext | null;
|
|
2155
2156
|
KW_WINDOW(): antlr.TerminalNode | null;
|
|
2156
2157
|
windowDefinition(): WindowDefinitionContext[];
|
|
2157
2158
|
windowDefinition(i: number): WindowDefinitionContext | null;
|
|
2158
|
-
|
|
2159
|
-
|
|
2159
|
+
get ruleIndex(): number;
|
|
2160
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2161
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2162
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2163
|
+
}
|
|
2164
|
+
export declare class WhereClauseContext extends antlr.ParserRuleContext {
|
|
2165
|
+
_where?: BooleanExpressionContext;
|
|
2166
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2167
|
+
KW_WHERE(): antlr.TerminalNode;
|
|
2168
|
+
booleanExpression(): BooleanExpressionContext;
|
|
2169
|
+
get ruleIndex(): number;
|
|
2170
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2171
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2172
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2173
|
+
}
|
|
2174
|
+
export declare class HavingClauseContext extends antlr.ParserRuleContext {
|
|
2175
|
+
_having?: BooleanExpressionContext;
|
|
2176
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2177
|
+
KW_HAVING(): antlr.TerminalNode;
|
|
2178
|
+
booleanExpression(): BooleanExpressionContext;
|
|
2160
2179
|
get ruleIndex(): number;
|
|
2161
2180
|
enterRule(listener: TrinoSqlListener): void;
|
|
2162
2181
|
exitRule(listener: TrinoSqlListener): void;
|
|
@@ -2172,6 +2191,15 @@ export declare class GroupByContext extends antlr.ParserRuleContext {
|
|
|
2172
2191
|
exitRule(listener: TrinoSqlListener): void;
|
|
2173
2192
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2174
2193
|
}
|
|
2194
|
+
export declare class PartitionByContext extends antlr.ParserRuleContext {
|
|
2195
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2196
|
+
expression(): ExpressionContext[];
|
|
2197
|
+
expression(i: number): ExpressionContext | null;
|
|
2198
|
+
get ruleIndex(): number;
|
|
2199
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2200
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2201
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2202
|
+
}
|
|
2175
2203
|
export declare class GroupingElementContext extends antlr.ParserRuleContext {
|
|
2176
2204
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2177
2205
|
get ruleIndex(): number;
|
|
@@ -2243,19 +2271,16 @@ export declare class WindowDefinitionContext extends antlr.ParserRuleContext {
|
|
|
2243
2271
|
}
|
|
2244
2272
|
export declare class WindowSpecificationContext extends antlr.ParserRuleContext {
|
|
2245
2273
|
_existingWindowName?: IdentifierContext;
|
|
2246
|
-
_expression?: ExpressionContext;
|
|
2247
|
-
_partition: ExpressionContext[];
|
|
2248
2274
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2249
2275
|
KW_PARTITION(): antlr.TerminalNode | null;
|
|
2250
2276
|
KW_BY(): antlr.TerminalNode[];
|
|
2251
2277
|
KW_BY(i: number): antlr.TerminalNode | null;
|
|
2278
|
+
partitionBy(): PartitionByContext | null;
|
|
2252
2279
|
KW_ORDER(): antlr.TerminalNode | null;
|
|
2253
2280
|
sortItem(): SortItemContext[];
|
|
2254
2281
|
sortItem(i: number): SortItemContext | null;
|
|
2255
2282
|
windowFrame(): WindowFrameContext | null;
|
|
2256
2283
|
identifier(): IdentifierContext | null;
|
|
2257
|
-
expression(): ExpressionContext[];
|
|
2258
|
-
expression(i: number): ExpressionContext | null;
|
|
2259
2284
|
get ruleIndex(): number;
|
|
2260
2285
|
enterRule(listener: TrinoSqlListener): void;
|
|
2261
2286
|
exitRule(listener: TrinoSqlListener): void;
|
|
@@ -2396,14 +2421,14 @@ export declare class ListAggOverflowBehaviorContext extends antlr.ParserRuleCont
|
|
|
2396
2421
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2397
2422
|
KW_ERROR(): antlr.TerminalNode | null;
|
|
2398
2423
|
KW_TRUNCATE(): antlr.TerminalNode | null;
|
|
2399
|
-
|
|
2424
|
+
listAggCountIndication(): ListAggCountIndicationContext | null;
|
|
2400
2425
|
string(): StringContext | null;
|
|
2401
2426
|
get ruleIndex(): number;
|
|
2402
2427
|
enterRule(listener: TrinoSqlListener): void;
|
|
2403
2428
|
exitRule(listener: TrinoSqlListener): void;
|
|
2404
2429
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2405
2430
|
}
|
|
2406
|
-
export declare class
|
|
2431
|
+
export declare class ListAggCountIndicationContext extends antlr.ParserRuleContext {
|
|
2407
2432
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2408
2433
|
KW_WITH(): antlr.TerminalNode | null;
|
|
2409
2434
|
KW_COUNT(): antlr.TerminalNode;
|
|
@@ -2414,8 +2439,6 @@ export declare class ListaggCountIndicationContext extends antlr.ParserRuleConte
|
|
|
2414
2439
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2415
2440
|
}
|
|
2416
2441
|
export declare class PatternRecognitionContext extends antlr.ParserRuleContext {
|
|
2417
|
-
_expression?: ExpressionContext;
|
|
2418
|
-
_partition: ExpressionContext[];
|
|
2419
2442
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2420
2443
|
aliasedRelation(): AliasedRelationContext;
|
|
2421
2444
|
KW_MATCH_RECOGNIZE(): antlr.TerminalNode | null;
|
|
@@ -2427,6 +2450,7 @@ export declare class PatternRecognitionContext extends antlr.ParserRuleContext {
|
|
|
2427
2450
|
KW_PARTITION(): antlr.TerminalNode | null;
|
|
2428
2451
|
KW_BY(): antlr.TerminalNode[];
|
|
2429
2452
|
KW_BY(i: number): antlr.TerminalNode | null;
|
|
2453
|
+
partitionBy(): PartitionByContext | null;
|
|
2430
2454
|
KW_ORDER(): antlr.TerminalNode | null;
|
|
2431
2455
|
sortItem(): SortItemContext[];
|
|
2432
2456
|
sortItem(i: number): SortItemContext | null;
|
|
@@ -2441,8 +2465,6 @@ export declare class PatternRecognitionContext extends antlr.ParserRuleContext {
|
|
|
2441
2465
|
subsetDefinition(): SubsetDefinitionContext[];
|
|
2442
2466
|
subsetDefinition(i: number): SubsetDefinitionContext | null;
|
|
2443
2467
|
identifier(): IdentifierContext | null;
|
|
2444
|
-
expression(): ExpressionContext[];
|
|
2445
|
-
expression(i: number): ExpressionContext | null;
|
|
2446
2468
|
KW_INITIAL(): antlr.TerminalNode | null;
|
|
2447
2469
|
KW_SEEK(): antlr.TerminalNode | null;
|
|
2448
2470
|
KW_AS(): antlr.TerminalNode | null;
|
|
@@ -2788,8 +2810,8 @@ export declare class TableFunctionCallContext extends antlr.ParserRuleContext {
|
|
|
2788
2810
|
tableFunctionArgument(): TableFunctionArgumentContext[];
|
|
2789
2811
|
tableFunctionArgument(i: number): TableFunctionArgumentContext | null;
|
|
2790
2812
|
KW_COPARTITION(): antlr.TerminalNode | null;
|
|
2791
|
-
|
|
2792
|
-
|
|
2813
|
+
coPartitionTables(): CoPartitionTablesContext[];
|
|
2814
|
+
coPartitionTables(i: number): CoPartitionTablesContext | null;
|
|
2793
2815
|
get ruleIndex(): number;
|
|
2794
2816
|
enterRule(listener: TrinoSqlListener): void;
|
|
2795
2817
|
exitRule(listener: TrinoSqlListener): void;
|
|
@@ -2817,10 +2839,10 @@ export declare class TableArgumentContext extends antlr.ParserRuleContext {
|
|
|
2817
2839
|
KW_EMPTY(): antlr.TerminalNode | null;
|
|
2818
2840
|
KW_KEEP(): antlr.TerminalNode | null;
|
|
2819
2841
|
KW_ORDER(): antlr.TerminalNode | null;
|
|
2820
|
-
expression(): ExpressionContext
|
|
2821
|
-
expression(i: number): ExpressionContext | null;
|
|
2842
|
+
expression(): ExpressionContext | null;
|
|
2822
2843
|
sortItem(): SortItemContext[];
|
|
2823
2844
|
sortItem(i: number): SortItemContext | null;
|
|
2845
|
+
partitionBy(): PartitionByContext | null;
|
|
2824
2846
|
get ruleIndex(): number;
|
|
2825
2847
|
enterRule(listener: TrinoSqlListener): void;
|
|
2826
2848
|
exitRule(listener: TrinoSqlListener): void;
|
|
@@ -2875,7 +2897,7 @@ export declare class DescriptorFieldContext extends antlr.ParserRuleContext {
|
|
|
2875
2897
|
exitRule(listener: TrinoSqlListener): void;
|
|
2876
2898
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2877
2899
|
}
|
|
2878
|
-
export declare class
|
|
2900
|
+
export declare class CoPartitionTablesContext extends antlr.ParserRuleContext {
|
|
2879
2901
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2880
2902
|
qualifiedName(): QualifiedNameContext[];
|
|
2881
2903
|
qualifiedName(i: number): QualifiedNameContext | null;
|
|
@@ -3208,6 +3230,27 @@ export declare class LocalTimestampContext extends PrimaryExpressionContext {
|
|
|
3208
3230
|
exitRule(listener: TrinoSqlListener): void;
|
|
3209
3231
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
3210
3232
|
}
|
|
3233
|
+
export declare class ListAggContext extends PrimaryExpressionContext {
|
|
3234
|
+
_name?: Token | null;
|
|
3235
|
+
constructor(ctx: PrimaryExpressionContext);
|
|
3236
|
+
expression(): ExpressionContext;
|
|
3237
|
+
KW_LISTAGG(): antlr.TerminalNode;
|
|
3238
|
+
KW_WITHIN(): antlr.TerminalNode | null;
|
|
3239
|
+
KW_GROUP(): antlr.TerminalNode | null;
|
|
3240
|
+
KW_ORDER(): antlr.TerminalNode | null;
|
|
3241
|
+
KW_BY(): antlr.TerminalNode | null;
|
|
3242
|
+
sortItem(): SortItemContext[];
|
|
3243
|
+
sortItem(i: number): SortItemContext | null;
|
|
3244
|
+
setQuantifier(): SetQuantifierContext | null;
|
|
3245
|
+
string(): StringContext | null;
|
|
3246
|
+
KW_ON(): antlr.TerminalNode | null;
|
|
3247
|
+
KW_OVERFLOW(): antlr.TerminalNode | null;
|
|
3248
|
+
listAggOverflowBehavior(): ListAggOverflowBehaviorContext | null;
|
|
3249
|
+
filter(): FilterContext | null;
|
|
3250
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
3251
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
3252
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
3253
|
+
}
|
|
3211
3254
|
export declare class JsonObjectContext extends PrimaryExpressionContext {
|
|
3212
3255
|
constructor(ctx: PrimaryExpressionContext);
|
|
3213
3256
|
KW_JSON_OBJECT(): antlr.TerminalNode;
|
|
@@ -3284,7 +3327,7 @@ export declare class SimpleCaseContext extends PrimaryExpressionContext {
|
|
|
3284
3327
|
}
|
|
3285
3328
|
export declare class ColumnReferenceContext extends PrimaryExpressionContext {
|
|
3286
3329
|
constructor(ctx: PrimaryExpressionContext);
|
|
3287
|
-
|
|
3330
|
+
columnName(): ColumnNameContext;
|
|
3288
3331
|
enterRule(listener: TrinoSqlListener): void;
|
|
3289
3332
|
exitRule(listener: TrinoSqlListener): void;
|
|
3290
3333
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
@@ -3494,27 +3537,6 @@ export declare class PositionContext extends PrimaryExpressionContext {
|
|
|
3494
3537
|
exitRule(listener: TrinoSqlListener): void;
|
|
3495
3538
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
3496
3539
|
}
|
|
3497
|
-
export declare class ListaggContext extends PrimaryExpressionContext {
|
|
3498
|
-
_name?: Token | null;
|
|
3499
|
-
constructor(ctx: PrimaryExpressionContext);
|
|
3500
|
-
expression(): ExpressionContext;
|
|
3501
|
-
KW_LISTAGG(): antlr.TerminalNode;
|
|
3502
|
-
KW_WITHIN(): antlr.TerminalNode | null;
|
|
3503
|
-
KW_GROUP(): antlr.TerminalNode | null;
|
|
3504
|
-
KW_ORDER(): antlr.TerminalNode | null;
|
|
3505
|
-
KW_BY(): antlr.TerminalNode | null;
|
|
3506
|
-
sortItem(): SortItemContext[];
|
|
3507
|
-
sortItem(i: number): SortItemContext | null;
|
|
3508
|
-
setQuantifier(): SetQuantifierContext | null;
|
|
3509
|
-
string(): StringContext | null;
|
|
3510
|
-
KW_ON(): antlr.TerminalNode | null;
|
|
3511
|
-
KW_OVERFLOW(): antlr.TerminalNode | null;
|
|
3512
|
-
listAggOverflowBehavior(): ListAggOverflowBehaviorContext | null;
|
|
3513
|
-
filter(): FilterContext | null;
|
|
3514
|
-
enterRule(listener: TrinoSqlListener): void;
|
|
3515
|
-
exitRule(listener: TrinoSqlListener): void;
|
|
3516
|
-
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
3517
|
-
}
|
|
3518
3540
|
export declare class SearchedCaseContext extends PrimaryExpressionContext {
|
|
3519
3541
|
_elseExpression?: ExpressionContext;
|
|
3520
3542
|
constructor(ctx: PrimaryExpressionContext);
|
|
@@ -3923,8 +3945,7 @@ export declare class WhenClauseContext extends antlr.ParserRuleContext {
|
|
|
3923
3945
|
export declare class FilterContext extends antlr.ParserRuleContext {
|
|
3924
3946
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
3925
3947
|
KW_FILTER(): antlr.TerminalNode;
|
|
3926
|
-
|
|
3927
|
-
booleanExpression(): BooleanExpressionContext;
|
|
3948
|
+
whereClause(): WhereClauseContext;
|
|
3928
3949
|
get ruleIndex(): number;
|
|
3929
3950
|
enterRule(listener: TrinoSqlListener): void;
|
|
3930
3951
|
exitRule(listener: TrinoSqlListener): void;
|
|
@@ -4802,6 +4823,14 @@ export declare class ColumnRefContext extends antlr.ParserRuleContext {
|
|
|
4802
4823
|
exitRule(listener: TrinoSqlListener): void;
|
|
4803
4824
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
4804
4825
|
}
|
|
4826
|
+
export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
4827
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4828
|
+
qualifiedName(): QualifiedNameContext;
|
|
4829
|
+
get ruleIndex(): number;
|
|
4830
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
4831
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
4832
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
4833
|
+
}
|
|
4805
4834
|
export declare class ColumnNameCreateContext extends antlr.ParserRuleContext {
|
|
4806
4835
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4807
4836
|
identifier(): IdentifierContext;
|