dt-sql-parser 4.5.2-beta.0 → 4.5.2-beta.2

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 (31) hide show
  1. package/README.md +8 -8
  2. package/dist/lib/flink/FlinkSqlParser.d.ts +220 -363
  3. package/dist/lib/flink/FlinkSqlParser.js +3246 -4046
  4. package/dist/lib/flink/FlinkSqlParserListener.d.ts +0 -154
  5. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +0 -98
  6. package/dist/lib/generic/GenericSqlListener.d.ts +90 -5
  7. package/dist/lib/generic/GenericSqlParser.d.ts +102 -33
  8. package/dist/lib/generic/GenericSqlParser.js +1329 -930
  9. package/dist/lib/generic/GenericSqlVisitor.d.ts +56 -3
  10. package/dist/lib/hive/HiveSqlParser.d.ts +515 -943
  11. package/dist/lib/hive/HiveSqlParser.js +8234 -10573
  12. package/dist/lib/hive/HiveSqlParserListener.d.ts +50 -490
  13. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +30 -310
  14. package/dist/lib/impala/ImpalaSqlParser.d.ts +96 -131
  15. package/dist/lib/impala/ImpalaSqlParser.js +3311 -3522
  16. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +0 -44
  17. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +0 -28
  18. package/dist/lib/mysql/MySqlParser.d.ts +422 -464
  19. package/dist/lib/mysql/MySqlParser.js +9954 -10184
  20. package/dist/lib/mysql/MySqlParserListener.d.ts +0 -44
  21. package/dist/lib/mysql/MySqlParserVisitor.d.ts +0 -28
  22. package/dist/lib/trino/TrinoSqlListener.d.ts +0 -328
  23. package/dist/lib/trino/TrinoSqlParser.d.ts +203 -476
  24. package/dist/lib/trino/TrinoSqlParser.js +6680 -7917
  25. package/dist/lib/trino/TrinoSqlVisitor.d.ts +0 -206
  26. package/dist/parser/common/entityCollector.js +5 -0
  27. package/dist/parser/flink/flinkEntityCollector.js +1 -1
  28. package/dist/parser/generic/genericEntityCollector.d.ts +6 -3
  29. package/dist/parser/generic/genericEntityCollector.js +30 -42
  30. package/dist/parser/generic/index.js +13 -10
  31. package/package.json +1 -1
@@ -17,17 +17,14 @@ import { DdlStatementContext } from "./HiveSqlParser.js";
17
17
  import { IfExistsContext } from "./HiveSqlParser.js";
18
18
  import { IfNotExistsContext } from "./HiveSqlParser.js";
19
19
  import { RestrictOrCascadeContext } from "./HiveSqlParser.js";
20
+ import { StoredAsDirsContext } from "./HiveSqlParser.js";
20
21
  import { RewriteEnabledContext } from "./HiveSqlParser.js";
21
22
  import { RewriteDisabledContext } from "./HiveSqlParser.js";
22
- import { StoredAsDirsContext } from "./HiveSqlParser.js";
23
23
  import { CreateDatabaseStatementContext } from "./HiveSqlParser.js";
24
- import { DbConnectorNameContext } from "./HiveSqlParser.js";
25
24
  import { SwitchDatabaseStatementContext } from "./HiveSqlParser.js";
26
25
  import { DropDatabaseStatementContext } from "./HiveSqlParser.js";
27
- import { DatabaseCommentContext } from "./HiveSqlParser.js";
28
26
  import { TruncateTableStatementContext } from "./HiveSqlParser.js";
29
27
  import { DropTableStatementContext } from "./HiveSqlParser.js";
30
- import { InputFileFormatContext } from "./HiveSqlParser.js";
31
28
  import { TabTypeExprContext } from "./HiveSqlParser.js";
32
29
  import { PartTypeExprContext } from "./HiveSqlParser.js";
33
30
  import { TabPartColTypeExprContext } from "./HiveSqlParser.js";
@@ -39,11 +36,7 @@ import { ShowStatementContext } from "./HiveSqlParser.js";
39
36
  import { ShowTablesFilterExprContext } from "./HiveSqlParser.js";
40
37
  import { LockStatementContext } from "./HiveSqlParser.js";
41
38
  import { LockDatabaseContext } from "./HiveSqlParser.js";
42
- import { LockModeContext } from "./HiveSqlParser.js";
43
- import { UnlockStatementContext } from "./HiveSqlParser.js";
44
- import { UnlockDatabaseContext } from "./HiveSqlParser.js";
45
39
  import { CreateRoleStatementContext } from "./HiveSqlParser.js";
46
- import { DropRoleStatementContext } from "./HiveSqlParser.js";
47
40
  import { GrantPrivilegesContext } from "./HiveSqlParser.js";
48
41
  import { RevokePrivilegesContext } from "./HiveSqlParser.js";
49
42
  import { GrantRoleContext } from "./HiveSqlParser.js";
@@ -64,13 +57,7 @@ import { PrivilegeTypeContext } from "./HiveSqlParser.js";
64
57
  import { PrincipalSpecificationContext } from "./HiveSqlParser.js";
65
58
  import { PrincipalNameContext } from "./HiveSqlParser.js";
66
59
  import { PrincipalAlterNameContext } from "./HiveSqlParser.js";
