dt-sql-parser 4.1.2-beta.1 → 4.3.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.
Files changed (83) hide show
  1. package/README.md +51 -0
  2. package/dist/lib/flink/FlinkSqlLexer.d.ts +2 -2
  3. package/dist/lib/flink/FlinkSqlLexer.js +21 -20
  4. package/dist/lib/flink/FlinkSqlParser.d.ts +178 -168
  5. package/dist/lib/flink/FlinkSqlParser.js +2799 -2741
  6. package/dist/lib/flink/FlinkSqlParserListener.d.ts +11 -0
  7. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +7 -0
  8. package/dist/lib/hive/HiveSqlParser.d.ts +241 -221
  9. package/dist/lib/hive/HiveSqlParser.js +6229 -5639
  10. package/dist/lib/hive/HiveSqlParserListener.d.ts +22 -0
  11. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +14 -0
  12. package/dist/lib/impala/ImpalaSqlLexer.d.ts +2 -2
  13. package/dist/lib/impala/ImpalaSqlLexer.js +5 -5
  14. package/dist/lib/impala/ImpalaSqlParser.d.ts +147 -109
  15. package/dist/lib/impala/ImpalaSqlParser.js +3448 -3234
  16. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +44 -0
  17. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +28 -0
  18. package/dist/lib/mysql/MySqlLexer.d.ts +2 -2
  19. package/dist/lib/mysql/MySqlLexer.js +43 -43
  20. package/dist/lib/mysql/MySqlParser.d.ts +2 -2
  21. package/dist/lib/mysql/MySqlParser.js +42 -42
  22. package/dist/lib/postgresql/PostgreSqlLexer.d.ts +14 -15
  23. package/dist/lib/postgresql/PostgreSqlLexer.js +2077 -2092
  24. package/dist/lib/postgresql/PostgreSqlParser.d.ts +152 -131
  25. package/dist/lib/postgresql/PostgreSqlParser.js +10052 -9925
  26. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +22 -0
  27. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +14 -0
  28. package/dist/lib/spark/SparkSqlLexer.d.ts +2 -2
  29. package/dist/lib/spark/SparkSqlLexer.js +6 -6
  30. package/dist/lib/spark/SparkSqlParser.d.ts +391 -623
  31. package/dist/lib/spark/SparkSqlParser.js +6749 -8109
  32. package/dist/lib/spark/SparkSqlParserListener.d.ts +38 -326
  33. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +24 -207
  34. package/dist/lib/trino/TrinoSqlLexer.d.ts +2 -2
  35. package/dist/lib/trino/TrinoSqlLexer.js +5 -5
  36. package/dist/lib/trino/TrinoSqlListener.d.ts +44 -0
  37. package/dist/lib/trino/TrinoSqlParser.d.ts +182 -153
  38. package/dist/lib/trino/TrinoSqlParser.js +4758 -4599
  39. package/dist/lib/trino/TrinoSqlVisitor.d.ts +28 -0
  40. package/dist/parser/common/basicSQL.d.ts +43 -9
  41. package/dist/parser/common/basicSQL.js +147 -40
  42. package/dist/parser/common/semanticContextCollector.d.ts +50 -0
  43. package/dist/parser/common/semanticContextCollector.js +202 -0
  44. package/dist/parser/common/tokenUtils.d.ts +12 -0
  45. package/dist/parser/common/tokenUtils.js +38 -0
  46. package/dist/parser/common/types.d.ts +30 -1
  47. package/dist/parser/common/types.js +11 -0
  48. package/dist/parser/flink/flinkErrorListener.js +14 -2
  49. package/dist/parser/flink/flinkSemanticContextCollector.d.ts +9 -0
  50. package/dist/parser/flink/flinkSemanticContextCollector.js +14 -0
  51. package/dist/parser/flink/index.d.ts +4 -2
  52. package/dist/parser/flink/index.js +32 -14
  53. package/dist/parser/hive/hiveErrorListener.js +9 -3
  54. package/dist/parser/hive/hiveSemanticContextCollector.d.ts +9 -0
  55. package/dist/parser/hive/hiveSemanticContextCollector.js +14 -0
  56. package/dist/parser/hive/index.d.ts +4 -2
  57. package/dist/parser/hive/index.js +29 -14
  58. package/dist/parser/impala/ImpalaErrorListener.js +8 -2
  59. package/dist/parser/impala/impalaSemanticContextCollector.d.ts +9 -0
  60. package/dist/parser/impala/impalaSemanticContextCollector.js +14 -0
  61. package/dist/parser/impala/index.d.ts +4 -2
  62. package/dist/parser/impala/index.js +21 -14
  63. package/dist/parser/mysql/index.d.ts +4 -2
  64. package/dist/parser/mysql/index.js +10 -14
  65. package/dist/parser/mysql/mysqlErrorListener.js +6 -2
  66. package/dist/parser/mysql/mysqlSemanticContextCollector.d.ts +9 -0
  67. package/dist/parser/mysql/mysqlSemanticContextCollector.js +14 -0
  68. package/dist/parser/postgresql/index.d.ts +4 -2
  69. package/dist/parser/postgresql/index.js +23 -14
  70. package/dist/parser/postgresql/postgreErrorListener.js +9 -3
  71. package/dist/parser/postgresql/postgreSemanticContextCollector.d.ts +9 -0
  72. package/dist/parser/postgresql/postgreSemanticContextCollector.js +14 -0
  73. package/dist/parser/spark/index.d.ts +4 -2
  74. package/dist/parser/spark/index.js +26 -14
  75. package/dist/parser/spark/sparkErrorListener.js +9 -3
  76. package/dist/parser/spark/sparkSemanticContextCollector.d.ts +9 -0
  77. package/dist/parser/spark/sparkSemanticContextCollector.js +14 -0
  78. package/dist/parser/trino/index.d.ts +4 -2
  79. package/dist/parser/trino/index.js +22 -14
  80. package/dist/parser/trino/trinoErrorListener.js +9 -3
  81. package/dist/parser/trino/trinoSemanticContextCollector.d.ts +9 -0
  82. package/dist/parser/trino/trinoSemanticContextCollector.js +14 -0
  83. package/package.json +2 -1
