dt-sql-parser 4.1.0-beta.8 → 4.1.1-beta.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 (48) hide show
  1. package/README.md +0 -51
  2. package/dist/lib/flink/FlinkSqlParser.d.ts +135 -89
  3. package/dist/lib/flink/FlinkSqlParser.js +3290 -2763
  4. package/dist/lib/flink/FlinkSqlParserListener.d.ts +55 -13
  5. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +35 -8
  6. package/dist/lib/postgresql/PostgreSqlParser.d.ts +3 -4
  7. package/dist/lib/postgresql/PostgreSqlParser.js +9175 -9197
  8. package/dist/lib/trino/TrinoSqlListener.d.ts +13 -0
  9. package/dist/lib/trino/TrinoSqlParser.d.ts +17 -4
  10. package/dist/lib/trino/TrinoSqlParser.js +1958 -1970
  11. package/dist/lib/trino/TrinoSqlVisitor.d.ts +8 -0
  12. package/dist/parser/common/basicSQL.d.ts +2 -15
  13. package/dist/parser/common/basicSQL.js +1 -15
  14. package/dist/parser/common/entityCollector.d.ts +7 -1
  15. package/dist/parser/common/entityCollector.js +20 -3
  16. package/dist/parser/common/types.d.ts +0 -25
  17. package/dist/parser/common/types.js +0 -7
  18. package/dist/parser/flink/index.d.ts +6 -8
  19. package/dist/parser/flink/index.js +12 -10
  20. package/dist/parser/hive/index.d.ts +5 -7
  21. package/dist/parser/hive/index.js +4 -8
  22. package/dist/parser/impala/index.d.ts +5 -7
  23. package/dist/parser/impala/index.js +4 -8
  24. package/dist/parser/mysql/index.d.ts +5 -7
  25. package/dist/parser/mysql/index.js +4 -8
  26. package/dist/parser/postgresql/index.d.ts +4 -6
  27. package/dist/parser/postgresql/index.js +4 -8
  28. package/dist/parser/spark/index.d.ts +7 -9
  29. package/dist/parser/spark/index.js +5 -9
  30. package/dist/parser/trino/index.d.ts +7 -9
  31. package/dist/parser/trino/index.js +5 -9
  32. package/package.json +2 -1
  33. package/dist/parser/common/semanticContextCollector.d.ts +0 -51
  34. package/dist/parser/common/semanticContextCollector.js +0 -202
  35. package/dist/parser/flink/flinkSemanticContextCollector.d.ts +0 -9
  36. package/dist/parser/flink/flinkSemanticContextCollector.js +0 -14
  37. package/dist/parser/hive/hiveSemanticContextCollector.d.ts +0 -9
  38. package/dist/parser/hive/hiveSemanticContextCollector.js +0 -14
  39. package/dist/parser/impala/impalaSemanticContextCollector.d.ts +0 -9
  40. package/dist/parser/impala/impalaSemanticContextCollector.js +0 -14
  41. package/dist/parser/mysql/mysqlSemanticContextCollector.d.ts +0 -9
  42. package/dist/parser/mysql/mysqlSemanticContextCollector.js +0 -14
  43. package/dist/parser/postgresql/postgreSemanticContextCollector.d.ts +0 -9
  44. package/dist/parser/postgresql/postgreSemanticContextCollector.js +0 -14
  45. package/dist/parser/spark/sparkSemanticContextCollector.d.ts +0 -9
  46. package/dist/parser/spark/sparkSemanticContextCollector.js +0 -14
  47. package/dist/parser/trino/trinoSemanticContextCollector.d.ts +0 -9
  48. package/dist/parser/trino/trinoSemanticContextCollector.js +0 -14
package/README.md CHANGED
@@ -357,57 +357,6 @@ Call the `getAllEntities` method on the SQL instance, and pass in the sql text a
357
357
 
358
358
  Position is not required, if the position is passed, then in the collected entities, if the entity is located under the statement where the corresponding position is located, then the statement object to which the entity belongs will be marked with `isContainCaret`, which can help you quickly filter out the required entities when combined with the code completion function.
359
359
 
