dt-sql-parser 4.5.1-beta.3 → 4.5.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/dist/lib/SQLParserBase.d.ts +9 -0
- package/dist/lib/SQLParserBase.js +15 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +54 -30
- package/dist/lib/hive/HiveSqlParser.js +5633 -5467
- package/dist/lib/hive/HiveSqlParserListener.d.ts +22 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +14 -0
- package/dist/lib/mysql/MySqlParser.d.ts +31 -8
- package/dist/lib/mysql/MySqlParser.js +5786 -5659
- package/dist/lib/mysql/MySqlParserListener.d.ts +33 -5
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +20 -3
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +19 -2
- package/dist/lib/postgresql/PostgreSqlParser.js +1857 -1756
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +20 -5
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +12 -3
- package/dist/lib/trino/TrinoSqlListener.d.ts +33 -0
- package/dist/lib/trino/TrinoSqlParser.d.ts +155 -114
- package/dist/lib/trino/TrinoSqlParser.js +4747 -4494
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +21 -0
- package/dist/parser/common/basicSQL.d.ts +3 -0
- package/dist/parser/common/basicSQL.js +47 -1
- package/dist/parser/flink/index.js +1 -1
- package/dist/parser/generic/index.js +1 -1
- package/dist/parser/hive/index.js +1 -1
- package/dist/parser/impala/index.js +1 -1
- package/dist/parser/mysql/index.js +15 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +5 -0
- package/dist/parser/postgresql/index.js +3 -2
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +2 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +5 -0
- package/dist/parser/spark/index.js +1 -1
- package/dist/parser/trino/index.js +4 -2
- package/package.json +1 -1
|
@@ -420,7 +420,8 @@ import { ProcedureNameContext } from "./PostgreSqlParser.js";
|
|
|
420
420
|
import { ProcedureNameCreateContext } from "./PostgreSqlParser.js";
|
|
421
421
|
import { EmptyColumnContext } from "./PostgreSqlParser.js";
|
|
422
422
|
import { ColumnNameContext } from "./PostgreSqlParser.js";
|
|
423
|
-
import {
|
|
423
|
+
import { ColumnNamePath_defaultContext } from "./PostgreSqlParser.js";
|
|
424
|
+
import { ColumnNamePath_dot_emptyContext } from "./PostgreSqlParser.js";
|
|
424
425
|
import { ColumnNameCreateContext } from "./PostgreSqlParser.js";
|
|
425
426
|
import { FunctionNameCreateContext } from "./PostgreSqlParser.js";
|
|
426
427
|
import { FunctionNameContext } from "./PostgreSqlParser.js";
|
|
@@ -4761,15 +4762,29 @@ export declare class PostgreSqlParserListener implements ParseTreeListener {
|
|
|
4761
4762
|
*/
|
|
4762
4763
|
exitColumnName?: (ctx: ColumnNameContext) => void;
|
|
4763
4764
|
/**
|
|
4764
|
-
* Enter a parse tree produced by `
|
|
4765
|
+
* Enter a parse tree produced by the `columnNamePath_default`
|
|
4766
|
+
* labeled alternative in `PostgreSqlParser.columnNamePath`.
|
|
4765
4767
|
* @param ctx the parse tree
|
|
4766
4768
|
*/
|
|
4767
|
-
|
|
4769
|
+
enterColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
|
|
4768
4770
|
/**
|
|
4769
|
-
* Exit a parse tree produced by `
|
|
4771
|
+
* Exit a parse tree produced by the `columnNamePath_default`
|
|
4772
|
+
* labeled alternative in `PostgreSqlParser.columnNamePath`.
|
|
4770
4773
|
* @param ctx the parse tree
|
|
4771
4774
|
*/
|
|
4772
|
-
|
|
4775
|
+
exitColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
|
|
4776
|
+
/**
|
|
4777
|
+
* Enter a parse tree produced by the `columnNamePath_dot_empty`
|
|
4778
|
+
* labeled alternative in `PostgreSqlParser.columnNamePath`.
|
|
4779
|
+
* @param ctx the parse tree
|
|
4780
|
+
*/
|
|
4781
|
+
enterColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => void;
|
|
4782
|
+
/**
|
|
4783
|
+
* Exit a parse tree produced by the `columnNamePath_dot_empty`
|
|
4784
|
+
* labeled alternative in `PostgreSqlParser.columnNamePath`.
|
|
4785
|
+
* @param ctx the parse tree
|
|
4786
|
+
*/
|
|
4787
|
+
exitColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => void;
|
|
4773
4788
|
/**
|
|
4774
4789
|
* Enter a parse tree produced by `PostgreSqlParser.columnNameCreate`.
|
|
4775
4790
|
* @param ctx the parse tree
|
|
@@ -420,7 +420,8 @@ import { ProcedureNameContext } from "./PostgreSqlParser.js";
|
|
|
420
420
|
import { ProcedureNameCreateContext } from "./PostgreSqlParser.js";
|
|
421
421
|
import { EmptyColumnContext } from "./PostgreSqlParser.js";
|
|
422
422
|
import { ColumnNameContext } from "./PostgreSqlParser.js";
|
|
423
|
-
import {
|
|
423
|
+
import { ColumnNamePath_defaultContext } from "./PostgreSqlParser.js";
|
|
424
|
+
import { ColumnNamePath_dot_emptyContext } from "./PostgreSqlParser.js";
|
|
424
425
|
import { ColumnNameCreateContext } from "./PostgreSqlParser.js";
|
|
425
426
|
import { FunctionNameCreateContext } from "./PostgreSqlParser.js";
|
|
426
427
|
import { FunctionNameContext } from "./PostgreSqlParser.js";
|
|
@@ -3051,11 +3052,19 @@ export declare class PostgreSqlParserVisitor<Result> extends AbstractParseTreeVi
|
|
|
3051
3052
|
*/
|
|
3052
3053
|
visitColumnName?: (ctx: ColumnNameContext) => Result;
|
|
3053
3054
|
/**
|
|
3054
|
-
* Visit a parse tree produced by `
|
|
3055
|
+
* Visit a parse tree produced by the `columnNamePath_default`
|
|
3056
|
+
* labeled alternative in `PostgreSqlParser.columnNamePath`.
|
|
3055
3057
|
* @param ctx the parse tree
|
|
3056
3058
|
* @return the visitor result
|
|
3057
3059
|
*/
|
|
3058
|
-
|
|
3060
|
+
visitColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => Result;
|
|
3061
|
+
/**
|
|
3062
|
+
* Visit a parse tree produced by the `columnNamePath_dot_empty`
|
|
3063
|
+
* labeled alternative in `PostgreSqlParser.columnNamePath`.
|
|
3064
|
+
* @param ctx the parse tree
|
|
3065
|
+
* @return the visitor result
|
|
3066
|
+
*/
|
|
3067
|
+
visitColumnNamePath_dot_empty?: (ctx: ColumnNamePath_dot_emptyContext) => Result;
|
|
3059
3068
|
/**
|
|
3060
3069
|
* Visit a parse tree produced by `PostgreSqlParser.columnNameCreate`.
|
|
3061
3070
|
* @param ctx the parse tree
|
|
@@ -138,6 +138,8 @@ import { RelationDefaultContext } from "./TrinoSqlParser.js";
|
|
|
138
138
|
import { JoinRelationContext } from "./TrinoSqlParser.js";
|
|
139
139
|
import { JoinTypeContext } from "./TrinoSqlParser.js";
|
|
140
140
|
import { JoinCriteriaContext } from "./TrinoSqlParser.js";
|
|
141
|
+
import { JoinColumnEqualityContext } from "./TrinoSqlParser.js";
|
|
142
|
+
import { JoinColumnReferenceContext } from "./TrinoSqlParser.js";
|
|
141
143
|
import { SampledRelationContext } from "./TrinoSqlParser.js";
|
|
142
144
|
import { SampleTypeContext } from "./TrinoSqlParser.js";
|
|
143
145
|
import { TrimsSpecificationContext } from "./TrinoSqlParser.js";
|
|
@@ -356,6 +358,7 @@ import { CatalogNameCreateContext } from "./TrinoSqlParser.js";
|
|
|
356
358
|
import { FunctionNameContext } from "./TrinoSqlParser.js";
|
|
357
359
|
import { FunctionNameCreateContext } from "./TrinoSqlParser.js";
|
|
358
360
|
import { ColumnRefContext } from "./TrinoSqlParser.js";
|
|
361
|
+
import { EmptyColumnContext } from "./TrinoSqlParser.js";
|
|
359
362
|
import { ColumnNameContext } from "./TrinoSqlParser.js";
|
|
360
363
|
import { ColumnNameCreateContext } from "./TrinoSqlParser.js";
|
|
361
364
|
import { QualifiedNameContext } from "./TrinoSqlParser.js";
|
|
@@ -1972,6 +1975,26 @@ export declare class TrinoSqlListener implements ParseTreeListener {
|
|
|
1972
1975
|
* @param ctx the parse tree
|
|
1973
1976
|
*/
|
|
1974
1977
|
exitJoinCriteria?: (ctx: JoinCriteriaContext) => void;
|
|
1978
|
+
/**
|
|
1979
|
+
* Enter a parse tree produced by `TrinoSqlParser.joinColumnEquality`.
|
|
1980
|
+
* @param ctx the parse tree
|
|
1981
|
+
*/
|
|
1982
|
+
enterJoinColumnEquality?: (ctx: JoinColumnEqualityContext) => void;
|
|
1983
|
+
/**
|
|
1984
|
+
* Exit a parse tree produced by `TrinoSqlParser.joinColumnEquality`.
|
|
1985
|
+
* @param ctx the parse tree
|
|
1986
|
+
*/
|
|
1987
|
+
exitJoinColumnEquality?: (ctx: JoinColumnEqualityContext) => void;
|
|
1988
|
+
/**
|
|
1989
|
+
* Enter a parse tree produced by `TrinoSqlParser.joinColumnReference`.
|
|
1990
|
+
* @param ctx the parse tree
|
|
1991
|
+
*/
|
|
1992
|
+
enterJoinColumnReference?: (ctx: JoinColumnReferenceContext) => void;
|
|
1993
|
+
/**
|
|
1994
|
+
* Exit a parse tree produced by `TrinoSqlParser.joinColumnReference`.
|
|
1995
|
+
* @param ctx the parse tree
|
|
1996
|
+
*/
|
|
1997
|
+
exitJoinColumnReference?: (ctx: JoinColumnReferenceContext) => void;
|
|
1975
1998
|
/**
|
|
1976
1999
|
* Enter a parse tree produced by `TrinoSqlParser.sampledRelation`.
|
|
1977
2000
|
* @param ctx the parse tree
|
|
@@ -4434,6 +4457,16 @@ export declare class TrinoSqlListener implements ParseTreeListener {
|
|
|
4434
4457
|
* @param ctx the parse tree
|
|
4435
4458
|
*/
|
|
4436
4459
|
exitColumnRef?: (ctx: ColumnRefContext) => void;
|
|
4460
|
+
/**
|
|
4461
|
+
* Enter a parse tree produced by `TrinoSqlParser.emptyColumn`.
|
|
4462
|
+
* @param ctx the parse tree
|
|
4463
|
+
*/
|
|
4464
|
+
enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
|
|
4465
|
+
/**
|
|
4466
|
+
* Exit a parse tree produced by `TrinoSqlParser.emptyColumn`.
|
|
4467
|
+
* @param ctx the parse tree
|
|
4468
|
+
*/
|
|
4469
|
+
exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
|
|
4437
4470
|
/**
|
|
4438
4471
|
* Enter a parse tree produced by `TrinoSqlParser.columnName`.
|
|
4439
4472
|
* @param ctx the parse tree
|
|
@@ -345,6 +345,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
345
345
|
static readonly WHITE_SPACE = 339;
|
|
346
346
|
static readonly UNRECOGNIZED = 340;
|
|
347
347
|
static readonly DELIMITER = 341;
|
|
348
|
+
static readonly DOT = 342;
|
|
348
349
|
static readonly RULE_program = 0;
|
|
349
350
|
static readonly RULE_statements = 1;
|
|
350
351
|
static readonly RULE_singleStatement = 2;
|
|
@@ -392,120 +393,123 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
392
393
|
static readonly RULE_relation = 44;
|
|
393
394
|
static readonly RULE_joinType = 45;
|
|
394
395
|
static readonly RULE_joinCriteria = 46;
|
|
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
|
|
502
|
-
static readonly
|
|
503
|
-
static readonly
|
|
504
|
-
static readonly
|
|
505
|
-
static readonly
|
|
506
|
-
static readonly
|
|
507
|
-
static readonly
|
|
508
|
-
static readonly
|
|
396
|
+
static readonly RULE_joinColumnEquality = 47;
|
|
397
|
+
static readonly RULE_joinColumnReference = 48;
|
|
398
|
+
static readonly RULE_sampledRelation = 49;
|
|
399
|
+
static readonly RULE_sampleType = 50;
|
|
400
|
+
static readonly RULE_trimsSpecification = 51;
|
|
401
|
+
static readonly RULE_listAggOverflowBehavior = 52;
|
|
402
|
+
static readonly RULE_listAggCountIndication = 53;
|
|
403
|
+
static readonly RULE_patternRecognition = 54;
|
|
404
|
+
static readonly RULE_measureDefinition = 55;
|
|
405
|
+
static readonly RULE_rowsPerMatch = 56;
|
|
406
|
+
static readonly RULE_emptyMatchHandling = 57;
|
|
407
|
+
static readonly RULE_skipTo = 58;
|
|
408
|
+
static readonly RULE_subsetDefinition = 59;
|
|
409
|
+
static readonly RULE_variableDefinition = 60;
|
|
410
|
+
static readonly RULE_aliasedRelation = 61;
|
|
411
|
+
static readonly RULE_columnListCreate = 62;
|
|
412
|
+
static readonly RULE_columnList = 63;
|
|
413
|
+
static readonly RULE_columnAliases = 64;
|
|
414
|
+
static readonly RULE_relationPrimary = 65;
|
|
415
|
+
static readonly RULE_relationSourceTable = 66;
|
|
416
|
+
static readonly RULE_jsonTableColumn = 67;
|
|
417
|
+
static readonly RULE_jsonTableSpecificPlan = 68;
|
|
418
|
+
static readonly RULE_jsonTablePathName = 69;
|
|
419
|
+
static readonly RULE_planPrimary = 70;
|
|
420
|
+
static readonly RULE_jsonTableDefaultPlan = 71;
|
|
421
|
+
static readonly RULE_tableFunctionCall = 72;
|
|
422
|
+
static readonly RULE_tableFunctionArgument = 73;
|
|
423
|
+
static readonly RULE_tableArgument = 74;
|
|
424
|
+
static readonly RULE_tableArgumentRelation = 75;
|
|
425
|
+
static readonly RULE_descriptorArgument = 76;
|
|
426
|
+
static readonly RULE_descriptorField = 77;
|
|
427
|
+
static readonly RULE_coPartitionTables = 78;
|
|
428
|
+
static readonly RULE_expression = 79;
|
|
429
|
+
static readonly RULE_booleanExpression = 80;
|
|
430
|
+
static readonly RULE_predicate = 81;
|
|
431
|
+
static readonly RULE_valueExpression = 82;
|
|
432
|
+
static readonly RULE_primaryExpression = 83;
|
|
433
|
+
static readonly RULE_jsonPathInvocation = 84;
|
|
434
|
+
static readonly RULE_jsonValueExpression = 85;
|
|
435
|
+
static readonly RULE_jsonRepresentation = 86;
|
|
436
|
+
static readonly RULE_jsonArgument = 87;
|
|
437
|
+
static readonly RULE_jsonExistsErrorBehavior = 88;
|
|
438
|
+
static readonly RULE_jsonValueBehavior = 89;
|
|
439
|
+
static readonly RULE_jsonQueryWrapperBehavior = 90;
|
|
440
|
+
static readonly RULE_jsonQueryBehavior = 91;
|
|
441
|
+
static readonly RULE_jsonObjectMember = 92;
|
|
442
|
+
static readonly RULE_processingMode = 93;
|
|
443
|
+
static readonly RULE_nullTreatment = 94;
|
|
444
|
+
static readonly RULE_string = 95;
|
|
445
|
+
static readonly RULE_timeZoneSpecifier = 96;
|
|
446
|
+
static readonly RULE_comparisonOperator = 97;
|
|
447
|
+
static readonly RULE_comparisonQuantifier = 98;
|
|
448
|
+
static readonly RULE_booleanValue = 99;
|
|
449
|
+
static readonly RULE_interval = 100;
|
|
450
|
+
static readonly RULE_intervalField = 101;
|
|
451
|
+
static readonly RULE_normalForm = 102;
|
|
452
|
+
static readonly RULE_type = 103;
|
|
453
|
+
static readonly RULE_rowField = 104;
|
|
454
|
+
static readonly RULE_typeParameter = 105;
|
|
455
|
+
static readonly RULE_whenClause = 106;
|
|
456
|
+
static readonly RULE_filter = 107;
|
|
457
|
+
static readonly RULE_mergeCase = 108;
|
|
458
|
+
static readonly RULE_over = 109;
|
|
459
|
+
static readonly RULE_windowFrame = 110;
|
|
460
|
+
static readonly RULE_frameExtent = 111;
|
|
461
|
+
static readonly RULE_frameBound = 112;
|
|
462
|
+
static readonly RULE_rowPattern = 113;
|
|
463
|
+
static readonly RULE_patternPrimary = 114;
|
|
464
|
+
static readonly RULE_patternQuantifier = 115;
|
|
465
|
+
static readonly RULE_updateAssignment = 116;
|
|
466
|
+
static readonly RULE_explainOption = 117;
|
|
467
|
+
static readonly RULE_transactionMode = 118;
|
|
468
|
+
static readonly RULE_levelOfIsolation = 119;
|
|
469
|
+
static readonly RULE_callArgument = 120;
|
|
470
|
+
static readonly RULE_pathElement = 121;
|
|
471
|
+
static readonly RULE_pathSpecification = 122;
|
|
472
|
+
static readonly RULE_functionSpecification = 123;
|
|
473
|
+
static readonly RULE_functionDeclaration = 124;
|
|
474
|
+
static readonly RULE_functionSignature = 125;
|
|
475
|
+
static readonly RULE_parameterDeclaration = 126;
|
|
476
|
+
static readonly RULE_returnsClause = 127;
|
|
477
|
+
static readonly RULE_routineCharacteristic = 128;
|
|
478
|
+
static readonly RULE_controlStatement = 129;
|
|
479
|
+
static readonly RULE_caseStatementWhenClause = 130;
|
|
480
|
+
static readonly RULE_elseIfClause = 131;
|
|
481
|
+
static readonly RULE_elseClause = 132;
|
|
482
|
+
static readonly RULE_variableDeclaration = 133;
|
|
483
|
+
static readonly RULE_sqlStatementList = 134;
|
|
484
|
+
static readonly RULE_privilege = 135;
|
|
485
|
+
static readonly RULE_entityKind = 136;
|
|
486
|
+
static readonly RULE_grantObject = 137;
|
|
487
|
+
static readonly RULE_tableOrViewName = 138;
|
|
488
|
+
static readonly RULE_tableRef = 139;
|
|
489
|
+
static readonly RULE_tableNameCreate = 140;
|
|
490
|
+
static readonly RULE_viewRef = 141;
|
|
491
|
+
static readonly RULE_viewNameCreate = 142;
|
|
492
|
+
static readonly RULE_schemaRef = 143;
|
|
493
|
+
static readonly RULE_schemaNameCreate = 144;
|
|
494
|
+
static readonly RULE_catalogRef = 145;
|
|
495
|
+
static readonly RULE_catalogNameCreate = 146;
|
|
496
|
+
static readonly RULE_functionName = 147;
|
|
497
|
+
static readonly RULE_functionNameCreate = 148;
|
|
498
|
+
static readonly RULE_columnRef = 149;
|
|
499
|
+
static readonly RULE_emptyColumn = 150;
|
|
500
|
+
static readonly RULE_columnName = 151;
|
|
501
|
+
static readonly RULE_columnNameCreate = 152;
|
|
502
|
+
static readonly RULE_qualifiedName = 153;
|
|
503
|
+
static readonly RULE_queryPeriod = 154;
|
|
504
|
+
static readonly RULE_rangeType = 155;
|
|
505
|
+
static readonly RULE_grantor = 156;
|
|
506
|
+
static readonly RULE_principal = 157;
|
|
507
|
+
static readonly RULE_roles = 158;
|
|
508
|
+
static readonly RULE_privilegeOrRole = 159;
|
|
509
|
+
static readonly RULE_identifier = 160;
|
|
510
|
+
static readonly RULE_number = 161;
|
|
511
|
+
static readonly RULE_authorizationUser = 162;
|
|
512
|
+
static readonly RULE_nonReserved = 163;
|
|
509
513
|
static readonly literalNames: (string | null)[];
|
|
510
514
|
static readonly symbolicNames: (string | null)[];
|
|
511
515
|
static readonly ruleNames: string[];
|
|
@@ -515,6 +519,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
515
519
|
get ruleNames(): string[];
|
|
516
520
|
get serializedATN(): number[];
|
|
517
521
|
protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException;
|
|
522
|
+
notEntityCollecting(): boolean;
|
|
518
523
|
constructor(input: antlr.TokenStream);
|
|
519
524
|
program(): ProgramContext;
|
|
520
525
|
statements(): StatementsContext;
|
|
@@ -565,6 +570,8 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
565
570
|
relation(_p: number): RelationContext;
|
|
566
571
|
joinType(): JoinTypeContext;
|
|
567
572
|
joinCriteria(): JoinCriteriaContext;
|
|
573
|
+
joinColumnEquality(): JoinColumnEqualityContext;
|
|
574
|
+
joinColumnReference(): JoinColumnReferenceContext;
|
|
568
575
|
sampledRelation(): SampledRelationContext;
|
|
569
576
|
sampleType(): SampleTypeContext;
|
|
570
577
|
trimsSpecification(): TrimsSpecificationContext;
|
|
@@ -671,6 +678,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
671
678
|
functionName(): FunctionNameContext;
|
|
672
679
|
functionNameCreate(): FunctionNameCreateContext;
|
|
673
680
|
columnRef(): ColumnRefContext;
|
|
681
|
+
emptyColumn(): EmptyColumnContext;
|
|
674
682
|
columnName(): ColumnNameContext;
|
|
675
683
|
columnNameCreate(): ColumnNameCreateContext;
|
|
676
684
|
qualifiedName(): QualifiedNameContext;
|
|
@@ -687,6 +695,8 @@ export declare class TrinoSqlParser extends SQLParserBase {
|
|
|
687
695
|
sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
|
|
688
696
|
private queryTerm_sempred;
|
|
689
697
|
private relation_sempred;
|
|
698
|
+
private joinCriteria_sempred;
|
|
699
|
+
private joinColumnReference_sempred;
|
|
690
700
|
private booleanExpression_sempred;
|
|
691
701
|
private valueExpression_sempred;
|
|
692
702
|
private primaryExpression_sempred;
|
|
@@ -2420,6 +2430,7 @@ export declare class JoinTypeContext extends antlr.ParserRuleContext {
|
|
|
2420
2430
|
export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
|
|
2421
2431
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2422
2432
|
KW_ON(): antlr.TerminalNode | null;
|
|
2433
|
+
joinColumnEquality(): JoinColumnEqualityContext | null;
|
|
2423
2434
|
booleanExpression(): BooleanExpressionContext | null;
|
|
2424
2435
|
KW_USING(): antlr.TerminalNode | null;
|
|
2425
2436
|
identifier(): IdentifierContext[];
|
|
@@ -2429,6 +2440,29 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
|
|
|
2429
2440
|
exitRule(listener: TrinoSqlListener): void;
|
|
2430
2441
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2431
2442
|
}
|
|
2443
|
+
export declare class JoinColumnEqualityContext extends antlr.ParserRuleContext {
|
|
2444
|
+
_left?: JoinColumnReferenceContext;
|
|
2445
|
+
_right?: JoinColumnReferenceContext;
|
|
2446
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2447
|
+
EQ(): antlr.TerminalNode;
|
|
2448
|
+
joinColumnReference(): JoinColumnReferenceContext[];
|
|
2449
|
+
joinColumnReference(i: number): JoinColumnReferenceContext | null;
|
|
2450
|
+
get ruleIndex(): number;
|
|
2451
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2452
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2453
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2454
|
+
}
|
|
2455
|
+
export declare class JoinColumnReferenceContext extends antlr.ParserRuleContext {
|
|
2456
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
2457
|
+
identifier(): IdentifierContext | null;
|
|
2458
|
+
DOT(): antlr.TerminalNode | null;
|
|
2459
|
+
emptyColumn(): EmptyColumnContext | null;
|
|
2460
|
+
columnName(): ColumnNameContext | null;
|
|
2461
|
+
get ruleIndex(): number;
|
|
2462
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
2463
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
2464
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
2465
|
+
}
|
|
2432
2466
|
export declare class SampledRelationContext extends antlr.ParserRuleContext {
|
|
2433
2467
|
_percentage?: ExpressionContext;
|
|
2434
2468
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
@@ -4887,6 +4921,13 @@ export declare class ColumnRefContext extends antlr.ParserRuleContext {
|
|
|
4887
4921
|
exitRule(listener: TrinoSqlListener): void;
|
|
4888
4922
|
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
4889
4923
|
}
|
|
4924
|
+
export declare class EmptyColumnContext extends antlr.ParserRuleContext {
|
|
4925
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4926
|
+
get ruleIndex(): number;
|
|
4927
|
+
enterRule(listener: TrinoSqlListener): void;
|
|
4928
|
+
exitRule(listener: TrinoSqlListener): void;
|
|
4929
|
+
accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
|
|
4930
|
+
}
|
|
4890
4931
|
export declare class ColumnNameContext extends antlr.ParserRuleContext {
|
|
4891
4932
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4892
4933
|
qualifiedName(): QualifiedNameContext;
|