67
- import { WithGrantOptionContext } from "./HiveSqlParser.js";
68
- import { GrantOptionForContext } from "./HiveSqlParser.js";
69
- import { AdminOptionForContext } from "./HiveSqlParser.js";
70
- import { WithAdminOptionContext } from "./HiveSqlParser.js";
71
60
  import { MetastoreCheckContext } from "./HiveSqlParser.js";
72
- import { ResourceListContext } from "./HiveSqlParser.js";
73
- import { ResourceContext } from "./HiveSqlParser.js";
74
61
  import { ResourceTypeContext } from "./HiveSqlParser.js";
75
62
  import { CreateFunctionStatementContext } from "./HiveSqlParser.js";
76
63
  import { DropFunctionStatementContext } from "./HiveSqlParser.js";
@@ -88,7 +75,6 @@ import { ViewDistSpecContext } from "./HiveSqlParser.js";
88
75
  import { ViewSortSpecContext } from "./HiveSqlParser.js";
89
76
  import { DropViewStatementContext } from "./HiveSqlParser.js";
90
77
  import { CreateMaterializedViewStatementContext } from "./HiveSqlParser.js";
91
- import { DropMaterializedViewStatementContext } from "./HiveSqlParser.js";
92
78
  import { CreateScheduledQueryStatementContext } from "./HiveSqlParser.js";
93
79
  import { DropScheduledQueryStatementContext } from "./HiveSqlParser.js";
94
80
  import { AlterScheduledQueryStatementContext } from "./HiveSqlParser.js";
@@ -106,21 +92,18 @@ import { PartitionTransformTypeContext } from "./HiveSqlParser.js";
106
92
  import { TableBucketsContext } from "./HiveSqlParser.js";
107
93
  import { TableSkewedContext } from "./HiveSqlParser.js";
108
94
  import { RowFormatContext } from "./HiveSqlParser.js";
109
- import { RecordReaderContext } from "./HiveSqlParser.js";
110
- import { RecordWriterContext } from "./HiveSqlParser.js";
111
95
  import { RowFormatSerdeContext } from "./HiveSqlParser.js";
112
96
  import { RowFormatDelimitedContext } from "./HiveSqlParser.js";
113
- import { TableRowFormatContext } from "./HiveSqlParser.js";
114
97
  import { TablePropertiesPrefixedContext } from "./HiveSqlParser.js";
115
98
  import { TablePropertiesContext } from "./HiveSqlParser.js";
116
99
  import { TablePropertiesListContext } from "./HiveSqlParser.js";
117
100
  import { KeyValuePropertiesContext } from "./HiveSqlParser.js";
118
101
  import { KeyValuePropertyListContext } from "./HiveSqlParser.js";
119
102
  import { KeyValuePropertyContext } from "./HiveSqlParser.js";
120
- import { TableRowFormatFieldIdentifierContext } from "./HiveSqlParser.js";
121
- import { TableRowFormatCollItemsIdentifierContext } from "./HiveSqlParser.js";
122
- import { TableRowFormatMapKeysIdentifierContext } from "./HiveSqlParser.js";
123
- import { TableRowFormatLinesIdentifierContext } from "./HiveSqlParser.js";
103
+ import { RowFormatFieldIdentifierContext } from "./HiveSqlParser.js";
104
+ import { RowFormatCollItemsIdentifierContext } from "./HiveSqlParser.js";
105
+ import { RowFormatMapKeysIdentifierContext } from "./HiveSqlParser.js";
106
+ import { RowFormatLinesIdentifierContext } from "./HiveSqlParser.js";
124
107
  import { TableRowNullFormatContext } from "./HiveSqlParser.js";
125
108
  import { TableFileFormatContext } from "./HiveSqlParser.js";
126
109
  import { ColumnNameTypeListContext } from "./HiveSqlParser.js";
@@ -136,9 +119,7 @@ import { ColumnNameOrderListContext } from "./HiveSqlParser.js";
136
119
  import { ColumnParenthesesListContext } from "./HiveSqlParser.js";
137
120
  import { EnableValidateSpecificationContext } from "./HiveSqlParser.js";
138
121
  import { EnableSpecificationContext } from "./HiveSqlParser.js";
139
- import { ValidateSpecificationContext } from "./HiveSqlParser.js";
140
122
  import { EnforcedSpecificationContext } from "./HiveSqlParser.js";
141
- import { RelySpecificationContext } from "./HiveSqlParser.js";
142
123
  import { CreateConstraintContext } from "./HiveSqlParser.js";
143
124
  import { AlterConstraintWithNameContext } from "./HiveSqlParser.js";
144
125
  import { TableLevelConstraintContext } from "./HiveSqlParser.js";
@@ -163,17 +144,11 @@ import { ColumnNameTypeConstraintContext } from "./HiveSqlParser.js";
163
144
  import { ColumnConstraintContext } from "./HiveSqlParser.js";
164
145
  import { ForeignKeyConstraintContext } from "./HiveSqlParser.js";
165
146
  import { ColConstraintContext } from "./HiveSqlParser.js";