@@ -582,21 +582,20 @@ export declare class PostgreSqlParser extends SQLParserBase {
582
582
  static readonly Numeric = 576;
583
583
  static readonly PLSQLVARIABLENAME = 577;
584
584
  static readonly PLSQLIDENTIFIER = 578;
585
- static readonly Whitespace = 579;
586
- static readonly Newline = 580;
587
- static readonly LineComment = 581;
588
- static readonly BlockComment = 582;
589
- static readonly UnterminatedBlockComment = 583;
590
- static readonly MetaCommand = 584;
591
- static readonly EndMetaCommand = 585;
592
- static readonly ErrorCharacter = 586;
593
- static readonly EscapeStringConstant = 587;
594
- static readonly UnterminatedEscapeStringConstant = 588;
595
- static readonly InvalidEscapeStringConstant = 589;
596
- static readonly InvalidUnterminatedEscapeStringConstant = 590;
597
- static readonly DollarText = 591;
598
- static readonly EndDollarStringConstant = 592;
599
- static readonly AfterEscapeStringConstantWithNewlineMode_Continued = 593;
585
+ static readonly WHITE_SPACE = 579;
586
+ static readonly LINE_COMMENT = 580;
587
+ static readonly BRACKETED_COMMENT = 581;
588
+ static readonly UnterminatedBlockComment = 582;
589
+ static readonly MetaCommand = 583;
590
+ static readonly EndMetaCommand = 584;
591
+ static readonly ErrorCharacter = 585;
592
+ static readonly EscapeStringConstant = 586;
593
+ static readonly UnterminatedEscapeStringConstant = 587;
594
+ static readonly InvalidEscapeStringConstant = 588;
595
+ static readonly InvalidUnterminatedEscapeStringConstant = 589;
596
+ static readonly DollarText = 590;
597
+ static readonly EndDollarStringConstant = 591;
598
+ static readonly AfterEscapeStringConstantWithNewlineMode_Continued = 592;
600
599
  static readonly RULE_program = 0;
601
600
  static readonly RULE_singleStmt = 1;
602
601
  static readonly RULE_stmt = 2;
@@ -946,120 +945,122 @@ export declare class PostgreSqlParser extends SQLParserBase {
946
945
  static readonly RULE_xmlExistsArgument = 346;
947
946
  static readonly RULE_xmlPassingMech = 347;
948
947
  static readonly RULE_windowClause = 348;
949
- static readonly RULE_windowDefinition = 349;
950
- static readonly RULE_over_clause = 350;
951
- static readonly RULE_windowSpecification = 351;
952
- static readonly RULE_optFrameClause = 352;
953
- static readonly RULE_frameBound = 353;
954
- static readonly RULE_row = 354;
955
- static readonly RULE_explicitRow = 355;
956
- static readonly RULE_subType = 356;
957
- static readonly RULE_allOp = 357;
958
- static readonly RULE_mathOp = 358;
959
- static readonly RULE_qualOp = 359;
960
- static readonly RULE_qualAllOp = 360;
961
- static readonly RULE_subqueryOperator = 361;
962
- static readonly RULE_exprList = 362;
963
- static readonly RULE_columnExpr = 363;
964
- static readonly RULE_columnExprNoParen = 364;
965
- static readonly RULE_funcArgList = 365;
966
- static readonly RULE_funcArgExpr = 366;
967
- static readonly RULE_arrayExpr = 367;
968
- static readonly RULE_extractArg = 368;
969
- static readonly RULE_unicodeNormalForm = 369;
970
- static readonly RULE_substrList = 370;
971
- static readonly RULE_when_clause = 371;
972
- static readonly RULE_indirectionEl = 372;
973
- static readonly RULE_indirection = 373;
974
- static readonly RULE_optIndirection = 374;
975
- static readonly RULE_targetList = 375;
976
- static readonly RULE_targetEl = 376;
977
- static readonly RULE_qualifiedNameList = 377;
978
- static readonly RULE_tableNameList = 378;
979
- static readonly RULE_schemaNameList = 379;
980
- static readonly RULE_databaseNameList = 380;
981
- static readonly RULE_tableSpaceNameCreate = 381;
982
- static readonly RULE_tableSpaceName = 382;
983
- static readonly RULE_tableNameCreate = 383;
984
- static readonly RULE_tableName = 384;
985
- static readonly RULE_viewNameCreate = 385;
986
- static readonly RULE_viewName = 386;
987
- static readonly RULE_qualifiedName = 387;
988
- static readonly RULE_tableSpaceNameList = 388;
989
- static readonly RULE_nameList = 389;
990
- static readonly RULE_databaseNameCreate = 390;
991
- static readonly RULE_databaseName = 391;
992
- static readonly RULE_schemaName = 392;
993
- static readonly RULE_routineNameCreate = 393;
994
- static readonly RULE_routineName = 394;
995
- static readonly RULE_procedureName = 395;
996
- static readonly RULE_procedureNameCreate = 396;
997
- static readonly RULE_columnName = 397;
998
- static readonly RULE_columnNameCreate = 398;
999
- static readonly RULE_functionNameCreate = 399;
1000
- static readonly RULE_functionName = 400;
1001
- static readonly RULE_stringConst = 401;
1002
- static readonly RULE_anysconst = 402;
1003
- static readonly RULE_signedConst = 403;
1004
- static readonly RULE_roleSpec = 404;
1005
- static readonly RULE_roleList = 405;
1006
- static readonly RULE_colId = 406;
1007
- static readonly RULE_typeFunctionName = 407;
1008
- static readonly RULE_nonReservedWord = 408;
1009
- static readonly RULE_colLabel = 409;
1010
- static readonly RULE_identifier = 410;
1011
- static readonly RULE_unreservedKeyword = 411;
1012
- static readonly RULE_colNameKeyword = 412;
1013
- static readonly RULE_typeFuncNameKeyword = 413;
1014
- static readonly RULE_reservedKeyword = 414;
1015
- static readonly RULE_plBlock = 415;
1016
- static readonly RULE_labelDecl = 416;
1017
- static readonly RULE_declStatement = 417;
1018
- static readonly RULE_declCursorArg = 418;
1019
- static readonly RULE_assignOperator = 419;
1020
- static readonly RULE_procStmt = 420;
1021
- static readonly RULE_stmtPerform = 421;
1022
- static readonly RULE_stmtCall = 422;
1023
- static readonly RULE_stmtAssign = 423;
1024
- static readonly RULE_stmtGetdiag = 424;
1025
- static readonly RULE_getdiagListItem = 425;
1026
- static readonly RULE_assignVar = 426;
1027
- static readonly RULE_stmtIf = 427;
1028
- static readonly RULE_stmtElse = 428;
1029
- static readonly RULE_stmtCase = 429;
1030
- static readonly RULE_stmtLoopWhileFor = 430;
1031
- static readonly RULE_forControl = 431;
1032
- static readonly RULE_stmtForeach = 432;
1033
- static readonly RULE_stmtExit = 433;
1034
- static readonly RULE_stmtReturn = 434;
1035
- static readonly RULE_stmtRaise = 435;
1036
- static readonly RULE_optRaiseUsingElem = 436;
1037
- static readonly RULE_stmtAssert = 437;
1038
- static readonly RULE_loopBody = 438;
1039
- static readonly RULE_stmtExecsql = 439;
1040
- static readonly RULE_stmtDynexecute = 440;
1041
- static readonly RULE_optExecuteInto = 441;
1042
- static readonly RULE_stmtOpen = 442;
1043
- static readonly RULE_optOpenBoundListItem = 443;
1044
- static readonly RULE_stmtFetch = 444;
1045
- static readonly RULE_optFetchFirection = 445;
1046
- static readonly RULE_stmtMove = 446;
1047
- static readonly RULE_mergeStmt = 447;
1048
- static readonly RULE_dataSource = 448;
1049
- static readonly RULE_mergeWhenClause = 449;
1050
- static readonly RULE_mergeInsert = 450;
1051
- static readonly RULE_mergeUpdate = 451;
1052
- static readonly RULE_defaultValuesOrValues = 452;
1053
- static readonly RULE_exprofdefault = 453;
1054
- static readonly RULE_stmtClose = 454;
1055
- static readonly RULE_stmtNull = 455;
1056
- static readonly RULE_stmtCommitOrRollback = 456;
1057
- static readonly RULE_stmtSet = 457;
1058
- static readonly RULE_cursorVariable = 458;
1059
- static readonly RULE_exceptionSect = 459;
1060
- static readonly RULE_procCondition = 460;
1061
- static readonly RULE_anyIdentifier = 461;
1062
- static readonly RULE_sqlExpression = 462;
948
+ static readonly RULE_havingClause = 349;
949
+ static readonly RULE_windowDefinition = 350;
950
+ static readonly RULE_over_clause = 351;
951
+ static readonly RULE_windowSpecification = 352;
952
+ static readonly RULE_optFrameClause = 353;
953
+ static readonly RULE_frameBound = 354;
954
+ static readonly RULE_row = 355;
955
+ static readonly RULE_explicitRow = 356;
956
+ static readonly RULE_subType = 357;
957
+ static readonly RULE_allOp = 358;
958
+ static readonly RULE_mathOp = 359;
959
+ static readonly RULE_qualOp = 360;
960
+ static readonly RULE_qualAllOp = 361;
961
+ static readonly RULE_subqueryOperator = 362;
962
+ static readonly RULE_exprList = 363;
963
+ static readonly RULE_columnExpr = 364;
964
+ static readonly RULE_columnExprNoParen = 365;
965
+ static readonly RULE_funcArgList = 366;
966
+ static readonly RULE_funcArgExpr = 367;
967
+ static readonly RULE_arrayExpr = 368;
968
+ static readonly RULE_extractArg = 369;
969
+ static readonly RULE_unicodeNormalForm = 370;
970
+ static readonly RULE_substrList = 371;
971
+ static readonly RULE_when_clause = 372;
972
+ static readonly RULE_indirectionEl = 373;
973
+ static readonly RULE_indirection = 374;
974
+ static readonly RULE_optIndirection = 375;
975
+ static readonly RULE_targetList = 376;
976
+ static readonly RULE_targetEl = 377;
977
+ static readonly RULE_qualifiedNameList = 378;
978
+ static readonly RULE_tableNameList = 379;
979
+ static readonly RULE_schemaNameList = 380;
980
+ static readonly RULE_databaseNameList = 381;
981
+ static readonly RULE_tableSpaceNameCreate = 382;
982
+ static readonly RULE_tableSpaceName = 383;
983
+ static readonly RULE_tableNameCreate = 384;
984
+ static readonly RULE_tableName = 385;
985
+ static readonly RULE_viewNameCreate = 386;
986
+ static readonly RULE_viewName = 387;
987
+ static readonly RULE_qualifiedName = 388;
988
+ static readonly RULE_tableSpaceNameList = 389;
989
+ static readonly RULE_nameList = 390;
990
+ static readonly RULE_databaseNameCreate = 391;
991
+ static readonly RULE_databaseName = 392;
992
+ static readonly RULE_schemaName = 393;
993
+ static readonly RULE_routineNameCreate = 394;
994
+ static readonly RULE_routineName = 395;
995
+ static readonly RULE_procedureName = 396;
996
+ static readonly RULE_procedureNameCreate = 397;
997
+ static readonly RULE_columnName = 398;
998
+ static readonly RULE_columnNamePath = 399;
999
+ static readonly RULE_columnNameCreate = 400;
1000
+ static readonly RULE_functionNameCreate = 401;
1001
+ static readonly RULE_functionName = 402;
1002
+ static readonly RULE_stringConst = 403;
1003
+ static readonly RULE_anysconst = 404;
1004
+ static readonly RULE_signedConst = 405;
1005
+ static readonly RULE_roleSpec = 406;
1006
+ static readonly RULE_roleList = 407;
1007
+ static readonly RULE_colId = 408;
1008
+ static readonly RULE_typeFunctionName = 409;
1009
+ static readonly RULE_nonReservedWord = 410;
1010
+ static readonly RULE_colLabel = 411;
1011
+ static readonly RULE_identifier = 412;
1012
+ static readonly RULE_unreservedKeyword = 413;
1013
+ static readonly RULE_colNameKeyword = 414;
1014
+ static readonly RULE_typeFuncNameKeyword = 415;
1015
+ static readonly RULE_reservedKeyword = 416;
1016
+ static readonly RULE_plBlock = 417;
1017
+ static readonly RULE_labelDecl = 418;
1018
+ static readonly RULE_declStatement = 419;
1019
+ static readonly RULE_declCursorArg = 420;
1020
+ static readonly RULE_assignOperator = 421;
1021
+ static readonly RULE_procStmt = 422;
1022
+ static readonly RULE_stmtPerform = 423;
1023
+ static readonly RULE_stmtCall = 424;
1024
+ static readonly RULE_stmtAssign = 425;
1025
+ static readonly RULE_stmtGetdiag = 426;
1026
+ static readonly RULE_getdiagListItem = 427;
1027
+ static readonly RULE_assignVar = 428;
1028
+ static readonly RULE_stmtIf = 429;
1029
+ static readonly RULE_stmtElse = 430;
1030
+ static readonly RULE_stmtCase = 431;
1031
+ static readonly RULE_stmtLoopWhileFor = 432;
1032
+ static readonly RULE_forControl = 433;
1033
+ static readonly RULE_stmtForeach = 434;
1034
+ static readonly RULE_stmtExit = 435;
1035
+ static readonly RULE_stmtReturn = 436;
1036
+ static readonly RULE_stmtRaise = 437;
1037
+ static readonly RULE_optRaiseUsingElem = 438;
1038
+ static readonly RULE_stmtAssert = 439;
1039
+ static readonly RULE_loopBody = 440;
1040
+ static readonly RULE_stmtExecsql = 441;
1041
+ static readonly RULE_stmtDynexecute = 442;
1042
+ static readonly RULE_optExecuteInto = 443;
1043
+ static readonly RULE_stmtOpen = 444;
1044
+ static readonly RULE_optOpenBoundListItem = 445;
1045
+ static readonly RULE_stmtFetch = 446;
1046
+ static readonly RULE_optFetchFirection = 447;
1047
+ static readonly RULE_stmtMove = 448;
1048
+ static readonly RULE_mergeStmt = 449;
1049
+ static readonly RULE_dataSource = 450;
1050
+ static readonly RULE_mergeWhenClause = 451;
1051
+ static readonly RULE_mergeInsert = 452;
1052
+ static readonly RULE_mergeUpdate = 453;
1053
+ static readonly RULE_defaultValuesOrValues = 454;
1054
+ static readonly RULE_exprofdefault = 455;
1055
+ static readonly RULE_stmtClose = 456;
1056
+ static readonly RULE_stmtNull = 457;
1057
+ static readonly RULE_stmtCommitOrRollback = 458;
1058
+ static readonly RULE_stmtSet = 459;
1059
+ static readonly RULE_cursorVariable = 460;
1060
+ static readonly RULE_exceptionSect = 461;
1061
+ static readonly RULE_procCondition = 462;
1062
+ static readonly RULE_anyIdentifier = 463;
1063
+ static readonly RULE_sqlExpression = 464;
1063
1064
  static readonly literalNames: (string | null)[];
1064
1065
  static readonly symbolicNames: (string | null)[];
1065
1066
  static readonly ruleNames: string[];
@@ -1422,6 +1423,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1422
1423
  xmlExistsArgument(): XmlExistsArgumentContext;
1423
1424
  xmlPassingMech(): XmlPassingMechContext;
1424
1425
  windowClause(): WindowClauseContext;
1426
+ havingClause(): HavingClauseContext;
1425
1427
  windowDefinition(): WindowDefinitionContext;
1426
1428
  over_clause(): Over_clauseContext;
1427
1429
  windowSpecification(): WindowSpecificationContext;
@@ -1471,6 +1473,7 @@ export declare class PostgreSqlParser extends SQLParserBase {
1471
1473
  procedureName(): ProcedureNameContext;
1472
1474
  procedureNameCreate(): ProcedureNameCreateContext;
1473
1475
  columnName(): ColumnNameContext;
1476
+ columnNamePath(): ColumnNamePathContext;
1474
1477
  columnNameCreate(): ColumnNameCreateContext;
1475
1478
  functionNameCreate(): FunctionNameCreateContext;
1476
1479
  functionName(): FunctionNameContext;
@@ -7366,6 +7369,7 @@ export declare class PrimaryExpressionContext extends antlr.ParserRuleContext {
7366
7369
  row(): RowContext[];
7367
7370
  row(i: number): RowContext | null;
7368
7371
  KW_OVERLAPS(): antlr.TerminalNode | null;
7372
+ columnNamePath(): ColumnNamePathContext | null;
7369
7373
  qualifiedName(): QualifiedNameContext | null;
7370
7374
  primaryExpression(): PrimaryExpressionContext[];
7371
7375
  primaryExpression(i: number): PrimaryExpressionContext | null;
@@ -7581,6 +7585,15 @@ export declare class WindowClauseContext extends antlr.ParserRuleContext {
7581
7585
  exitRule(listener: PostgreSqlParserListener): void;
7582
7586
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7583
7587
  }
7588
+ export declare class HavingClauseContext extends antlr.ParserRuleContext {
7589
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7590
+ KW_HAVING(): antlr.TerminalNode;
7591
+ expression(): ExpressionContext;
7592
+ get ruleIndex(): number;
7593
+ enterRule(listener: PostgreSqlParserListener): void;
7594
+ exitRule(listener: PostgreSqlParserListener): void;
7595
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
7596
+ }
7584
7597
  export declare class WindowDefinitionContext extends antlr.ParserRuleContext {
7585
7598
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
7586
7599
  colId(): ColIdContext;
@@ -8124,6 +8137,15 @@ export declare class ColumnNameContext extends antlr.ParserRuleContext {
8124
8137
  exitRule(listener: PostgreSqlParserListener): void;
8125
8138
  accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8126
8139
  }
8140
+ export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
8141
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8142
+ colId(): ColIdContext;
8143
+ optIndirection(): OptIndirectionContext;
8144
+ get ruleIndex(): number;
8145
+ enterRule(listener: PostgreSqlParserListener): void;
8146
+ exitRule(listener: PostgreSqlParserListener): void;
8147
+ accept<Result>(visitor: PostgreSqlParserVisitor<Result>): Result | null;
8148
+ }
8127
8149
  export declare class ColumnNameCreateContext extends antlr.ParserRuleContext {
8128
8150
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
8129
8151
  colId(): ColIdContext;
@@ -9478,8 +9500,7 @@ export declare class SqlExpressionContext extends antlr.ParserRuleContext {
9478
9500
  fromClause(): FromClauseContext | null;
9479
9501
  whereClause(): WhereClauseContext | null;
9480
9502
  groupClause(): GroupClauseContext | null;
9481
- KW_HAVING(): antlr.TerminalNode | null;
9482
- expression(): ExpressionContext | null;
9503
+ havingClause(): HavingClauseContext | null;
9483
9504
  windowClause(): WindowClauseContext | null;
9484
9505
  get ruleIndex(): number;
9485
9506
  enterRule(listener: PostgreSqlParserListener): void;