360
- ### Get semantic context information
361
-
362
- Call the `getSemanticContextAtCaretPosition` method on the SQL instance, passing in the sql text and the line and column numbers at the specified position, for example:
363
-
364
- ```typescript
365
- import { HiveSQL } from 'dt-sql-parser';
366
-
367
- const hive = new HiveSQL();
368
- const sql = 'SELECT * FROM tb;';
369
- const pos = { lineNumber: 1, column: 18 }; // after 'tb;'
370
- const semanticContext = hive.getSemanticContextAtCaretPosition(sql, pos);
371
-
372
- console.log(semanticContext);
373
- ```
374
-
375
- *output*
376
-
377
- ```typescript
378
- /*
379
- {
380
- isStatementBeginning: true,
381
- }
382
- */
383
- ```
384
-
385
- Currently, the semantic context information that can be collected is as follows. If there are more requirements, please submit an [issue](https://github.com/DTStack/dt-sql-parser/issues).
386
-
387
- - `isStatementBeginning` Whether the current input position is the beginning of a statement
388
-
389
- The **default strategy** for `isStatementBeginning` is `SqlSplitStrategy.STRICT`
390
-
391
- There are two optional strategies:
392
- - `SqlSplitStrategy.STRICT` Strict strategy, only the statement delimiter `;` is used as the identifier for the end of the previous statement
393
- - `SqlSplitStrategy.LOOSE` Loose strategy, based on the syntax parsing tree to split SQL
394
-
395
- The difference between the two strategies:
396
- For example, if the input SQL is:
397
- ```sql
398
- CREATE TABLE tb (id INT)
399
-
400
- SELECT
401
- ```
402
- In the `SqlSplitStrategy.STRICT` strategy, `isStatementBeginning` is `false`, because the CREATE statement is not terminated by a semicolon.
403
-
404
- In the `SqlSplitStrategy.LOOSE` strategy, `isStatementBeginning` is `true`, because the syntax parsing tree splits the SQL into two independent statements: CREATE and SELECT.
405
-
406
- You can set the strategy through the third `options` parameter:
407
- ```typescript
408
- hive.getSemanticContextAtCaretPosition(sql, pos, { splitSqlStrategy: SqlSplitStrategy.LOOSE });
409
- ```
410
-
411
360
  ### Other API
412
361
 
413
362
  - `createLexer` Create an instance of Antlr4 Lexer and return it;
@@ -678,60 +678,65 @@ export declare class FlinkSqlParser extends SQLParserBase {
678
678
  static readonly RULE_predicate = 130;
679
679
  static readonly RULE_likePredicate = 131;
680
680
  static readonly RULE_valueExpression = 132;
681
- static readonly RULE_primaryExpression = 133;
682
- static readonly RULE_functionNameCreate = 134;
683
- static readonly RULE_functionName = 135;
684
- static readonly RULE_functionParam = 136;
685
- static readonly RULE_dereferenceDefinition = 137;
686
- static readonly RULE_correlationName = 138;
687
- static readonly RULE_qualifiedName = 139;
688
- static readonly RULE_timeIntervalExpression = 140;
689
- static readonly RULE_errorCapturingMultiUnitsInterval = 141;
690
- static readonly RULE_multiUnitsInterval = 142;
691
- static readonly RULE_errorCapturingUnitToUnitInterval = 143;
692
- static readonly RULE_unitToUnitInterval = 144;
693
- static readonly RULE_intervalValue = 145;
694
- static readonly RULE_tableAlias = 146;
695
- static readonly RULE_errorCapturingIdentifier = 147;
696
- static readonly RULE_errorCapturingIdentifierExtra = 148;
697
- static readonly RULE_identifierList = 149;
698
- static readonly RULE_identifierSeq = 150;
699
- static readonly RULE_identifier = 151;
700
- static readonly RULE_unquotedIdentifier = 152;
701
- static readonly RULE_quotedIdentifier = 153;
702
- static readonly RULE_whenClause = 154;
703
- static readonly RULE_catalogPath = 155;
704
- static readonly RULE_catalogPathCreate = 156;
705
- static readonly RULE_databasePath = 157;
706
- static readonly RULE_databasePathCreate = 158;
707
- static readonly RULE_tablePathCreate = 159;
708
- static readonly RULE_tablePath = 160;
709
- static readonly RULE_viewPath = 161;
710
- static readonly RULE_viewPathCreate = 162;
711
- static readonly RULE_uid = 163;
712
- static readonly RULE_withOption = 164;
713
- static readonly RULE_ifNotExists = 165;
714
- static readonly RULE_ifExists = 166;
715
- static readonly RULE_tablePropertyList = 167;
716
- static readonly RULE_tableProperty = 168;
717
- static readonly RULE_tablePropertyKey = 169;
718
- static readonly RULE_tablePropertyValue = 170;
719
- static readonly RULE_logicalOperator = 171;
720
- static readonly RULE_comparisonOperator = 172;
721
- static readonly RULE_bitOperator = 173;
722
- static readonly RULE_mathOperator = 174;
723
- static readonly RULE_unaryOperator = 175;
724
- static readonly RULE_constant = 176;
725
- static readonly RULE_timePointLiteral = 177;
726
- static readonly RULE_stringLiteral = 178;
727
- static readonly RULE_decimalLiteral = 179;
728
- static readonly RULE_booleanLiteral = 180;
729
- static readonly RULE_setQuantifier = 181;
730
- static readonly RULE_timePointUnit = 182;
731
- static readonly RULE_timeIntervalUnit = 183;
732
- static readonly RULE_reservedKeywordsUsedAsFuncParam = 184;
733
- static readonly RULE_reservedKeywordsUsedAsFuncName = 185;
734
- static readonly RULE_nonReservedKeywords = 186;
681
+ static readonly RULE_functionCallExpression = 133;
682
+ static readonly RULE_primaryExpression = 134;
683
+ static readonly RULE_functionNameCreate = 135;
684
+ static readonly RULE_functionName = 136;
685
+ static readonly RULE_functionNameAndParams = 137;
686
+ static readonly RULE_functionNameWithParams = 138;
687
+ static readonly RULE_functionParam = 139;
688
+ static readonly RULE_dereferenceDefinition = 140;
689
+ static readonly RULE_correlationName = 141;
690
+ static readonly RULE_qualifiedName = 142;
691
+ static readonly RULE_timeIntervalExpression = 143;
692
+ static readonly RULE_errorCapturingMultiUnitsInterval = 144;
693
+ static readonly RULE_multiUnitsInterval = 145;
694
+ static readonly RULE_errorCapturingUnitToUnitInterval = 146;
695
+ static readonly RULE_unitToUnitInterval = 147;
696
+ static readonly RULE_intervalValue = 148;
697
+ static readonly RULE_tableAlias = 149;
698
+ static readonly RULE_errorCapturingIdentifier = 150;
699
+ static readonly RULE_errorCapturingIdentifierExtra = 151;
700
+ static readonly RULE_identifierList = 152;
701
+ static readonly RULE_identifierSeq = 153;
702
+ static readonly RULE_identifier = 154;
703
+ static readonly RULE_unquotedIdentifier = 155;
704
+ static readonly RULE_quotedIdentifier = 156;
705
+ static readonly RULE_whenClause = 157;
706
+ static readonly RULE_catalogPath = 158;
707
+ static readonly RULE_catalogPathCreate = 159;
708
+ static readonly RULE_databasePath = 160;
709
+ static readonly RULE_databasePathCreate = 161;
710
+ static readonly RULE_tablePathCreate = 162;
711
+ static readonly RULE_tablePath = 163;
712
+ static readonly RULE_viewPath = 164;
713
+ static readonly RULE_viewPathCreate = 165;
714
+ static readonly RULE_uid = 166;
715
+ static readonly RULE_withOption = 167;
716
+ static readonly RULE_ifNotExists = 168;
717
+ static readonly RULE_ifExists = 169;
718
+ static readonly RULE_tablePropertyList = 170;
719
+ static readonly RULE_tableProperty = 171;
720
+ static readonly RULE_tablePropertyKey = 172;
721
+ static readonly RULE_tablePropertyValue = 173;
722
+ static readonly RULE_logicalOperator = 174;
723
+ static readonly RULE_comparisonOperator = 175;
724
+ static readonly RULE_bitOperator = 176;
725
+ static readonly RULE_mathOperator = 177;
726
+ static readonly RULE_unaryOperator = 178;
727
+ static readonly RULE_constant = 179;
728
+ static readonly RULE_timePointLiteral = 180;
729
+ static readonly RULE_stringLiteral = 181;
730
+ static readonly RULE_decimalLiteral = 182;
731
+ static readonly RULE_booleanLiteral = 183;
732
+ static readonly RULE_setQuantifier = 184;
733
+ static readonly RULE_timePointUnit = 185;
734
+ static readonly RULE_timeIntervalUnit = 186;
735
+ static readonly RULE_reservedKeywordsUsedAsFuncParam = 187;
736
+ static readonly RULE_reservedKeywordsNoParamsUsedAsFuncName = 188;
737
+ static readonly RULE_reservedKeywordsFollowParamsUsedAsFuncName = 189;
738
+ static readonly RULE_reservedKeywordsUsedAsFuncName = 190;
739
+ static readonly RULE_nonReservedKeywords = 191;
735
740
  static readonly literalNames: (string | null)[];
736
741
  static readonly symbolicNames: (string | null)[];
737
742
  static readonly ruleNames: string[];
@@ -879,10 +884,13 @@ export declare class FlinkSqlParser extends SQLParserBase {
879
884
  likePredicate(): LikePredicateContext;
880
885
  valueExpression(): ValueExpressionContext;
881
886
  valueExpression(_p: number): ValueExpressionContext;
887
+ functionCallExpression(): FunctionCallExpressionContext;
882
888
  primaryExpression(): PrimaryExpressionContext;
883
889
  primaryExpression(_p: number): PrimaryExpressionContext;
884
890
  functionNameCreate(): FunctionNameCreateContext;
885
891
  functionName(): FunctionNameContext;
892
+ functionNameAndParams(): FunctionNameAndParamsContext;
893
+ functionNameWithParams(): FunctionNameWithParamsContext;
886
894
  functionParam(): FunctionParamContext;
887
895
  dereferenceDefinition(): DereferenceDefinitionContext;
888
896
  correlationName(): CorrelationNameContext;
@@ -932,6 +940,8 @@ export declare class FlinkSqlParser extends SQLParserBase {
932
940
  timePointUnit(): TimePointUnitContext;
933
941
  timeIntervalUnit(): TimeIntervalUnitContext;
934
942
  reservedKeywordsUsedAsFuncParam(): ReservedKeywordsUsedAsFuncParamContext;
943
+ reservedKeywordsNoParamsUsedAsFuncName(): ReservedKeywordsNoParamsUsedAsFuncNameContext;
944
+ reservedKeywordsFollowParamsUsedAsFuncName(): ReservedKeywordsFollowParamsUsedAsFuncNameContext;
935
945
  reservedKeywordsUsedAsFuncName(): ReservedKeywordsUsedAsFuncNameContext;
936
946
  nonReservedKeywords(): NonReservedKeywordsContext;
937
947
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
@@ -1420,14 +1430,16 @@ export declare class MapTypeDimensionContext extends antlr.ParserRuleContext {
1420
1430
  }
1421
1431
  export declare class RowTypeDimensionContext extends antlr.ParserRuleContext {
1422
1432
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1423
- LESS_SYMBOL(): antlr.TerminalNode;
1433
+ LESS_SYMBOL(): antlr.TerminalNode | null;
1424
1434
  columnName(): ColumnNameContext[];
1425
1435
  columnName(i: number): ColumnNameContext | null;
1426
1436
  columnType(): ColumnTypeContext[];
1427
1437
  columnType(i: number): ColumnTypeContext | null;
1428
- GREATER_SYMBOL(): antlr.TerminalNode;
1438
+ GREATER_SYMBOL(): antlr.TerminalNode | null;
1429
1439
  COMMA(): antlr.TerminalNode[];
1430
1440
  COMMA(i: number): antlr.TerminalNode | null;
1441
+ LR_BRACKET(): antlr.TerminalNode | null;
1442
+ RR_BRACKET(): antlr.TerminalNode | null;
1431
1443
  get ruleIndex(): number;
1432
1444
  enterRule(listener: FlinkSqlParserListener): void;
1433
1445
  exitRule(listener: FlinkSqlParserListener): void;
@@ -2083,8 +2095,8 @@ export declare class SelectClauseContext extends antlr.ParserRuleContext {
2083
2095
  export declare class ProjectItemDefinitionContext extends antlr.ParserRuleContext {
2084
2096
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2085
2097
  overWindowItem(): OverWindowItemContext | null;
2086
- columnName(): ColumnNameContext | null;
2087
2098
  expression(): ExpressionContext | null;
2099
+ columnName(): ColumnNameContext | null;
2088
2100
  KW_AS(): antlr.TerminalNode | null;
2089
2101
  get ruleIndex(): number;
2090
2102
  enterRule(listener: FlinkSqlParserListener): void;
@@ -2153,15 +2165,9 @@ export declare class TablePrimaryContext extends antlr.ParserRuleContext {
2153
2165
  systemTimePeriod(): SystemTimePeriodContext | null;
2154
2166
  viewPath(): ViewPathContext | null;
2155
2167
  KW_LATERAL(): antlr.TerminalNode | null;
2156
- LR_BRACKET(): antlr.TerminalNode[];
2157
- LR_BRACKET(i: number): antlr.TerminalNode | null;
2158
- functionName(): FunctionNameContext | null;
2159
- functionParam(): FunctionParamContext[];
2160
- functionParam(i: number): FunctionParamContext | null;
2161
- RR_BRACKET(): antlr.TerminalNode[];
2162
- RR_BRACKET(i: number): antlr.TerminalNode | null;
2163
- COMMA(): antlr.TerminalNode[];
2164
- COMMA(i: number): antlr.TerminalNode | null;
2168
+ LR_BRACKET(): antlr.TerminalNode | null;
2169
+ functionCallExpression(): FunctionCallExpressionContext | null;
2170
+ RR_BRACKET(): antlr.TerminalNode | null;
2165
2171
  queryStatement(): QueryStatementContext | null;
2166
2172
  KW_UNNEST(): antlr.TerminalNode | null;
2167
2173
  expression(): ExpressionContext | null;
@@ -2486,6 +2492,8 @@ export declare class PartitionByClauseContext extends antlr.ParserRuleContext {
2486
2492
  KW_BY(): antlr.TerminalNode;
2487
2493
  columnName(): ColumnNameContext[];
2488
2494
  columnName(i: number): ColumnNameContext | null;
2495
+ primaryExpression(): PrimaryExpressionContext[];
2496
+ primaryExpression(i: number): PrimaryExpressionContext | null;
2489
2497
  COMMA(): antlr.TerminalNode[];
2490
2498
  COMMA(i: number): antlr.TerminalNode | null;
2491
2499
  get ruleIndex(): number;
@@ -2802,6 +2810,23 @@ export declare class ArithmeticUnaryContext extends ValueExpressionContext {
2802
2810
  exitRule(listener: FlinkSqlParserListener): void;
2803
2811
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
2804
2812
  }
2813
+ export declare class FunctionCallExpressionContext extends antlr.ParserRuleContext {
2814
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2815
+ reservedKeywordsNoParamsUsedAsFuncName(): ReservedKeywordsNoParamsUsedAsFuncNameContext | null;
2816
+ functionNameAndParams(): FunctionNameAndParamsContext | null;
2817
+ functionNameWithParams(): FunctionNameWithParamsContext | null;
2818
+ LR_BRACKET(): antlr.TerminalNode | null;
2819
+ RR_BRACKET(): antlr.TerminalNode | null;
2820
+ functionParam(): FunctionParamContext[];
2821
+ functionParam(i: number): FunctionParamContext | null;
2822
+ setQuantifier(): SetQuantifierContext | null;
2823
+ COMMA(): antlr.TerminalNode[];
2824
+ COMMA(i: number): antlr.TerminalNode | null;
2825
+ get ruleIndex(): number;
2826
+ enterRule(listener: FlinkSqlParserListener): void;
2827
+ exitRule(listener: FlinkSqlParserListener): void;
2828
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
2829
+ }
2805
2830
  export declare class PrimaryExpressionContext extends antlr.ParserRuleContext {
2806
2831
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2807
2832
  get ruleIndex(): number;
@@ -2908,14 +2933,7 @@ export declare class ParenthesizedExpressionContext extends PrimaryExpressionCon
2908
2933
  }
2909
2934
  export declare class FunctionCallContext extends PrimaryExpressionContext {
2910
2935
  constructor(ctx: PrimaryExpressionContext);
2911
- functionName(): FunctionNameContext;
2912
- LR_BRACKET(): antlr.TerminalNode;
2913
- RR_BRACKET(): antlr.TerminalNode;
2914
- functionParam(): FunctionParamContext[];
2915
- functionParam(i: number): FunctionParamContext | null;
2916
- setQuantifier(): SetQuantifierContext | null;
2917
- COMMA(): antlr.TerminalNode[];
2918
- COMMA(i: number): antlr.TerminalNode | null;
2936
+ functionCallExpression(): FunctionCallExpressionContext;
2919
2937
  enterRule(listener: FlinkSqlParserListener): void;
2920
2938
  exitRule(listener: FlinkSqlParserListener): void;
2921
2939
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
@@ -2947,13 +2965,6 @@ export declare class PositionContext extends PrimaryExpressionContext {
2947
2965
  exitRule(listener: FlinkSqlParserListener): void;
2948
2966
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
2949
2967
  }
2950
- export declare class DateFunctionExpressionContext extends PrimaryExpressionContext {
2951
- constructor(ctx: PrimaryExpressionContext);
2952
- KW_CURRENT_TIMESTAMP(): antlr.TerminalNode;
2953
- enterRule(listener: FlinkSqlParserListener): void;
2954
- exitRule(listener: FlinkSqlParserListener): void;
2955
- accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
2956
- }
2957
2968
  export declare class FirstContext extends PrimaryExpressionContext {
2958
2969
  constructor(ctx: PrimaryExpressionContext);
2959
2970
  KW_FIRST(): antlr.TerminalNode;
@@ -2975,6 +2986,27 @@ export declare class FunctionNameCreateContext extends antlr.ParserRuleContext {
2975
2986
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
2976
2987
  }
2977
2988
  export declare class FunctionNameContext extends antlr.ParserRuleContext {
2989
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2990
+ reservedKeywordsUsedAsFuncName(): ReservedKeywordsUsedAsFuncNameContext | null;
2991
+ reservedKeywordsNoParamsUsedAsFuncName(): ReservedKeywordsNoParamsUsedAsFuncNameContext | null;
2992
+ reservedKeywordsFollowParamsUsedAsFuncName(): ReservedKeywordsFollowParamsUsedAsFuncNameContext | null;
2993
+ uid(): UidContext | null;
2994
+ get ruleIndex(): number;
2995
+ enterRule(listener: FlinkSqlParserListener): void;
2996
+ exitRule(listener: FlinkSqlParserListener): void;
2997
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
2998
+ }
2999
+ export declare class FunctionNameAndParamsContext extends antlr.ParserRuleContext {
3000
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3001
+ reservedKeywordsFollowParamsUsedAsFuncName(): ReservedKeywordsFollowParamsUsedAsFuncNameContext | null;
3002
+ STRING_LITERAL(): antlr.TerminalNode | null;
3003
+ timeIntervalExpression(): TimeIntervalExpressionContext | null;
3004
+ get ruleIndex(): number;
3005
+ enterRule(listener: FlinkSqlParserListener): void;
3006
+ exitRule(listener: FlinkSqlParserListener): void;
3007
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
3008
+ }
3009
+ export declare class FunctionNameWithParamsContext extends antlr.ParserRuleContext {
2978
3010
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2979
3011
  reservedKeywordsUsedAsFuncName(): ReservedKeywordsUsedAsFuncNameContext | null;
2980
3012
  uid(): UidContext | null;
@@ -3561,6 +3593,28 @@ export declare class ReservedKeywordsUsedAsFuncParamContext extends antlr.Parser
3561
3593
  exitRule(listener: FlinkSqlParserListener): void;
3562
3594
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
3563
3595
  }
3596
+ export declare class ReservedKeywordsNoParamsUsedAsFuncNameContext extends antlr.ParserRuleContext {
3597
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3598
+ KW_LOCALTIME(): antlr.TerminalNode | null;
3599
+ KW_LOCALTIMESTAMP(): antlr.TerminalNode | null;
3600
+ KW_CURRENT_TIME(): antlr.TerminalNode | null;
3601
+ KW_CURRENT_DATE(): antlr.TerminalNode | null;
3602
+ KW_CURRENT_TIMESTAMP(): antlr.TerminalNode | null;
3603
+ get ruleIndex(): number;
3604
+ enterRule(listener: FlinkSqlParserListener): void;
3605
+ exitRule(listener: FlinkSqlParserListener): void;
3606
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
3607
+ }
3608
+ export declare class ReservedKeywordsFollowParamsUsedAsFuncNameContext extends antlr.ParserRuleContext {
3609
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3610
+ KW_DATE(): antlr.TerminalNode | null;
3611
+ KW_TIME(): antlr.TerminalNode | null;
3612
+ KW_TIMESTAMP(): antlr.TerminalNode | null;
3613
+ get ruleIndex(): number;
3614
+ enterRule(listener: FlinkSqlParserListener): void;
3615
+ exitRule(listener: FlinkSqlParserListener): void;
3616
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result | null;
3617
+ }
3564
3618
  export declare class ReservedKeywordsUsedAsFuncNameContext extends antlr.ParserRuleContext {
3565
3619
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3566
3620
  KW_ABS(): antlr.TerminalNode | null;
@@ -3574,10 +3628,6 @@ export declare class ReservedKeywordsUsedAsFuncNameContext extends antlr.ParserR
3574
3628
  KW_COLLECT(): antlr.TerminalNode | null;
3575
3629
  KW_COUNT(): antlr.TerminalNode | null;
3576
3630
  KW_CUME_DIST(): antlr.TerminalNode | null;
3577
- KW_CURRENT_DATE(): antlr.TerminalNode | null;
3578
- KW_CURRENT_TIME(): antlr.TerminalNode | null;
3579
- KW_CURRENT_TIMESTAMP(): antlr.TerminalNode | null;
3580
- KW_DATE(): antlr.TerminalNode | null;
3581
3631
  KW_DAYOFWEEK(): antlr.TerminalNode | null;
3582
3632
  KW_DAYOFYEAR(): antlr.TerminalNode | null;
3583
3633
  KW_DENSE_RANK(): antlr.TerminalNode | null;
@@ -3594,8 +3644,6 @@ export declare class ReservedKeywordsUsedAsFuncNameContext extends antlr.ParserR
3594
3644
  KW_LEAD(): antlr.TerminalNode | null;
3595
3645
  KW_LEFT(): antlr.TerminalNode | null;
3596
3646
  KW_LN(): antlr.TerminalNode | null;
3597
- KW_LOCALTIME(): antlr.TerminalNode | null;
3598
- KW_LOCALTIMESTAMP(): antlr.TerminalNode | null;
3599
3647
  KW_LOWER(): antlr.TerminalNode | null;
3600
3648
  KW_MAP(): antlr.TerminalNode | null;
3601
3649
  KW_MAX(): antlr.TerminalNode | null;
@@ -3620,8 +3668,6 @@ export declare class ReservedKeywordsUsedAsFuncNameContext extends antlr.ParserR
3620
3668
  KW_STDDEV_SAMP(): antlr.TerminalNode | null;
3621
3669
  KW_SUBSTRING(): antlr.TerminalNode | null;
3622
3670
  KW_SUM(): antlr.TerminalNode | null;
3623
- KW_TIME(): antlr.TerminalNode | null;
3624
- KW_TIMESTAMP(): antlr.TerminalNode | null;
3625
3671
  KW_TIMESTAMP_DIFF(): antlr.TerminalNode | null;
3626
3672
  KW_TRIM(): antlr.TerminalNode | null;
3627
3673
  KW_TRUNCATE(): antlr.TerminalNode | null;