166
- import { AlterColumnConstraintContext } from "./HiveSqlParser.js";
167
- import { AlterForeignKeyConstraintContext } from "./HiveSqlParser.js";
168
- import { AlterColConstraintContext } from "./HiveSqlParser.js";
169
147
  import { ColumnConstraintTypeContext } from "./HiveSqlParser.js";
170
- import { DefaultValContext } from "./HiveSqlParser.js";
171
148
  import { TableConstraintTypeContext } from "./HiveSqlParser.js";
172
- import { ConstraintOptsCreateContext } from "./HiveSqlParser.js";
173
- import { ConstraintOptsAlterContext } from "./HiveSqlParser.js";
149
+ import { ConstraintOptsContext } from "./HiveSqlParser.js";
174
150
  import { ColumnNameColonTypeContext } from "./HiveSqlParser.js";
175
- import { ColumnTypeContext } from "./HiveSqlParser.js";
176
- import { ColumnTypeListContext } from "./HiveSqlParser.js";
151
+ import { TypeListContext } from "./HiveSqlParser.js";
177
152
  import { TypeContext } from "./HiveSqlParser.js";
178
153
  import { PrimitiveTypeContext } from "./HiveSqlParser.js";
179
154
  import { ListTypeContext } from "./HiveSqlParser.js";
@@ -206,9 +181,6 @@ import { WhenClausesContext } from "./HiveSqlParser.js";
206
181
  import { WhenNotMatchedClauseContext } from "./HiveSqlParser.js";
207
182
  import { WhenMatchedAndClauseContext } from "./HiveSqlParser.js";
208
183
  import { WhenMatchedThenClauseContext } from "./HiveSqlParser.js";
209
- import { CompactionPoolContext } from "./HiveSqlParser.js";
210
- import { CompactionTypeContext } from "./HiveSqlParser.js";
211
- import { CompactionStatusContext } from "./HiveSqlParser.js";
212
184
  import { AlterStatementContext } from "./HiveSqlParser.js";
213
185
  import { AlterTableStatementSuffixContext } from "./HiveSqlParser.js";
214
186
  import { AlterTblPartitionStatementSuffixContext } from "./HiveSqlParser.js";
@@ -274,7 +246,6 @@ import { RollupOldSyntaxContext } from "./HiveSqlParser.js";
274
246
  import { GroupingSetExpressionContext } from "./HiveSqlParser.js";
275
247
  import { HavingClauseContext } from "./HiveSqlParser.js";
276
248
  import { QualifyClauseContext } from "./HiveSqlParser.js";
277
- import { ExpressionOrDefaultContext } from "./HiveSqlParser.js";
278
249
  import { FirstExpressionsWithAliasContext } from "./HiveSqlParser.js";
279
250
  import { ExpressionsContext } from "./HiveSqlParser.js";
280
251
  import { ExpressionsInParenthesisContext } from "./HiveSqlParser.js";
@@ -285,7 +256,6 @@ import { ClusterByClauseContext } from "./HiveSqlParser.js";
285
256
  import { DistributeByClauseContext } from "./HiveSqlParser.js";
286
257
  import { SortByClauseContext } from "./HiveSqlParser.js";
287
258
  import { Function_Context } from "./HiveSqlParser.js";
288
- import { Null_treatmentContext } from "./HiveSqlParser.js";
289
259
  import { FunctionNameCreateContext } from "./HiveSqlParser.js";
290
260
  import { FunctionNameForDDLContext } from "./HiveSqlParser.js";
291
261
  import { FunctionNameForInvokeContext } from "./HiveSqlParser.js";
@@ -308,13 +278,11 @@ import { PrecedencePlusExpressionContext } from "./HiveSqlParser.js";
308
278
  import { PrecedenceConcatenateExpressionContext } from "./HiveSqlParser.js";
309
279
  import { PrecedenceAmpersandExpressionContext } from "./HiveSqlParser.js";
310
280
  import { PrecedenceBitwiseOrExpressionContext } from "./HiveSqlParser.js";
311
- import { PrecedenceSimilarOperatorContext } from "./HiveSqlParser.js";
312
281
  import { SubQueryExpressionContext } from "./HiveSqlParser.js";
282
+ import { PrecedenceSimilarOperatorContext } from "./HiveSqlParser.js";
313
283
  import { PrecedenceSimilarExpressionContext } from "./HiveSqlParser.js";
314
284
  import { PrecedenceSimilarExpressionPartContext } from "./HiveSqlParser.js";
315
285
  import { PrecedenceSimilarExpressionAtomContext } from "./HiveSqlParser.js";
316
- import { PrecedenceSimilarExpressionInContext } from "./HiveSqlParser.js";
317
- import { PrecedenceSimilarExpressionPartNotContext } from "./HiveSqlParser.js";
318
286
  import { PrecedenceDistinctOperatorContext } from "./HiveSqlParser.js";
319
287
  import { PrecedenceEqualOperatorContext } from "./HiveSqlParser.js";
320
288
  import { PrecedenceEqualExpressionContext } from "./HiveSqlParser.js";
@@ -344,14 +312,6 @@ import { RpUnassignContext } from "./HiveSqlParser.js";
344
312
  import { ActivateContext } from "./HiveSqlParser.js";
345
313
  import { EnableContext } from "./HiveSqlParser.js";
346
314
  import { DisableContext } from "./HiveSqlParser.js";
