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.
Files changed (33) hide show
  1. package/dist/lib/SQLParserBase.d.ts +9 -0
  2. package/dist/lib/SQLParserBase.js +15 -0
  3. package/dist/lib/hive/HiveSqlParser.d.ts +54 -30
  4. package/dist/lib/hive/HiveSqlParser.js +5633 -5467
  5. package/dist/lib/hive/HiveSqlParserListener.d.ts +22 -0
  6. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +14 -0
  7. package/dist/lib/mysql/MySqlParser.d.ts +31 -8
  8. package/dist/lib/mysql/MySqlParser.js +5786 -5659
  9. package/dist/lib/mysql/MySqlParserListener.d.ts +33 -5
  10. package/dist/lib/mysql/MySqlParserVisitor.d.ts +20 -3
  11. package/dist/lib/postgresql/PostgreSqlParser.d.ts +19 -2
  12. package/dist/lib/postgresql/PostgreSqlParser.js +1857 -1756
  13. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +20 -5
  14. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +12 -3
  15. package/dist/lib/trino/TrinoSqlListener.d.ts +33 -0
  16. package/dist/lib/trino/TrinoSqlParser.d.ts +155 -114
  17. package/dist/lib/trino/TrinoSqlParser.js +4747 -4494
  18. package/dist/lib/trino/TrinoSqlVisitor.d.ts +21 -0
  19. package/dist/parser/common/basicSQL.d.ts +3 -0
  20. package/dist/parser/common/basicSQL.js +47 -1
  21. package/dist/parser/flink/index.js +1 -1
  22. package/dist/parser/generic/index.js +1 -1
  23. package/dist/parser/hive/index.js +1 -1
  24. package/dist/parser/impala/index.js +1 -1
  25. package/dist/parser/mysql/index.js +15 -1
  26. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  27. package/dist/parser/mysql/mysqlEntityCollector.js +5 -0
  28. package/dist/parser/postgresql/index.js +3 -2
  29. package/dist/parser/postgresql/postgreEntityCollector.d.ts +2 -1
  30. package/dist/parser/postgresql/postgreEntityCollector.js +5 -0
  31. package/dist/parser/spark/index.js +1 -1
  32. package/dist/parser/trino/index.js +4 -2
  33. 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 { ColumnNamePathContext } from "./PostgreSqlParser.js";
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 `PostgreSqlParser.columnNamePath`.
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
- enterColumnNamePath?: (ctx: ColumnNamePathContext) => void;
4769
+ enterColumnNamePath_default?: (ctx: ColumnNamePath_defaultContext) => void;
4768
4770
  /**
4769
- * Exit a parse tree produced by `PostgreSqlParser.columnNamePath`.
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
- exitColumnNamePath?: (ctx: ColumnNamePathContext) => void;
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 { ColumnNamePathContext } from "./PostgreSqlParser.js";
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 `PostgreSqlParser.columnNamePath`.
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
- visitColumnNamePath?: (ctx: ColumnNamePathContext) => Result;
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 RULE_sampledRelation = 47;
396
- static readonly RULE_sampleType = 48;
397
- static readonly RULE_trimsSpecification = 49;
398
- static readonly RULE_listAggOverflowBehavior = 50;
399
- static readonly RULE_listAggCountIndication = 51;
400
- static readonly RULE_patternRecognition = 52;
401
- static readonly RULE_measureDefinition = 53;
402
- static readonly RULE_rowsPerMatch = 54;
403
- static readonly RULE_emptyMatchHandling = 55;
404
- static readonly RULE_skipTo = 56;
405
- static readonly RULE_subsetDefinition = 57;
406
- static readonly RULE_variableDefinition = 58;
407
- static readonly RULE_aliasedRelation = 59;
408
- static readonly RULE_columnListCreate = 60;
409
- static readonly RULE_columnList = 61;
410
- static readonly RULE_columnAliases = 62;
411
- static readonly RULE_relationPrimary = 63;
412
- static readonly RULE_relationSourceTable = 64;
413
- static readonly RULE_jsonTableColumn = 65;
414
- static readonly RULE_jsonTableSpecificPlan = 66;
415
- static readonly RULE_jsonTablePathName = 67;
416
- static readonly RULE_planPrimary = 68;
417
- static readonly RULE_jsonTableDefaultPlan = 69;
418
- static readonly RULE_tableFunctionCall = 70;
419
- static readonly RULE_tableFunctionArgument = 71;
420
- static readonly RULE_tableArgument = 72;
421
- static readonly RULE_tableArgumentRelation = 73;
422
- static readonly RULE_descriptorArgument = 74;
423
- static readonly RULE_descriptorField = 75;
424
- static readonly RULE_coPartitionTables = 76;
425
- static readonly RULE_expression = 77;
426
- static readonly RULE_booleanExpression = 78;
427
- static readonly RULE_predicate = 79;
428
- static readonly RULE_valueExpression = 80;
429
- static readonly RULE_primaryExpression = 81;
430
- static readonly RULE_jsonPathInvocation = 82;
431
- static readonly RULE_jsonValueExpression = 83;
432
- static readonly RULE_jsonRepresentation = 84;
433
- static readonly RULE_jsonArgument = 85;
434
- static readonly RULE_jsonExistsErrorBehavior = 86;
435
- static readonly RULE_jsonValueBehavior = 87;
436
- static readonly RULE_jsonQueryWrapperBehavior = 88;
437
- static readonly RULE_jsonQueryBehavior = 89;
438
- static readonly RULE_jsonObjectMember = 90;
439
- static readonly RULE_processingMode = 91;
440
- static readonly RULE_nullTreatment = 92;
441
- static readonly RULE_string = 93;
442
- static readonly RULE_timeZoneSpecifier = 94;
443
- static readonly RULE_comparisonOperator = 95;
444
- static readonly RULE_comparisonQuantifier = 96;
445
- static readonly RULE_booleanValue = 97;
446
- static readonly RULE_interval = 98;
447
- static readonly RULE_intervalField = 99;
448
- static readonly RULE_normalForm = 100;
449
- static readonly RULE_type = 101;
450
- static readonly RULE_rowField = 102;
451
- static readonly RULE_typeParameter = 103;
452
- static readonly RULE_whenClause = 104;
453
- static readonly RULE_filter = 105;
454
- static readonly RULE_mergeCase = 106;
455
- static readonly RULE_over = 107;
456
- static readonly RULE_windowFrame = 108;
457
- static readonly RULE_frameExtent = 109;
458
- static readonly RULE_frameBound = 110;
459
- static readonly RULE_rowPattern = 111;
460
- static readonly RULE_patternPrimary = 112;
461
- static readonly RULE_patternQuantifier = 113;
462
- static readonly RULE_updateAssignment = 114;
463
- static readonly RULE_explainOption = 115;
464
- static readonly RULE_transactionMode = 116;
465
- static readonly RULE_levelOfIsolation = 117;
466
- static readonly RULE_callArgument = 118;
467
- static readonly RULE_pathElement = 119;
468
- static readonly RULE_pathSpecification = 120;
469
- static readonly RULE_functionSpecification = 121;
470
- static readonly RULE_functionDeclaration = 122;
471
- static readonly RULE_functionSignature = 123;
472
- static readonly RULE_parameterDeclaration = 124;
473
- static readonly RULE_returnsClause = 125;
474
- static readonly RULE_routineCharacteristic = 126;
475
- static readonly RULE_controlStatement = 127;
476
- static readonly RULE_caseStatementWhenClause = 128;
477
- static readonly RULE_elseIfClause = 129;
478
- static readonly RULE_elseClause = 130;
479
- static readonly RULE_variableDeclaration = 131;
480
- static readonly RULE_sqlStatementList = 132;
481
- static readonly RULE_privilege = 133;
482
- static readonly RULE_entityKind = 134;
483
- static readonly RULE_grantObject = 135;
484
- static readonly RULE_tableOrViewName = 136;
485
- static readonly RULE_tableRef = 137;
486
- static readonly RULE_tableNameCreate = 138;
487
- static readonly RULE_viewRef = 139;
488
- static readonly RULE_viewNameCreate = 140;
489
- static readonly RULE_schemaRef = 141;
490
- static readonly RULE_schemaNameCreate = 142;
491
- static readonly RULE_catalogRef = 143;
492
- static readonly RULE_catalogNameCreate = 144;
493
- static readonly RULE_functionName = 145;
494
- static readonly RULE_functionNameCreate = 146;
495
- static readonly RULE_columnRef = 147;
496
- static readonly RULE_columnName = 148;
497
- static readonly RULE_columnNameCreate = 149;
498
- static readonly RULE_qualifiedName = 150;
499
- static readonly RULE_queryPeriod = 151;
500
- static readonly RULE_rangeType = 152;
501
- static readonly RULE_grantor = 153;
502
- static readonly RULE_principal = 154;
503
- static readonly RULE_roles = 155;
504
- static readonly RULE_privilegeOrRole = 156;
505
- static readonly RULE_identifier = 157;
506
- static readonly RULE_number = 158;
507
- static readonly RULE_authorizationUser = 159;
508
- static readonly RULE_nonReserved = 160;
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;