dt-sql-parser 4.0.0-beta.4.2 → 4.0.0-beta.4.3

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 (80) hide show
  1. package/README.md +124 -43
  2. package/dist/index.d.ts +3 -3
  3. package/dist/index.js +2 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/flinksql/FlinkSqlParser.d.ts +122 -64
  6. package/dist/lib/flinksql/FlinkSqlParser.js +3429 -2829
  7. package/dist/lib/flinksql/FlinkSqlParser.js.map +1 -1
  8. package/dist/lib/flinksql/FlinkSqlParserListener.d.ts +44 -0
  9. package/dist/lib/flinksql/FlinkSqlParserVisitor.d.ts +28 -0
  10. package/dist/lib/hive/HiveSqlLexer.d.ts +365 -350
  11. package/dist/lib/hive/HiveSqlLexer.js +2395 -2339
  12. package/dist/lib/hive/HiveSqlLexer.js.map +1 -1
  13. package/dist/lib/hive/HiveSqlParser.d.ts +1213 -967
  14. package/dist/lib/hive/HiveSqlParser.js +10262 -8596
  15. package/dist/lib/hive/HiveSqlParser.js.map +1 -1
  16. package/dist/lib/hive/HiveSqlParserListener.d.ts +225 -27
  17. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +143 -17
  18. package/dist/lib/pgsql/PostgreSQLLexerBase.js +0 -4
  19. package/dist/lib/pgsql/PostgreSQLLexerBase.js.map +1 -1
  20. package/dist/lib/pgsql/PostgreSQLParserBase.js +0 -6
  21. package/dist/lib/pgsql/PostgreSQLParserBase.js.map +1 -1
  22. package/dist/lib/spark/SparkSqlLexer.d.ts +398 -322
  23. package/dist/lib/spark/SparkSqlLexer.js +2302 -1738
  24. package/dist/lib/spark/SparkSqlLexer.js.map +1 -1
  25. package/dist/lib/spark/SparkSqlParser.d.ts +3319 -3314
  26. package/dist/lib/spark/SparkSqlParser.js +18718 -16132
  27. package/dist/lib/spark/SparkSqlParser.js.map +1 -1
  28. package/dist/lib/spark/SparkSqlParserListener.d.ts +2130 -0
  29. package/dist/lib/spark/SparkSqlParserListener.js +3 -0
  30. package/dist/lib/spark/SparkSqlParserListener.js.map +1 -0
  31. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +1361 -0
  32. package/dist/lib/spark/SparkSqlParserVisitor.js +3 -0
  33. package/dist/lib/spark/SparkSqlParserVisitor.js.map +1 -0
  34. package/dist/parser/common/basic-parser-types.d.ts +16 -3
  35. package/dist/parser/common/basic-parser-types.js +12 -2
  36. package/dist/parser/common/basic-parser-types.js.map +1 -1
  37. package/dist/parser/common/basicParser.d.ts +27 -28
  38. package/dist/parser/common/basicParser.js +76 -60
  39. package/dist/parser/common/basicParser.js.map +1 -1
  40. package/dist/parser/common/parseErrorListener.d.ts +33 -0
  41. package/dist/parser/common/parseErrorListener.js +28 -0
  42. package/dist/parser/common/parseErrorListener.js.map +1 -0
  43. package/dist/parser/flinksql.js +32 -13
  44. package/dist/parser/flinksql.js.map +1 -1
  45. package/dist/parser/generic.js +1 -1
  46. package/dist/parser/generic.js.map +1 -1
  47. package/dist/parser/hive.d.ts +10 -3
  48. package/dist/parser/hive.js +89 -5
  49. package/dist/parser/hive.js.map +1 -1
  50. package/dist/parser/index.d.ts +1 -0
  51. package/dist/parser/index.js +1 -0
  52. package/dist/parser/index.js.map +1 -1
  53. package/dist/parser/pgsql.js +1 -1
  54. package/dist/parser/pgsql.js.map +1 -1
  55. package/dist/parser/plsql.js +1 -1
  56. package/dist/parser/plsql.js.map +1 -1
  57. package/dist/parser/spark.d.ts +10 -3
  58. package/dist/parser/spark.js +90 -7
  59. package/dist/parser/spark.js.map +1 -1
  60. package/dist/parser/trinosql.js +1 -1
  61. package/dist/parser/trinosql.js.map +1 -1
  62. package/dist/utils/findCaretTokenIndex.d.ts +2 -2
  63. package/dist/utils/findCaretTokenIndex.js +5 -4
  64. package/dist/utils/findCaretTokenIndex.js.map +1 -1
  65. package/dist/utils/index.d.ts +1 -1
  66. package/dist/utils/index.js +1 -5
  67. package/dist/utils/index.js.map +1 -1
  68. package/dist/utils/token.d.ts +2 -2
  69. package/dist/utils/token.js +2 -2
  70. package/dist/utils/token.js.map +1 -1
  71. package/package.json +15 -9
  72. package/dist/lib/spark/SparkSqlListener.d.ts +0 -3516
  73. package/dist/lib/spark/SparkSqlListener.js +0 -3
  74. package/dist/lib/spark/SparkSqlListener.js.map +0 -1
  75. package/dist/lib/spark/SparkSqlVisitor.d.ts +0 -2201
  76. package/dist/lib/spark/SparkSqlVisitor.js +0 -3
  77. package/dist/lib/spark/SparkSqlVisitor.js.map +0 -1
  78. package/dist/parser/common/parserErrorListener.d.ts +0 -30
  79. package/dist/parser/common/parserErrorListener.js +0 -62
  80. package/dist/parser/common/parserErrorListener.js.map +0 -1
@@ -7,6 +7,7 @@ import { VectorizationOnlyContext } from "./HiveSqlParser";
7
7
  import { VectorizatonDetailContext } from "./HiveSqlParser";