347
- import { YearContext } from "./HiveSqlParser.js";
348
- import { MonthContext } from "./HiveSqlParser.js";
349
- import { WeekContext } from "./HiveSqlParser.js";
350
- import { DayContext } from "./HiveSqlParser.js";
351
- import { HourContext } from "./HiveSqlParser.js";
352
- import { MinuteContext } from "./HiveSqlParser.js";
353
- import { SecondContext } from "./HiveSqlParser.js";
354
- import { DecimalContext } from "./HiveSqlParser.js";
355
315
  import { EmptyColumnContext } from "./HiveSqlParser.js";
356
316
  import { PoolPathContext } from "./HiveSqlParser.js";
357
317
  import { PoolPathAllowEmptyContext } from "./HiveSqlParser.js";
@@ -476,35 +436,29 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
476
436
  */
477
437
  visitRestrictOrCascade?: (ctx: RestrictOrCascadeContext) => Result;
478
438
  /**
479
- * Visit a parse tree produced by `HiveSqlParser.rewriteEnabled`.
439
+ * Visit a parse tree produced by `HiveSqlParser.storedAsDirs`.
480
440
  * @param ctx the parse tree
481
441
  * @return the visitor result
482
442
  */
483
- visitRewriteEnabled?: (ctx: RewriteEnabledContext) => Result;
443
+ visitStoredAsDirs?: (ctx: StoredAsDirsContext) => Result;
484
444
  /**
485
- * Visit a parse tree produced by `HiveSqlParser.rewriteDisabled`.
445
+ * Visit a parse tree produced by `HiveSqlParser.rewriteEnabled`.
486
446
  * @param ctx the parse tree
487
447
  * @return the visitor result
488
448
  */
489
- visitRewriteDisabled?: (ctx: RewriteDisabledContext) => Result;
449
+ visitRewriteEnabled?: (ctx: RewriteEnabledContext) => Result;
490
450
  /**
491
- * Visit a parse tree produced by `HiveSqlParser.storedAsDirs`.
451
+ * Visit a parse tree produced by `HiveSqlParser.rewriteDisabled`.
492
452
  * @param ctx the parse tree
493
453
  * @return the visitor result
494
454
  */
495
- visitStoredAsDirs?: (ctx: StoredAsDirsContext) => Result;
455
+ visitRewriteDisabled?: (ctx: RewriteDisabledContext) => Result;
496
456
  /**
497
457
  * Visit a parse tree produced by `HiveSqlParser.createDatabaseStatement`.
498
458
  * @param ctx the parse tree
499
459
  * @return the visitor result
500
460
  */
501
461
  visitCreateDatabaseStatement?: (ctx: CreateDatabaseStatementContext) => Result;
502
- /**
503
- * Visit a parse tree produced by `HiveSqlParser.dbConnectorName`.
504
- * @param ctx the parse tree
505
- * @return the visitor result
506
- */
507
- visitDbConnectorName?: (ctx: DbConnectorNameContext) => Result;
508
462
  /**
509
463
  * Visit a parse tree produced by `HiveSqlParser.switchDatabaseStatement`.
510
464
  * @param ctx the parse tree
@@ -517,12 +471,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
517
471
  * @return the visitor result
518
472
  */
519
473
  visitDropDatabaseStatement?: (ctx: DropDatabaseStatementContext) => Result;
520
- /**
521
- * Visit a parse tree produced by `HiveSqlParser.databaseComment`.
522
- * @param ctx the parse tree
523
- * @return the visitor result
524
- */
525
- visitDatabaseComment?: (ctx: DatabaseCommentContext) => Result;
526
474
  /**
527
475
  * Visit a parse tree produced by `HiveSqlParser.truncateTableStatement`.
528
476
  * @param ctx the parse tree
@@ -535,12 +483,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
535
483
  * @return the visitor result
536
484
  */
537
485
  visitDropTableStatement?: (ctx: DropTableStatementContext) => Result;
538
- /**
539
- * Visit a parse tree produced by `HiveSqlParser.inputFileFormat`.
540
- * @param ctx the parse tree
541
- * @return the visitor result
542
- */
543
- visitInputFileFormat?: (ctx: InputFileFormatContext) => Result;
544
486
  /**
545
487
  * Visit a parse tree produced by `HiveSqlParser.tabTypeExpr`.
546
488
  * @param ctx the parse tree
@@ -607,36 +549,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
607
549
  * @return the visitor result
608
550
  */
609
551
  visitLockDatabase?: (ctx: LockDatabaseContext) => Result;
610
- /**
611
- * Visit a parse tree produced by `HiveSqlParser.lockMode`.
612
- * @param ctx the parse tree
613
- * @return the visitor result
614
- */
615
- visitLockMode?: (ctx: LockModeContext) => Result;
616
- /**
617
- * Visit a parse tree produced by `HiveSqlParser.unlockStatement`.
618
- * @param ctx the parse tree
619
- * @return the visitor result
620
- */
621
- visitUnlockStatement?: (ctx: UnlockStatementContext) => Result;
622
- /**
623
- * Visit a parse tree produced by `HiveSqlParser.unlockDatabase`.
624
- * @param ctx the parse tree
625
- * @return the visitor result
626
- */
627
- visitUnlockDatabase?: (ctx: UnlockDatabaseContext) => Result;
628
552
  /**
629
553
  * Visit a parse tree produced by `HiveSqlParser.createRoleStatement`.
630
554
  * @param ctx the parse tree
631
555
  * @return the visitor result
632
556
  */
633
557
  visitCreateRoleStatement?: (ctx: CreateRoleStatementContext) => Result;
634
- /**
635
- * Visit a parse tree produced by `HiveSqlParser.dropRoleStatement`.
636
- * @param ctx the parse tree
637
- * @return the visitor result
638
- */
639
- visitDropRoleStatement?: (ctx: DropRoleStatementContext) => Result;
640
558
  /**
641
559
  * Visit a parse tree produced by `HiveSqlParser.grantPrivileges`.
642
560
  * @param ctx the parse tree
@@ -757,48 +675,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
757
675
  * @return the visitor result
758
676
  */
759
677
  visitPrincipalAlterName?: (ctx: PrincipalAlterNameContext) => Result;
760
- /**
761
- * Visit a parse tree produced by `HiveSqlParser.withGrantOption`.
762
- * @param ctx the parse tree
763
- * @return the visitor result
764
- */
765
- visitWithGrantOption?: (ctx: WithGrantOptionContext) => Result;
766
- /**
767
- * Visit a parse tree produced by `HiveSqlParser.grantOptionFor`.
768
- * @param ctx the parse tree
769
- * @return the visitor result
770
- */
771
- visitGrantOptionFor?: (ctx: GrantOptionForContext) => Result;
772
- /**
773
- * Visit a parse tree produced by `HiveSqlParser.adminOptionFor`.
774
- * @param ctx the parse tree
775
- * @return the visitor result
776
- */
777
- visitAdminOptionFor?: (ctx: AdminOptionForContext) => Result;
778
- /**
779
- * Visit a parse tree produced by `HiveSqlParser.withAdminOption`.
780
- * @param ctx the parse tree
781
- * @return the visitor result
782
- */
783
- visitWithAdminOption?: (ctx: WithAdminOptionContext) => Result;
784
678
  /**
785
679
  * Visit a parse tree produced by `HiveSqlParser.metastoreCheck`.
786
680
  * @param ctx the parse tree
787
681
  * @return the visitor result
788
682
  */
789
683
  visitMetastoreCheck?: (ctx: MetastoreCheckContext) => Result;
790
- /**
791
- * Visit a parse tree produced by `HiveSqlParser.resourceList`.
792
- * @param ctx the parse tree
793
- * @return the visitor result
794
- */
795
- visitResourceList?: (ctx: ResourceListContext) => Result;
796
- /**
797
- * Visit a parse tree produced by `HiveSqlParser.resource`.
798
- * @param ctx the parse tree
799
- * @return the visitor result
800
- */
801
- visitResource?: (ctx: ResourceContext) => Result;
802
684
  /**
803
685
  * Visit a parse tree produced by `HiveSqlParser.resourceType`.
804
686
  * @param ctx the parse tree
@@ -901,12 +783,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
901
783
  * @return the visitor result
902
784
  */
903
785
  visitCreateMaterializedViewStatement?: (ctx: CreateMaterializedViewStatementContext) => Result;
904
- /**
905
- * Visit a parse tree produced by `HiveSqlParser.dropMaterializedViewStatement`.
906
- * @param ctx the parse tree
907
- * @return the visitor result
908
- */
909
- visitDropMaterializedViewStatement?: (ctx: DropMaterializedViewStatementContext) => Result;
910
786
  /**
911
787
  * Visit a parse tree produced by `HiveSqlParser.createScheduledQueryStatement`.
912
788
  * @param ctx the parse tree
@@ -1009,18 +885,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1009
885
  * @return the visitor result
1010
886
  */
1011
887
  visitRowFormat?: (ctx: RowFormatContext) => Result;
1012
- /**
1013
- * Visit a parse tree produced by `HiveSqlParser.recordReader`.
1014
- * @param ctx the parse tree
1015
- * @return the visitor result
1016
- */
1017
- visitRecordReader?: (ctx: RecordReaderContext) => Result;
1018
- /**
1019
- * Visit a parse tree produced by `HiveSqlParser.recordWriter`.
1020
- * @param ctx the parse tree
1021
- * @return the visitor result
1022
- */
1023
- visitRecordWriter?: (ctx: RecordWriterContext) => Result;
1024
888
  /**
1025
889
  * Visit a parse tree produced by `HiveSqlParser.rowFormatSerde`.
1026
890
  * @param ctx the parse tree
@@ -1033,12 +897,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1033
897
  * @return the visitor result
1034
898
  */
1035
899
  visitRowFormatDelimited?: (ctx: RowFormatDelimitedContext) => Result;
1036
- /**
1037
- * Visit a parse tree produced by `HiveSqlParser.tableRowFormat`.
1038
- * @param ctx the parse tree
1039
- * @return the visitor result
1040
- */
1041
- visitTableRowFormat?: (ctx: TableRowFormatContext) => Result;
1042
900
  /**
1043
901
  * Visit a parse tree produced by `HiveSqlParser.tablePropertiesPrefixed`.
1044
902
  * @param ctx the parse tree
@@ -1076,29 +934,29 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1076
934
  */