8
8
  import { ExecStatementContext } from "./HiveSqlParser";
9
9
  import { LoadStatementContext } from "./HiveSqlParser";
10
+ import { DropPartitionsIgnoreClauseContext } from "./HiveSqlParser";
10
11
  import { ReplicationClauseContext } from "./HiveSqlParser";
11
12
  import { ExportStatementContext } from "./HiveSqlParser";
12
13
  import { ImportStatementContext } from "./HiveSqlParser";
@@ -73,6 +74,7 @@ import { PrivlegeDefContext } from "./HiveSqlParser";
73
74
  import { PrivilegeTypeContext } from "./HiveSqlParser";
74
75
  import { PrincipalSpecificationContext } from "./HiveSqlParser";
75
76
  import { PrincipalNameContext } from "./HiveSqlParser";
77
+ import { PrincipalAlterNameContext } from "./HiveSqlParser";
76
78
  import { WithGrantOptionContext } from "./HiveSqlParser";
77
79
  import { GrantOptionForContext } from "./HiveSqlParser";
78
80
  import { AdminOptionForContext } from "./HiveSqlParser";
@@ -105,7 +107,6 @@ import { AlterScheduledQueryChangeContext } from "./HiveSqlParser";
105
107
  import { ScheduleSpecContext } from "./HiveSqlParser";
106
108
  import { ExecutedAsSpecContext } from "./HiveSqlParser";
107
109
  import { DefinedAsSpecContext } from "./HiveSqlParser";
108
- import { ShowFunctionIdentifierContext } from "./HiveSqlParser";
109
110
  import { ShowStmtIdentifierContext } from "./HiveSqlParser";
110
111
  import { TableCommentContext } from "./HiveSqlParser";
111
112
  import { CreateTablePartitionSpecContext } from "./HiveSqlParser";
@@ -264,6 +265,7 @@ import { AlterStatementSuffixTouchContext } from "./HiveSqlParser";
264
265
  import { AlterStatementSuffixArchiveContext } from "./HiveSqlParser";
265
266
  import { AlterStatementSuffixUnArchiveContext } from "./HiveSqlParser";
266
267
  import { PartitionLocationContext } from "./HiveSqlParser";
268
+ import { AlterStatementSuffixRecoverPartitionsContext } from "./HiveSqlParser";
267
269
  import { AlterStatementSuffixDropPartitionsContext } from "./HiveSqlParser";
268
270
  import { AlterStatementSuffixPropertiesContext } from "./HiveSqlParser";
269
271
  import { AlterViewSuffixPropertiesContext } from "./HiveSqlParser";
@@ -324,8 +326,13 @@ import { TableSampleContext } from "./HiveSqlParser";
324
326
  import { TableSourceContext } from "./HiveSqlParser";
325
327
  import { AsOfClauseContext } from "./HiveSqlParser";
326
328
  import { UniqueJoinTableSourceContext } from "./HiveSqlParser";
329
+ import { DbSchemaNameContext } from "./HiveSqlParser";
330
+ import { DbSchemaNameCreateContext } from "./HiveSqlParser";
331
+ import { TableOrViewContext } from "./HiveSqlParser";
327
332
  import { TableNameContext } from "./HiveSqlParser";
333
+ import { TableNameCreateContext } from "./HiveSqlParser";
328
334
  import { ViewNameContext } from "./HiveSqlParser";
335
+ import { ViewNameCreateContext } from "./HiveSqlParser";
329
336
  import { SubQuerySourceContext } from "./HiveSqlParser";
330
337
  import { PartitioningSpecContext } from "./HiveSqlParser";
331
338
  import { PartitionTableFunctionSourceContext } from "./HiveSqlParser";
@@ -382,7 +389,11 @@ import { SortByClauseContext } from "./HiveSqlParser";
382
389
  import { TrimFunctionContext } from "./HiveSqlParser";
383
390
  import { Function_Context } from "./HiveSqlParser";
384
391
  import { Null_treatmentContext } from "./HiveSqlParser";
385
- import { FunctionNameContext } from "./HiveSqlParser";
392
+ import { FunctionNameCreateContext } from "./HiveSqlParser";
393
+ import { FunctionNameForDDLContext } from "./HiveSqlParser";
394
+ import { FunctionNameForInvokeContext } from "./HiveSqlParser";
395
+ import { UserDefinedFuncNameContext } from "./HiveSqlParser";
396
+ import { InternalFunctionNameContext } from "./HiveSqlParser";
386
397
  import { CastExpressionContext } from "./HiveSqlParser";
387
398
  import { CaseExpressionContext } from "./HiveSqlParser";
388
399
  import { WhenExpressionContext } from "./HiveSqlParser";
@@ -451,7 +462,6 @@ import { PartitionSelectorValContext } from "./HiveSqlParser";
451
462
  import { PartitionSelectorOperatorContext } from "./HiveSqlParser";
452
463
  import { SubQuerySelectorOperatorContext } from "./HiveSqlParser";
453
464
  import { SysFuncNamesContext } from "./HiveSqlParser";
454
- import { DescFuncNamesContext } from "./HiveSqlParser";
455
465
  import { Id_Context } from "./HiveSqlParser";
456
466
  import { FunctionIdentifierContext } from "./HiveSqlParser";
457
467
  import { PrincipalIdentifierContext } from "./HiveSqlParser";
@@ -477,6 +487,14 @@ import { ActivateContext } from "./HiveSqlParser";
477
487
  import { EnableContext } from "./HiveSqlParser";
478
488
  import { DisableContext } from "./HiveSqlParser";
479
489
  import { UnmanagedContext } from "./HiveSqlParser";