1077
935
  visitKeyValueProperty?: (ctx: KeyValuePropertyContext) => Result;
1078
936
  /**
1079
- * Visit a parse tree produced by `HiveSqlParser.tableRowFormatFieldIdentifier`.
937
+ * Visit a parse tree produced by `HiveSqlParser.rowFormatFieldIdentifier`.
1080
938
  * @param ctx the parse tree
1081
939
  * @return the visitor result
1082
940
  */
1083
- visitTableRowFormatFieldIdentifier?: (ctx: TableRowFormatFieldIdentifierContext) => Result;
941
+ visitRowFormatFieldIdentifier?: (ctx: RowFormatFieldIdentifierContext) => Result;
1084
942
  /**
1085
- * Visit a parse tree produced by `HiveSqlParser.tableRowFormatCollItemsIdentifier`.
943
+ * Visit a parse tree produced by `HiveSqlParser.rowFormatCollItemsIdentifier`.
1086
944
  * @param ctx the parse tree
1087
945
  * @return the visitor result
1088
946
  */
1089
- visitTableRowFormatCollItemsIdentifier?: (ctx: TableRowFormatCollItemsIdentifierContext) => Result;
947
+ visitRowFormatCollItemsIdentifier?: (ctx: RowFormatCollItemsIdentifierContext) => Result;
1090
948
  /**
1091
- * Visit a parse tree produced by `HiveSqlParser.tableRowFormatMapKeysIdentifier`.
949
+ * Visit a parse tree produced by `HiveSqlParser.rowFormatMapKeysIdentifier`.
1092
950
  * @param ctx the parse tree
1093
951
  * @return the visitor result
1094
952
  */
1095
- visitTableRowFormatMapKeysIdentifier?: (ctx: TableRowFormatMapKeysIdentifierContext) => Result;
953
+ visitRowFormatMapKeysIdentifier?: (ctx: RowFormatMapKeysIdentifierContext) => Result;
1096
954
  /**
1097
- * Visit a parse tree produced by `HiveSqlParser.tableRowFormatLinesIdentifier`.
955
+ * Visit a parse tree produced by `HiveSqlParser.rowFormatLinesIdentifier`.
1098
956
  * @param ctx the parse tree
1099
957
  * @return the visitor result
1100
958
  */
1101
- visitTableRowFormatLinesIdentifier?: (ctx: TableRowFormatLinesIdentifierContext) => Result;
959
+ visitRowFormatLinesIdentifier?: (ctx: RowFormatLinesIdentifierContext) => Result;
1102
960
  /**
1103
961
  * Visit a parse tree produced by `HiveSqlParser.tableRowNullFormat`.
1104
962
  * @param ctx the parse tree
@@ -1189,24 +1047,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1189
1047
  * @return the visitor result
1190
1048
  */
1191
1049
  visitEnableSpecification?: (ctx: EnableSpecificationContext) => Result;
1192
- /**
1193
- * Visit a parse tree produced by `HiveSqlParser.validateSpecification`.
1194
- * @param ctx the parse tree
1195
- * @return the visitor result
1196
- */
1197
- visitValidateSpecification?: (ctx: ValidateSpecificationContext) => Result;
1198
1050
  /**
1199
1051
  * Visit a parse tree produced by `HiveSqlParser.enforcedSpecification`.
1200
1052
  * @param ctx the parse tree
1201
1053
  * @return the visitor result
1202
1054
  */
1203
1055
  visitEnforcedSpecification?: (ctx: EnforcedSpecificationContext) => Result;
1204
- /**
1205
- * Visit a parse tree produced by `HiveSqlParser.relySpecification`.
1206
- * @param ctx the parse tree
1207
- * @return the visitor result
1208
- */
1209
- visitRelySpecification?: (ctx: RelySpecificationContext) => Result;
1210
1056
  /**
1211
1057
  * Visit a parse tree produced by `HiveSqlParser.createConstraint`.
1212
1058
  * @param ctx the parse tree
@@ -1351,36 +1197,12 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1351
1197
  * @return the visitor result
1352
1198
  */
1353
1199
  visitColConstraint?: (ctx: ColConstraintContext) => Result;
1354
- /**
1355
- * Visit a parse tree produced by `HiveSqlParser.alterColumnConstraint`.
1356
- * @param ctx the parse tree
1357
- * @return the visitor result
1358
- */
1359
- visitAlterColumnConstraint?: (ctx: AlterColumnConstraintContext) => Result;
1360
- /**
1361
- * Visit a parse tree produced by `HiveSqlParser.alterForeignKeyConstraint`.
1362
- * @param ctx the parse tree
1363
- * @return the visitor result
1364
- */
1365
- visitAlterForeignKeyConstraint?: (ctx: AlterForeignKeyConstraintContext) => Result;
1366
- /**
1367
- * Visit a parse tree produced by `HiveSqlParser.alterColConstraint`.
1368
- * @param ctx the parse tree
1369
- * @return the visitor result
1370
- */
1371
- visitAlterColConstraint?: (ctx: AlterColConstraintContext) => Result;
1372
1200
  /**
1373
1201
  * Visit a parse tree produced by `HiveSqlParser.columnConstraintType`.
1374
1202
  * @param ctx the parse tree
1375
1203
  * @return the visitor result
1376
1204
  */
1377
1205
  visitColumnConstraintType?: (ctx: ColumnConstraintTypeContext) => Result;
1378
- /**
1379
- * Visit a parse tree produced by `HiveSqlParser.defaultVal`.
1380
- * @param ctx the parse tree
1381
- * @return the visitor result
1382
- */
1383
- visitDefaultVal?: (ctx: DefaultValContext) => Result;
1384
1206
  /**
1385
1207
  * Visit a parse tree produced by `HiveSqlParser.tableConstraintType`.
1386
1208
  * @param ctx the parse tree
@@ -1388,17 +1210,11 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1388
1210
  */
1389
1211
  visitTableConstraintType?: (ctx: TableConstraintTypeContext) => Result;
1390
1212
  /**
1391
- * Visit a parse tree produced by `HiveSqlParser.constraintOptsCreate`.
1213
+ * Visit a parse tree produced by `HiveSqlParser.constraintOpts`.
1392
1214
  * @param ctx the parse tree
1393
1215
  * @return the visitor result
1394
1216
  */
1395
- visitConstraintOptsCreate?: (ctx: ConstraintOptsCreateContext) => Result;
1396
- /**
1397
- * Visit a parse tree produced by `HiveSqlParser.constraintOptsAlter`.
1398
- * @param ctx the parse tree
1399
- * @return the visitor result
1400
- */
1401
- visitConstraintOptsAlter?: (ctx: ConstraintOptsAlterContext) => Result;
1217
+ visitConstraintOpts?: (ctx: ConstraintOptsContext) => Result;
1402
1218
  /**
1403
1219
  * Visit a parse tree produced by `HiveSqlParser.columnNameColonType`.
1404
1220
  * @param ctx the parse tree
@@ -1406,17 +1222,11 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1406
1222
  */
1407
1223
  visitColumnNameColonType?: (ctx: ColumnNameColonTypeContext) => Result;
1408
1224
  /**
1409
- * Visit a parse tree produced by `HiveSqlParser.columnType`.
1410
- * @param ctx the parse tree
1411
- * @return the visitor result
1412
- */
1413
- visitColumnType?: (ctx: ColumnTypeContext) => Result;
1414
- /**
1415
- * Visit a parse tree produced by `HiveSqlParser.columnTypeList`.
1225
+ * Visit a parse tree produced by `HiveSqlParser.typeList`.
1416
1226
  * @param ctx the parse tree
1417
1227
  * @return the visitor result
1418
1228
  */
1419
- visitColumnTypeList?: (ctx: ColumnTypeListContext) => Result;
1229
+ visitTypeList?: (ctx: TypeListContext) => Result;
1420
1230
  /**
1421
1231
  * Visit a parse tree produced by `HiveSqlParser.type`.
1422
1232
  * @param ctx the parse tree
@@ -1613,24 +1423,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
1613
1423
  * @return the visitor result
1614
1424
  */
1615
1425
  visitWhenMatchedThenClause?: (ctx: WhenMatchedThenClauseContext) => Result;
1616
- /**
1617
- * Visit a parse tree produced by `HiveSqlParser.compactionPool`.
1618
- * @param ctx the parse tree
1619
- * @return the visitor result
1620
- */
1621
- visitCompactionPool?: (ctx: CompactionPoolContext) => Result;
1622
- /**
1623
- * Visit a parse tree produced by `HiveSqlParser.compactionType`.
1624
- * @param ctx the parse tree
1625
- * @return the visitor result
1626
- */
1627
- visitCompactionType?: (ctx: CompactionTypeContext) => Result;
1628
- /**
1629
- * Visit a parse tree produced by `HiveSqlParser.compactionStatus`.
1630
- * @param ctx the parse tree
1631
- * @return the visitor result
1632
- */
1633
- visitCompactionStatus?: (ctx: CompactionStatusContext) => Result;
1634
1426
  /**
1635
1427
  * Visit a parse tree produced by `HiveSqlParser.alterStatement`.
1636
1428
  * @param ctx the parse tree
@@ -2021,12 +1813,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
2021
1813
  * @return the visitor result
2022
1814
  */
2023
1815
  visitQualifyClause?: (ctx: QualifyClauseContext) => Result;
2024
- /**
2025
- * Visit a parse tree produced by `HiveSqlParser.expressionOrDefault`.
2026
- * @param ctx the parse tree
2027
- * @return the visitor result
2028
- */
2029
- visitExpressionOrDefault?: (ctx: ExpressionOrDefaultContext) => Result;
2030
1816
  /**
2031
1817
  * Visit a parse tree produced by `HiveSqlParser.firstExpressionsWithAlias`.
2032
1818
  * @param ctx the parse tree
@@ -2087,12 +1873,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
2087
1873
  * @return the visitor result
2088
1874
  */
2089
1875
  visitFunction_?: (ctx: Function_Context) => Result;
2090
- /**
2091
- * Visit a parse tree produced by `HiveSqlParser.null_treatment`.
2092
- * @param ctx the parse tree
2093
- * @return the visitor result
2094
- */
2095
- visitNull_treatment?: (ctx: Null_treatmentContext) => Result;
2096
1876
  /**
2097
1877
  * Visit a parse tree produced by `HiveSqlParser.functionNameCreate`.
2098
1878
  * @param ctx the parse tree
@@ -2226,17 +2006,17 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
2226
2006
  */