490
+ import { YearContext } from "./HiveSqlParser";
491
+ import { MonthContext } from "./HiveSqlParser";
492
+ import { WeekContext } from "./HiveSqlParser";
493
+ import { DayContext } from "./HiveSqlParser";
494
+ import { HourContext } from "./HiveSqlParser";
495
+ import { MinuteContext } from "./HiveSqlParser";
496
+ import { SecondContext } from "./HiveSqlParser";
497
+ import { DecimalContext } from "./HiveSqlParser";
480
498
  import { AlterResourcePlanStatementContext } from "./HiveSqlParser";
481
499
  import { GlobalWmStatementContext } from "./HiveSqlParser";
482
500
  import { ReplaceResourcePlanStatementContext } from "./HiveSqlParser";
@@ -587,6 +605,16 @@ export interface HiveSqlParserListener extends ParseTreeListener {
587
605
  * @param ctx the parse tree
588
606
  */
589
607
  exitLoadStatement?: (ctx: LoadStatementContext) => void;
608
+ /**
609
+ * Enter a parse tree produced by `HiveSqlParser.dropPartitionsIgnoreClause`.
610
+ * @param ctx the parse tree
611
+ */
612
+ enterDropPartitionsIgnoreClause?: (ctx: DropPartitionsIgnoreClauseContext) => void;
613
+ /**
614
+ * Exit a parse tree produced by `HiveSqlParser.dropPartitionsIgnoreClause`.
615
+ * @param ctx the parse tree
616
+ */
617
+ exitDropPartitionsIgnoreClause?: (ctx: DropPartitionsIgnoreClauseContext) => void;
590
618
  /**
591
619
  * Enter a parse tree produced by `HiveSqlParser.replicationClause`.
592
620
  * @param ctx the parse tree
@@ -1247,6 +1275,16 @@ export interface HiveSqlParserListener extends ParseTreeListener {
1247
1275
  * @param ctx the parse tree
1248
1276
  */
1249
1277
  exitPrincipalName?: (ctx: PrincipalNameContext) => void;
1278
+ /**
1279
+ * Enter a parse tree produced by `HiveSqlParser.principalAlterName`.
1280
+ * @param ctx the parse tree
1281
+ */
1282
+ enterPrincipalAlterName?: (ctx: PrincipalAlterNameContext) => void;
1283
+ /**
1284
+ * Exit a parse tree produced by `HiveSqlParser.principalAlterName`.
1285
+ * @param ctx the parse tree
1286
+ */
1287
+ exitPrincipalAlterName?: (ctx: PrincipalAlterNameContext) => void;
1250
1288
  /**
1251
1289
  * Enter a parse tree produced by `HiveSqlParser.withGrantOption`.
1252
1290
  * @param ctx the parse tree
@@ -1567,16 +1605,6 @@ export interface HiveSqlParserListener extends ParseTreeListener {
1567
1605
  * @param ctx the parse tree
1568
1606
  */
1569
1607
  exitDefinedAsSpec?: (ctx: DefinedAsSpecContext) => void;
1570
- /**
1571
- * Enter a parse tree produced by `HiveSqlParser.showFunctionIdentifier`.
1572
- * @param ctx the parse tree
1573
- */
1574
- enterShowFunctionIdentifier?: (ctx: ShowFunctionIdentifierContext) => void;
1575
- /**
1576
- * Exit a parse tree produced by `HiveSqlParser.showFunctionIdentifier`.
1577
- * @param ctx the parse tree
1578
- */
1579
- exitShowFunctionIdentifier?: (ctx: ShowFunctionIdentifierContext) => void;
1580
1608
  /**
1581
1609
  * Enter a parse tree produced by `HiveSqlParser.showStmtIdentifier`.
1582
1610
  * @param ctx the parse tree
@@ -3157,6 +3185,16 @@ export interface HiveSqlParserListener extends ParseTreeListener {
3157
3185
  * @param ctx the parse tree
3158
3186
  */
3159
3187
  exitPartitionLocation?: (ctx: PartitionLocationContext) => void;
3188
+ /**
3189
+ * Enter a parse tree produced by `HiveSqlParser.alterStatementSuffixRecoverPartitions`.
3190
+ * @param ctx the parse tree
3191
+ */
3192
+ enterAlterStatementSuffixRecoverPartitions?: (ctx: AlterStatementSuffixRecoverPartitionsContext) => void;
3193
+ /**
3194
+ * Exit a parse tree produced by `HiveSqlParser.alterStatementSuffixRecoverPartitions`.
3195
+ * @param ctx the parse tree
3196
+ */
3197
+ exitAlterStatementSuffixRecoverPartitions?: (ctx: AlterStatementSuffixRecoverPartitionsContext) => void;
3160
3198
  /**
3161
3199
  * Enter a parse tree produced by `HiveSqlParser.alterStatementSuffixDropPartitions`.
3162
3200
  * @param ctx the parse tree
@@ -3757,6 +3795,36 @@ export interface HiveSqlParserListener extends ParseTreeListener {
3757
3795
  * @param ctx the parse tree
3758
3796
  */
3759
3797
  exitUniqueJoinTableSource?: (ctx: UniqueJoinTableSourceContext) => void;
3798
+ /**
3799
+ * Enter a parse tree produced by `HiveSqlParser.dbSchemaName`.
3800
+ * @param ctx the parse tree
3801
+ */
3802
+ enterDbSchemaName?: (ctx: DbSchemaNameContext) => void;
3803
+ /**
3804
+ * Exit a parse tree produced by `HiveSqlParser.dbSchemaName`.
3805
+ * @param ctx the parse tree
3806
+ */
3807
+ exitDbSchemaName?: (ctx: DbSchemaNameContext) => void;
3808
+ /**
3809
+ * Enter a parse tree produced by `HiveSqlParser.dbSchemaNameCreate`.
3810
+ * @param ctx the parse tree
3811
+ */
3812
+ enterDbSchemaNameCreate?: (ctx: DbSchemaNameCreateContext) => void;
3813
+ /**
3814
+ * Exit a parse tree produced by `HiveSqlParser.dbSchemaNameCreate`.
3815
+ * @param ctx the parse tree
3816
+ */
3817
+ exitDbSchemaNameCreate?: (ctx: DbSchemaNameCreateContext) => void;
3818
+ /**
3819
+ * Enter a parse tree produced by `HiveSqlParser.tableOrView`.
3820
+ * @param ctx the parse tree
3821
+ */
3822
+ enterTableOrView?: (ctx: TableOrViewContext) => void;
3823
+ /**
3824
+ * Exit a parse tree produced by `HiveSqlParser.tableOrView`.
3825
+ * @param ctx the parse tree
3826
+ */
3827
+ exitTableOrView?: (ctx: TableOrViewContext) => void;
3760
3828
  /**
3761
3829
  * Enter a parse tree produced by `HiveSqlParser.tableName`.
3762
3830
  * @param ctx the parse tree
@@ -3767,6 +3835,16 @@ export interface HiveSqlParserListener extends ParseTreeListener {
3767
3835
  * @param ctx the parse tree
3768
3836
  */
3769
3837
  exitTableName?: (ctx: TableNameContext) => void;
3838
+ /**
3839
+ * Enter a parse tree produced by `HiveSqlParser.tableNameCreate`.
3840
+ * @param ctx the parse tree
3841
+ */
3842
+ enterTableNameCreate?: (ctx: TableNameCreateContext) => void;
3843
+ /**
3844
+ * Exit a parse tree produced by `HiveSqlParser.tableNameCreate`.
3845
+ * @param ctx the parse tree
3846
+ */
3847
+ exitTableNameCreate?: (ctx: TableNameCreateContext) => void;
3770
3848
  /**
3771
3849
  * Enter a parse tree produced by `HiveSqlParser.viewName`.
3772
3850
  * @param ctx the parse tree
@@ -3777,6 +3855,16 @@ export interface HiveSqlParserListener extends ParseTreeListener {
3777
3855
  * @param ctx the parse tree
3778
3856
  */
3779
3857
  exitViewName?: (ctx: ViewNameContext) => void;
3858
+ /**
3859
+ * Enter a parse tree produced by `HiveSqlParser.viewNameCreate`.
3860
+ * @param ctx the parse tree
3861
+ */
3862
+ enterViewNameCreate?: (ctx: ViewNameCreateContext) => void;
3863
+ /**
3864
+ * Exit a parse tree produced by `HiveSqlParser.viewNameCreate`.
3865
+ * @param ctx the parse tree
3866
+ */
3867
+ exitViewNameCreate?: (ctx: ViewNameCreateContext) => void;
3780
3868
  /**
3781
3869
  * Enter a parse tree produced by `HiveSqlParser.subQuerySource`.
3782
3870
  * @param ctx the parse tree
@@ -4338,15 +4426,55 @@ export interface HiveSqlParserListener extends ParseTreeListener {
4338
4426
  */
4339
4427
  exitNull_treatment?: (ctx: Null_treatmentContext) => void;
4340
4428
  /**
4341
- * Enter a parse tree produced by `HiveSqlParser.functionName`.
4429
+ * Enter a parse tree produced by `HiveSqlParser.functionNameCreate`.
4430
+ * @param ctx the parse tree
4431
+ */
4432
+ enterFunctionNameCreate?: (ctx: FunctionNameCreateContext) => void;
4433
+ /**
4434
+ * Exit a parse tree produced by `HiveSqlParser.functionNameCreate`.
4435
+ * @param ctx the parse tree
4436
+ */
4437
+ exitFunctionNameCreate?: (ctx: FunctionNameCreateContext) => void;
4438
+ /**
4439
+ * Enter a parse tree produced by `HiveSqlParser.functionNameForDDL`.
4440
+ * @param ctx the parse tree
4441
+ */
4442
+ enterFunctionNameForDDL?: (ctx: FunctionNameForDDLContext) => void;
4443
+ /**
4444
+ * Exit a parse tree produced by `HiveSqlParser.functionNameForDDL`.
4445
+ * @param ctx the parse tree
4446
+ */
4447
+ exitFunctionNameForDDL?: (ctx: FunctionNameForDDLContext) => void;
4448
+ /**
4449
+ * Enter a parse tree produced by `HiveSqlParser.functionNameForInvoke`.
4342
4450
  * @param ctx the parse tree
4343
4451
  */
4344
- enterFunctionName?: (ctx: FunctionNameContext) => void;
4452
+ enterFunctionNameForInvoke?: (ctx: FunctionNameForInvokeContext) => void;
4345
4453
  /**
4346
- * Exit a parse tree produced by `HiveSqlParser.functionName`.
4454
+ * Exit a parse tree produced by `HiveSqlParser.functionNameForInvoke`.
4347
4455
  * @param ctx the parse tree
4348
4456
  */
4349
- exitFunctionName?: (ctx: FunctionNameContext) => void;
4457
+ exitFunctionNameForInvoke?: (ctx: FunctionNameForInvokeContext) => void;
4458
+ /**
4459
+ * Enter a parse tree produced by `HiveSqlParser.userDefinedFuncName`.
4460
+ * @param ctx the parse tree
4461
+ */
4462
+ enterUserDefinedFuncName?: (ctx: UserDefinedFuncNameContext) => void;
4463
+ /**
4464
+ * Exit a parse tree produced by `HiveSqlParser.userDefinedFuncName`.
4465
+ * @param ctx the parse tree
4466
+ */
4467
+ exitUserDefinedFuncName?: (ctx: UserDefinedFuncNameContext) => void;
4468
+ /**
4469
+ * Enter a parse tree produced by `HiveSqlParser.internalFunctionName`.
4470
+ * @param ctx the parse tree
4471
+ */
4472
+ enterInternalFunctionName?: (ctx: InternalFunctionNameContext) => void;
4473
+ /**
4474
+ * Exit a parse tree produced by `HiveSqlParser.internalFunctionName`.
4475
+ * @param ctx the parse tree
4476
+ */
4477
+ exitInternalFunctionName?: (ctx: InternalFunctionNameContext) => void;
4350
4478
  /**
4351
4479
  * Enter a parse tree produced by `HiveSqlParser.castExpression`.
4352
4480
  * @param ctx the parse tree
@@ -5027,16 +5155,6 @@ export interface HiveSqlParserListener extends ParseTreeListener {
5027
5155
  * @param ctx the parse tree
5028
5156
  */
5029
5157
  exitSysFuncNames?: (ctx: SysFuncNamesContext) => void;
5030
- /**
5031
- * Enter a parse tree produced by `HiveSqlParser.descFuncNames`.
5032
- * @param ctx the parse tree
5033
- */
5034
- enterDescFuncNames?: (ctx: DescFuncNamesContext) => void;
5035
- /**
5036
- * Exit a parse tree produced by `HiveSqlParser.descFuncNames`.
5037
- * @param ctx the parse tree
5038
- */
5039
- exitDescFuncNames?: (ctx: DescFuncNamesContext) => void;
5040
5158
  /**
5041
5159
  * Enter a parse tree produced by `HiveSqlParser.id_`.
5042
5160
  * @param ctx the parse tree
@@ -5287,6 +5405,86 @@ export interface HiveSqlParserListener extends ParseTreeListener {
5287
5405
  * @param ctx the parse tree
5288
5406
  */
5289
5407
  exitUnmanaged?: (ctx: UnmanagedContext) => void;
5408
+ /**
5409
+ * Enter a parse tree produced by `HiveSqlParser.year`.
5410
+ * @param ctx the parse tree
5411
+ */
5412
+ enterYear?: (ctx: YearContext) => void;
5413
+ /**
5414
+ * Exit a parse tree produced by `HiveSqlParser.year`.
5415
+ * @param ctx the parse tree
5416
+ */
5417
+ exitYear?: (ctx: YearContext) => void;
5418
+ /**
5419
+ * Enter a parse tree produced by `HiveSqlParser.month`.
5420
+ * @param ctx the parse tree
5421
+ */
5422
+ enterMonth?: (ctx: MonthContext) => void;
5423
+ /**
5424
+ * Exit a parse tree produced by `HiveSqlParser.month`.
5425
+ * @param ctx the parse tree
5426
+ */
5427
+ exitMonth?: (ctx: MonthContext) => void;
5428
+ /**
5429
+ * Enter a parse tree produced by `HiveSqlParser.week`.
5430
+ * @param ctx the parse tree
5431
+ */
5432
+ enterWeek?: (ctx: WeekContext) => void;
5433
+ /**
5434
+ * Exit a parse tree produced by `HiveSqlParser.week`.
5435
+ * @param ctx the parse tree
5436
+ */
5437
+ exitWeek?: (ctx: WeekContext) => void;
5438
+ /**
5439
+ * Enter a parse tree produced by `HiveSqlParser.day`.
5440
+ * @param ctx the parse tree
5441
+ */
5442
+ enterDay?: (ctx: DayContext) => void;
5443
+ /**
5444
+ * Exit a parse tree produced by `HiveSqlParser.day`.
5445
+ * @param ctx the parse tree
5446
+ */
5447
+ exitDay?: (ctx: DayContext) => void;
5448
+ /**
5449
+ * Enter a parse tree produced by `HiveSqlParser.hour`.
5450
+ * @param ctx the parse tree
5451
+ */
5452
+ enterHour?: (ctx: HourContext) => void;
5453
+ /**
5454
+ * Exit a parse tree produced by `HiveSqlParser.hour`.
5455
+ * @param ctx the parse tree
5456
+ */
5457
+ exitHour?: (ctx: HourContext) => void;
5458
+ /**
5459
+ * Enter a parse tree produced by `HiveSqlParser.minute`.
5460
+ * @param ctx the parse tree
5461
+ */
5462
+ enterMinute?: (ctx: MinuteContext) => void;
5463
+ /**
5464
+ * Exit a parse tree produced by `HiveSqlParser.minute`.
5465
+ * @param ctx the parse tree
5466
+ */
5467
+ exitMinute?: (ctx: MinuteContext) => void;
5468
+ /**
5469
+ * Enter a parse tree produced by `HiveSqlParser.second`.
5470
+ * @param ctx the parse tree
5471
+ */
5472
+ enterSecond?: (ctx: SecondContext) => void;
5473
+ /**
5474
+ * Exit a parse tree produced by `HiveSqlParser.second`.
5475
+ * @param ctx the parse tree
5476
+ */
5477
+ exitSecond?: (ctx: SecondContext) => void;
5478
+ /**
5479
+ * Enter a parse tree produced by `HiveSqlParser.decimal`.
5480
+ * @param ctx the parse tree
5481
+ */
5482
+ enterDecimal?: (ctx: DecimalContext) => void;
5483
+ /**
5484
+ * Exit a parse tree produced by `HiveSqlParser.decimal`.
5485
+ * @param ctx the parse tree
5486
+ */
5487
+ exitDecimal?: (ctx: DecimalContext) => void;
5290
5488
  /**
5291
5489
  * Enter a parse tree produced by `HiveSqlParser.alterResourcePlanStatement`.
5292
5490
  * @param ctx the parse tree
@@ -7,6 +7,7 @@ import { VectorizationOnlyContext } from "./HiveSqlParser";
7
7
  import { VectorizatonDetailContext } from "./HiveSqlParser";
8
8
  import { ExecStatementContext } from "./HiveSqlParser";
9
9
  import { LoadStatementContext } from "./HiveSqlParser";
10
+ import { DropPartitionsIgnoreClauseContext } from "./HiveSqlParser";
10
11
  import { ReplicationClauseContext } from "./HiveSqlParser";
11
12
  import { ExportStatementContext } from "./HiveSqlParser";
12
13
  import { ImportStatementContext } from "./HiveSqlParser";
@@ -73,6 +74,7 @@ import { PrivlegeDefContext } from "./HiveSqlParser";
73
74
  import { PrivilegeTypeContext } from "./HiveSqlParser";
74
75
  import { PrincipalSpecificationContext } from "./HiveSqlParser";
75
76
  import { PrincipalNameContext } from "./HiveSqlParser";
77
+ import { PrincipalAlterNameContext } from "./HiveSqlParser";
76
78
  import { WithGrantOptionContext } from "./HiveSqlParser";
77
79
  import { GrantOptionForContext } from "./HiveSqlParser";
78
80
  import { AdminOptionForContext } from "./HiveSqlParser";
@@ -105,7 +107,6 @@ import { AlterScheduledQueryChangeContext } from "./HiveSqlParser";
105
107
  import { ScheduleSpecContext } from "./HiveSqlParser";
106
108
  import { ExecutedAsSpecContext } from "./HiveSqlParser";
107
109
  import { DefinedAsSpecContext } from "./HiveSqlParser";
108
- import { ShowFunctionIdentifierContext } from "./HiveSqlParser";
109
110
  import { ShowStmtIdentifierContext } from "./HiveSqlParser";
110
111
  import { TableCommentContext } from "./HiveSqlParser";
111
112
  import { CreateTablePartitionSpecContext } from "./HiveSqlParser";
@@ -264,6 +265,7 @@ import { AlterStatementSuffixTouchContext } from "./HiveSqlParser";
264
265
  import { AlterStatementSuffixArchiveContext } from "./HiveSqlParser";
265
266
  import { AlterStatementSuffixUnArchiveContext } from "./HiveSqlParser";
266
267
  import { PartitionLocationContext } from "./HiveSqlParser";
268
+ import { AlterStatementSuffixRecoverPartitionsContext } from "./HiveSqlParser";
267
269
  import { AlterStatementSuffixDropPartitionsContext } from "./HiveSqlParser";
268
270
  import { AlterStatementSuffixPropertiesContext } from "./HiveSqlParser";
269
271
  import { AlterViewSuffixPropertiesContext } from "./HiveSqlParser";
@@ -324,8 +326,13 @@ import { TableSampleContext } from "./HiveSqlParser";
324
326
  import { TableSourceContext } from "./HiveSqlParser";
325
327
  import { AsOfClauseContext } from "./HiveSqlParser";
326
328
  import { UniqueJoinTableSourceContext } from "./HiveSqlParser";
329
+ import { DbSchemaNameContext } from "./HiveSqlParser";
330
+ import { DbSchemaNameCreateContext } from "./HiveSqlParser";
331
+ import { TableOrViewContext } from "./HiveSqlParser";
327
332
  import { TableNameContext } from "./HiveSqlParser";
333
+ import { TableNameCreateContext } from "./HiveSqlParser";
328
334
  import { ViewNameContext } from "./HiveSqlParser";
335
+ import { ViewNameCreateContext } from "./HiveSqlParser";
329
336
  import { SubQuerySourceContext } from "./HiveSqlParser";
330
337
  import { PartitioningSpecContext } from "./HiveSqlParser";
331
338
  import { PartitionTableFunctionSourceContext } from "./HiveSqlParser";
@@ -382,7 +389,11 @@ import { SortByClauseContext } from "./HiveSqlParser";
382
389
  import { TrimFunctionContext } from "./HiveSqlParser";
383
390
  import { Function_Context } from "./HiveSqlParser";
384
391
  import { Null_treatmentContext } from "./HiveSqlParser";
385
- import { FunctionNameContext } from "./HiveSqlParser";
392
+ import { FunctionNameCreateContext } from "./HiveSqlParser";
393
+ import { FunctionNameForDDLContext } from "./HiveSqlParser";
394
+ import { FunctionNameForInvokeContext } from "./HiveSqlParser";
395
+ import { UserDefinedFuncNameContext } from "./HiveSqlParser";
396
+ import { InternalFunctionNameContext } from "./HiveSqlParser";
386
397
  import { CastExpressionContext } from "./HiveSqlParser";
387
398
  import { CaseExpressionContext } from "./HiveSqlParser";
388
399
  import { WhenExpressionContext } from "./HiveSqlParser";
@@ -451,7 +462,6 @@ import { PartitionSelectorValContext } from "./HiveSqlParser";
451
462
  import { PartitionSelectorOperatorContext } from "./HiveSqlParser";
452
463
  import { SubQuerySelectorOperatorContext } from "./HiveSqlParser";
453
464
  import { SysFuncNamesContext } from "./HiveSqlParser";
454
- import { DescFuncNamesContext } from "./HiveSqlParser";
455
465
  import { Id_Context } from "./HiveSqlParser";
456
466
  import { FunctionIdentifierContext } from "./HiveSqlParser";
457
467
  import { PrincipalIdentifierContext } from "./HiveSqlParser";
@@ -477,6 +487,14 @@ import { ActivateContext } from "./HiveSqlParser";
477
487
  import { EnableContext } from "./HiveSqlParser";
478
488
  import { DisableContext } from "./HiveSqlParser";
479
489
  import { UnmanagedContext } from "./HiveSqlParser";
490
+ import { YearContext } from "./HiveSqlParser";
491
+ import { MonthContext } from "./HiveSqlParser";
492
+ import { WeekContext } from "./HiveSqlParser";
493
+ import { DayContext } from "./HiveSqlParser";
494
+ import { HourContext } from "./HiveSqlParser";
495
+ import { MinuteContext } from "./HiveSqlParser";
496
+ import { SecondContext } from "./HiveSqlParser";
497
+ import { DecimalContext } from "./HiveSqlParser";
480
498
  import { AlterResourcePlanStatementContext } from "./HiveSqlParser";
481
499
  import { GlobalWmStatementContext } from "./HiveSqlParser";
482
500
  import { ReplaceResourcePlanStatementContext } from "./HiveSqlParser";
@@ -558,6 +576,12 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
558
576
  * @return the visitor result
559
577
  */
560
578
  visitLoadStatement?: (ctx: LoadStatementContext) => Result;
579
+ /**
580
+ * Visit a parse tree produced by `HiveSqlParser.dropPartitionsIgnoreClause`.
581
+ * @param ctx the parse tree
582
+ * @return the visitor result
583
+ */
584
+ visitDropPartitionsIgnoreClause?: (ctx: DropPartitionsIgnoreClauseContext) => Result;
561
585
  /**
562
586
  * Visit a parse tree produced by `HiveSqlParser.replicationClause`.
563
587
  * @param ctx the parse tree
@@ -954,6 +978,12 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
954
978
  * @return the visitor result
955
979
  */
956
980
  visitPrincipalName?: (ctx: PrincipalNameContext) => Result;
981
+ /**
982
+ * Visit a parse tree produced by `HiveSqlParser.principalAlterName`.
983
+ * @param ctx the parse tree
984
+ * @return the visitor result
985
+ */
986
+ visitPrincipalAlterName?: (ctx: PrincipalAlterNameContext) => Result;
957
987
  /**
958
988
  * Visit a parse tree produced by `HiveSqlParser.withGrantOption`.
959
989
  * @param ctx the parse tree
@@ -1146,12 +1176,6 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
1146
1176
  * @return the visitor result
1147
1177
  */
1148
1178
  visitDefinedAsSpec?: (ctx: DefinedAsSpecContext) => Result;
1149
- /**
1150
- * Visit a parse tree produced by `HiveSqlParser.showFunctionIdentifier`.
1151
- * @param ctx the parse tree
1152
- * @return the visitor result
1153
- */
1154
- visitShowFunctionIdentifier?: (ctx: ShowFunctionIdentifierContext) => Result;
1155
1179
  /**
1156
1180
  * Visit a parse tree produced by `HiveSqlParser.showStmtIdentifier`.
1157
1181
  * @param ctx the parse tree
@@ -2100,6 +2124,12 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
2100
2124
  * @return the visitor result
2101
2125
  */
2102
2126
  visitPartitionLocation?: (ctx: PartitionLocationContext) => Result;
2127
+ /**
2128
+ * Visit a parse tree produced by `HiveSqlParser.alterStatementSuffixRecoverPartitions`.
2129
+ * @param ctx the parse tree
2130
+ * @return the visitor result
2131
+ */
2132
+ visitAlterStatementSuffixRecoverPartitions?: (ctx: AlterStatementSuffixRecoverPartitionsContext) => Result;
2103
2133
  /**
2104
2134
  * Visit a parse tree produced by `HiveSqlParser.alterStatementSuffixDropPartitions`.
2105
2135
  * @param ctx the parse tree
@@ -2460,18 +2490,48 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
2460
2490
  * @return the visitor result
2461
2491
  */
2462
2492
  visitUniqueJoinTableSource?: (ctx: UniqueJoinTableSourceContext) => Result;
2493
+ /**
2494
+ * Visit a parse tree produced by `HiveSqlParser.dbSchemaName`.
2495
+ * @param ctx the parse tree
2496
+ * @return the visitor result
2497
+ */
2498
+ visitDbSchemaName?: (ctx: DbSchemaNameContext) => Result;
2499
+ /**
2500
+ * Visit a parse tree produced by `HiveSqlParser.dbSchemaNameCreate`.
2501
+ * @param ctx the parse tree
2502
+ * @return the visitor result
2503
+ */
2504
+ visitDbSchemaNameCreate?: (ctx: DbSchemaNameCreateContext) => Result;
2505
+ /**
2506
+ * Visit a parse tree produced by `HiveSqlParser.tableOrView`.
2507
+ * @param ctx the parse tree
2508
+ * @return the visitor result
2509
+ */
2510
+ visitTableOrView?: (ctx: TableOrViewContext) => Result;
2463
2511
  /**
2464
2512
  * Visit a parse tree produced by `HiveSqlParser.tableName`.
2465
2513
  * @param ctx the parse tree
2466
2514
  * @return the visitor result
2467
2515
  */
2468
2516
  visitTableName?: (ctx: TableNameContext) => Result;
2517
+ /**
2518
+ * Visit a parse tree produced by `HiveSqlParser.tableNameCreate`.
2519
+ * @param ctx the parse tree
2520
+ * @return the visitor result
2521
+ */
2522
+ visitTableNameCreate?: (ctx: TableNameCreateContext) => Result;
2469
2523
  /**
2470
2524
  * Visit a parse tree produced by `HiveSqlParser.viewName`.
2471
2525
  * @param ctx the parse tree
2472
2526
  * @return the visitor result
2473
2527
  */
2474
2528
  visitViewName?: (ctx: ViewNameContext) => Result;
2529
+ /**
2530
+ * Visit a parse tree produced by `HiveSqlParser.viewNameCreate`.
2531
+ * @param ctx the parse tree
2532
+ * @return the visitor result
2533
+ */
2534
+ visitViewNameCreate?: (ctx: ViewNameCreateContext) => Result;
2475
2535
  /**
2476
2536
  * Visit a parse tree produced by `HiveSqlParser.subQuerySource`.
2477
2537
  * @param ctx the parse tree
@@ -2809,11 +2869,35 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
2809
2869
  */
2810
2870
  visitNull_treatment?: (ctx: Null_treatmentContext) => Result;
2811
2871
  /**
2812
- * Visit a parse tree produced by `HiveSqlParser.functionName`.
2872
+ * Visit a parse tree produced by `HiveSqlParser.functionNameCreate`.
2873
+ * @param ctx the parse tree
2874
+ * @return the visitor result
2875
+ */
2876
+ visitFunctionNameCreate?: (ctx: FunctionNameCreateContext) => Result;
2877
+ /**
2878
+ * Visit a parse tree produced by `HiveSqlParser.functionNameForDDL`.
2879
+ * @param ctx the parse tree
2880
+ * @return the visitor result
2881
+ */
2882
+ visitFunctionNameForDDL?: (ctx: FunctionNameForDDLContext) => Result;
2883
+ /**
2884
+ * Visit a parse tree produced by `HiveSqlParser.functionNameForInvoke`.
2813
2885
  * @param ctx the parse tree
2814
2886
  * @return the visitor result
2815
2887
  */
2816
- visitFunctionName?: (ctx: FunctionNameContext) => Result;
2888
+ visitFunctionNameForInvoke?: (ctx: FunctionNameForInvokeContext) => Result;
2889
+ /**
2890
+ * Visit a parse tree produced by `HiveSqlParser.userDefinedFuncName`.
2891
+ * @param ctx the parse tree
2892
+ * @return the visitor result
2893
+ */
2894
+ visitUserDefinedFuncName?: (ctx: UserDefinedFuncNameContext) => Result;
2895
+ /**
2896
+ * Visit a parse tree produced by `HiveSqlParser.internalFunctionName`.
2897
+ * @param ctx the parse tree
2898
+ * @return the visitor result
2899
+ */
2900
+ visitInternalFunctionName?: (ctx: InternalFunctionNameContext) => Result;
2817
2901
  /**
2818
2902
  * Visit a parse tree produced by `HiveSqlParser.castExpression`.
2819
2903
  * @param ctx the parse tree
@@ -3222,12 +3306,6 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
3222
3306
  * @return the visitor result
3223
3307
  */
3224
3308
  visitSysFuncNames?: (ctx: SysFuncNamesContext) => Result;
3225
- /**
3226
- * Visit a parse tree produced by `HiveSqlParser.descFuncNames`.
3227
- * @param ctx the parse tree
3228
- * @return the visitor result
3229
- */
3230
- visitDescFuncNames?: (ctx: DescFuncNamesContext) => Result;
3231
3309
  /**
3232
3310
  * Visit a parse tree produced by `HiveSqlParser.id_`.
3233
3311
  * @param ctx the parse tree
@@ -3378,6 +3456,54 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
3378
3456
  * @return the visitor result
3379
3457
  */
3380
3458
  visitUnmanaged?: (ctx: UnmanagedContext) => Result;
3459
+ /**
3460
+ * Visit a parse tree produced by `HiveSqlParser.year`.
3461
+ * @param ctx the parse tree
3462
+ * @return the visitor result
3463
+ */
3464
+ visitYear?: (ctx: YearContext) => Result;
3465
+ /**
3466
+ * Visit a parse tree produced by `HiveSqlParser.month`.
3467
+ * @param ctx the parse tree
3468
+ * @return the visitor result
3469
+ */
3470
+ visitMonth?: (ctx: MonthContext) => Result;
3471
+ /**
3472
+ * Visit a parse tree produced by `HiveSqlParser.week`.
3473
+ * @param ctx the parse tree
3474
+ * @return the visitor result
3475
+ */
3476
+ visitWeek?: (ctx: WeekContext) => Result;
3477
+ /**
3478
+ * Visit a parse tree produced by `HiveSqlParser.day`.
3479
+ * @param ctx the parse tree
3480
+ * @return the visitor result
3481
+ */
3482
+ visitDay?: (ctx: DayContext) => Result;
3483
+ /**
3484
+ * Visit a parse tree produced by `HiveSqlParser.hour`.
3485
+ * @param ctx the parse tree
3486
+ * @return the visitor result
3487
+ */
3488
+ visitHour?: (ctx: HourContext) => Result;
3489
+ /**
3490
+ * Visit a parse tree produced by `HiveSqlParser.minute`.
3491
+ * @param ctx the parse tree
3492
+ * @return the visitor result
3493
+ */
3494
+ visitMinute?: (ctx: MinuteContext) => Result;
3495
+ /**
3496
+ * Visit a parse tree produced by `HiveSqlParser.second`.
3497
+ * @param ctx the parse tree
3498
+ * @return the visitor result
3499
+ */
3500
+ visitSecond?: (ctx: SecondContext) => Result;
3501
+ /**
3502
+ * Visit a parse tree produced by `HiveSqlParser.decimal`.
3503
+ * @param ctx the parse tree
3504
+ * @return the visitor result
3505
+ */
3506
+ visitDecimal?: (ctx: DecimalContext) => Result;
3381
3507
  /**
3382
3508
  * Visit a parse tree produced by `HiveSqlParser.alterResourcePlanStatement`.
3383
3509
  * @param ctx the parse tree
@@ -20,11 +20,9 @@ export default class PostgreSQLLexerBase extends Lexer {
20
20
  return this._input;
21
21
  }
22
22
  checkLA(c) {
23
- // eslint-disable-next-line new-cap
24
23
  return this.getInputStream().LA(1) !== c;
25
24
  }
26
25
  charIsLetter() {
27
- // eslint-disable-next-line new-cap
28
26
  return isLetter(this.getInputStream().LA(-1));
29
27
  }
30
28
  HandleNumericFail() {
@@ -41,10 +39,8 @@ export default class PostgreSQLLexerBase extends Lexer {
41
39
  this.type = GREATER_GREATER;
42
40
  }
43
41
  UnterminatedBlockCommentDebugAssert() {
44
- // Debug.Assert(InputStream.LA(1) == -1 /*EOF*/);
45
42
  }
46
43
  CheckIfUtf32Letter() {
47
- // eslint-disable-next-line new-cap
48
44
  let codePoint = this.getInputStream().LA(-2) << 8 + this.getInputStream().LA(-1);
49
45
  let c;
50
46
  if (codePoint < 0x10000) {