2227
2007
  visitPrecedenceBitwiseOrExpression?: (ctx: PrecedenceBitwiseOrExpressionContext) => Result;
2228
2008
  /**
2229
- * Visit a parse tree produced by `HiveSqlParser.precedenceSimilarOperator`.
2009
+ * Visit a parse tree produced by `HiveSqlParser.subQueryExpression`.
2230
2010
  * @param ctx the parse tree
2231
2011
  * @return the visitor result
2232
2012
  */
2233
- visitPrecedenceSimilarOperator?: (ctx: PrecedenceSimilarOperatorContext) => Result;
2013
+ visitSubQueryExpression?: (ctx: SubQueryExpressionContext) => Result;
2234
2014
  /**
2235
- * Visit a parse tree produced by `HiveSqlParser.subQueryExpression`.
2015
+ * Visit a parse tree produced by `HiveSqlParser.precedenceSimilarOperator`.
2236
2016
  * @param ctx the parse tree
2237
2017
  * @return the visitor result
2238
2018
  */
2239
- visitSubQueryExpression?: (ctx: SubQueryExpressionContext) => Result;
2019
+ visitPrecedenceSimilarOperator?: (ctx: PrecedenceSimilarOperatorContext) => Result;
2240
2020
  /**
2241
2021
  * Visit a parse tree produced by `HiveSqlParser.precedenceSimilarExpression`.
2242
2022
  * @param ctx the parse tree
@@ -2255,18 +2035,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
2255
2035
  * @return the visitor result
2256
2036
  */
2257
2037
  visitPrecedenceSimilarExpressionAtom?: (ctx: PrecedenceSimilarExpressionAtomContext) => Result;
2258
- /**
2259
- * Visit a parse tree produced by `HiveSqlParser.precedenceSimilarExpressionIn`.
2260
- * @param ctx the parse tree
2261
- * @return the visitor result
2262
- */
2263
- visitPrecedenceSimilarExpressionIn?: (ctx: PrecedenceSimilarExpressionInContext) => Result;
2264
- /**
2265
- * Visit a parse tree produced by `HiveSqlParser.precedenceSimilarExpressionPartNot`.
2266
- * @param ctx the parse tree
2267
- * @return the visitor result
2268
- */
2269
- visitPrecedenceSimilarExpressionPartNot?: (ctx: PrecedenceSimilarExpressionPartNotContext) => Result;
2270
2038
  /**
2271
2039
  * Visit a parse tree produced by `HiveSqlParser.precedenceDistinctOperator`.
2272
2040
  * @param ctx the parse tree
@@ -2441,54 +2209,6 @@ export declare class HiveSqlParserVisitor<Result> extends AbstractParseTreeVisit
2441
2209
  * @return the visitor result
2442
2210
  */
2443
2211
  visitDisable?: (ctx: DisableContext) => Result;
2444
- /**
2445
- * Visit a parse tree produced by `HiveSqlParser.year`.
2446
- * @param ctx the parse tree
2447
- * @return the visitor result
2448
- */
2449
- visitYear?: (ctx: YearContext) => Result;
2450
- /**
2451
- * Visit a parse tree produced by `HiveSqlParser.month`.
2452
- * @param ctx the parse tree
2453
- * @return the visitor result
2454
- */
2455
- visitMonth?: (ctx: MonthContext) => Result;
2456
- /**
2457
- * Visit a parse tree produced by `HiveSqlParser.week`.
2458
- * @param ctx the parse tree
2459
- * @return the visitor result
2460
- */
2461
- visitWeek?: (ctx: WeekContext) => Result;
2462
- /**
2463
- * Visit a parse tree produced by `HiveSqlParser.day`.
2464
- * @param ctx the parse tree
2465
- * @return the visitor result
2466
- */
2467
- visitDay?: (ctx: DayContext) => Result;
2468
- /**
2469
- * Visit a parse tree produced by `HiveSqlParser.hour`.
2470
- * @param ctx the parse tree
2471
- * @return the visitor result
2472
- */
2473
- visitHour?: (ctx: HourContext) => Result;
2474
- /**
2475
- * Visit a parse tree produced by `HiveSqlParser.minute`.
2476
- * @param ctx the parse tree
2477
- * @return the visitor result
2478
- */
2479
- visitMinute?: (ctx: MinuteContext) => Result;
2480
- /**
2481
- * Visit a parse tree produced by `HiveSqlParser.second`.
2482
- * @param ctx the parse tree
2483
- * @return the visitor result
2484
- */
2485
- visitSecond?: (ctx: SecondContext) => Result;
2486
- /**
2487
- * Visit a parse tree produced by `HiveSqlParser.decimal`.
2488
- * @param ctx the parse tree
2489
- * @return the visitor result
2490
- */
2491
- visitDecimal?: (ctx: DecimalContext) => Result;
2492
2212
  /**
2493
2213
  * Visit a parse tree produced by `HiveSqlParser.emptyColumn`.
2494
2214
  * @param ctx the parse tree