dt-sql-parser 4.0.0-beta.4.1 → 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.
- package/README.md +124 -43
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/flinksql/FlinkSqlLexer.d.ts +202 -201
- package/dist/lib/flinksql/FlinkSqlLexer.js +2003 -1996
- package/dist/lib/flinksql/FlinkSqlLexer.js.map +1 -1
- package/dist/lib/flinksql/FlinkSqlParser.d.ts +328 -265
- package/dist/lib/flinksql/FlinkSqlParser.js +3712 -3076
- package/dist/lib/flinksql/FlinkSqlParser.js.map +1 -1
- package/dist/lib/flinksql/FlinkSqlParserListener.d.ts +44 -0
- package/dist/lib/flinksql/FlinkSqlParserVisitor.d.ts +28 -0
- package/dist/lib/hive/HiveSqlLexer.d.ts +365 -351
- package/dist/lib/hive/HiveSqlLexer.js +2494 -2457
- package/dist/lib/hive/HiveSqlLexer.js.map +1 -1
- package/dist/lib/hive/{HiveSql.d.ts → HiveSqlParser.d.ts} +2791 -2463
- package/dist/lib/hive/{HiveSql.js → HiveSqlParser.js} +18554 -16800
- package/dist/lib/hive/HiveSqlParser.js.map +1 -0
- package/dist/lib/hive/{HiveSqlListener.d.ts → HiveSqlParserListener.d.ts} +1759 -1517
- package/dist/lib/hive/HiveSqlParserListener.js +3 -0
- package/dist/lib/hive/HiveSqlParserListener.js.map +1 -0
- package/dist/lib/hive/{HiveSqlVisitor.d.ts → HiveSqlParserVisitor.d.ts} +1165 -1011
- package/dist/lib/hive/HiveSqlParserVisitor.js +3 -0
- package/dist/lib/hive/HiveSqlParserVisitor.js.map +1 -0
- package/dist/lib/pgsql/PostgreSQLLexerBase.js +0 -4
- package/dist/lib/pgsql/PostgreSQLLexerBase.js.map +1 -1
- package/dist/lib/pgsql/PostgreSQLParserBase.js +0 -6
- package/dist/lib/pgsql/PostgreSQLParserBase.js.map +1 -1
- package/dist/lib/spark/SparkSqlLexer.d.ts +398 -322
- package/dist/lib/spark/SparkSqlLexer.js +2302 -1738
- package/dist/lib/spark/SparkSqlLexer.js.map +1 -1
- package/dist/lib/spark/SparkSqlParser.d.ts +3319 -3314
- package/dist/lib/spark/SparkSqlParser.js +18718 -16132
- package/dist/lib/spark/SparkSqlParser.js.map +1 -1
- package/dist/lib/spark/SparkSqlParserListener.d.ts +2130 -0
- package/dist/lib/spark/SparkSqlParserListener.js +3 -0
- package/dist/lib/spark/SparkSqlParserListener.js.map +1 -0
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +1361 -0
- package/dist/lib/spark/SparkSqlParserVisitor.js +3 -0
- package/dist/lib/spark/SparkSqlParserVisitor.js.map +1 -0
- package/dist/parser/common/basic-parser-types.d.ts +16 -3
- package/dist/parser/common/basic-parser-types.js +12 -2
- package/dist/parser/common/basic-parser-types.js.map +1 -1
- package/dist/parser/common/basicParser.d.ts +27 -28
- package/dist/parser/common/basicParser.js +76 -60
- package/dist/parser/common/basicParser.js.map +1 -1
- package/dist/parser/common/parseErrorListener.d.ts +33 -0
- package/dist/parser/common/parseErrorListener.js +28 -0
- package/dist/parser/common/parseErrorListener.js.map +1 -0
- package/dist/parser/flinksql.d.ts +1 -1
- package/dist/parser/flinksql.js +32 -13
- package/dist/parser/flinksql.js.map +1 -1
- package/dist/parser/generic.js +1 -1
- package/dist/parser/generic.js.map +1 -1
- package/dist/parser/hive.d.ts +12 -5
- package/dist/parser/hive.js +91 -7
- package/dist/parser/hive.js.map +1 -1
- package/dist/parser/index.d.ts +1 -0
- package/dist/parser/index.js +1 -0
- package/dist/parser/index.js.map +1 -1
- package/dist/parser/pgsql.js +1 -1
- package/dist/parser/pgsql.js.map +1 -1
- package/dist/parser/plsql.js +1 -1
- package/dist/parser/plsql.js.map +1 -1
- package/dist/parser/spark.d.ts +10 -3
- package/dist/parser/spark.js +90 -7
- package/dist/parser/spark.js.map +1 -1
- package/dist/parser/trinosql.js +1 -1
- package/dist/parser/trinosql.js.map +1 -1
- package/dist/utils/findCaretTokenIndex.d.ts +2 -2
- package/dist/utils/findCaretTokenIndex.js +5 -4
- package/dist/utils/findCaretTokenIndex.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/token.d.ts +2 -2
- package/dist/utils/token.js +2 -2
- package/dist/utils/token.js.map +1 -1
- package/package.json +16 -9
- package/dist/lib/hive/HiveSql.js.map +0 -1
- package/dist/lib/hive/HiveSqlListener.js +0 -3
- package/dist/lib/hive/HiveSqlListener.js.map +0 -1
- package/dist/lib/hive/HiveSqlVisitor.js +0 -3
- package/dist/lib/hive/HiveSqlVisitor.js.map +0 -1
- package/dist/lib/spark/SparkSqlListener.d.ts +0 -3516
- package/dist/lib/spark/SparkSqlListener.js +0 -3
- package/dist/lib/spark/SparkSqlListener.js.map +0 -1
- package/dist/lib/spark/SparkSqlVisitor.d.ts +0 -2201
- package/dist/lib/spark/SparkSqlVisitor.js +0 -3
- package/dist/lib/spark/SparkSqlVisitor.js.map +0 -1
- package/dist/parser/common/parserErrorListener.d.ts +0 -30
- package/dist/parser/common/parserErrorListener.js +0 -62
- package/dist/parser/common/parserErrorListener.js.map +0 -1
|
@@ -4,301 +4,391 @@ import { Lexer } from "antlr4ts/Lexer";
|
|
|
4
4
|
import { RuleContext } from "antlr4ts/RuleContext";
|
|
5
5
|
import { Vocabulary } from "antlr4ts/Vocabulary";
|
|
6
6
|
export declare class SparkSqlLexer extends Lexer {
|
|
7
|
-
static readonly
|
|
8
|
-
static readonly
|
|
9
|
-
static readonly
|
|
10
|
-
static readonly
|
|
11
|
-
static readonly
|
|
12
|
-
static readonly
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
132
|
-
static readonly
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
167
|
-
static readonly
|
|
168
|
-
static readonly
|
|
169
|
-
static readonly
|
|
170
|
-
static readonly
|
|
171
|
-
static readonly
|
|
172
|
-
static readonly
|
|
173
|
-
static readonly
|
|
174
|
-
static readonly
|
|
175
|
-
static readonly
|
|
176
|
-
static readonly
|
|
177
|
-
static readonly
|
|
178
|
-
static readonly
|
|
179
|
-
static readonly
|
|
180
|
-
static readonly
|
|
181
|
-
static readonly
|
|
182
|
-
static readonly
|
|
183
|
-
static readonly
|
|
184
|
-
static readonly
|
|
185
|
-
static readonly
|
|
186
|
-
static readonly
|
|
187
|
-
static readonly
|
|
188
|
-
static readonly
|
|
189
|
-
static readonly
|
|
190
|
-
static readonly
|
|
191
|
-
static readonly
|
|
192
|
-
static readonly
|
|
193
|
-
static readonly
|
|
194
|
-
static readonly
|
|
195
|
-
static readonly
|
|
196
|
-
static readonly
|
|
197
|
-
static readonly
|
|
198
|
-
static readonly
|
|
199
|
-
static readonly
|
|
200
|
-
static readonly
|
|
201
|
-
static readonly
|
|
202
|
-
static readonly
|
|
203
|
-
static readonly
|
|
204
|
-
static readonly
|
|
205
|
-
static readonly
|
|
206
|
-
static readonly
|
|
207
|
-
static readonly
|
|
208
|
-
static readonly
|
|
209
|
-
static readonly
|
|
210
|
-
static readonly
|
|
211
|
-
static readonly
|
|
212
|
-
static readonly
|
|
213
|
-
static readonly
|
|
214
|
-
static readonly
|
|
215
|
-
static readonly
|
|
216
|
-
static readonly
|
|
217
|
-
static readonly
|
|
218
|
-
static readonly
|
|
219
|
-
static readonly
|
|
220
|
-
static readonly
|
|
221
|
-
static readonly
|
|
222
|
-
static readonly
|
|
223
|
-
static readonly
|
|
224
|
-
static readonly
|
|
225
|
-
static readonly
|
|
226
|
-
static readonly
|
|
227
|
-
static readonly
|
|
228
|
-
static readonly
|
|
229
|
-
static readonly
|
|
230
|
-
static readonly
|
|
231
|
-
static readonly
|
|
232
|
-
static readonly
|
|
233
|
-
static readonly
|
|
234
|
-
static readonly
|
|
235
|
-
static readonly
|
|
236
|
-
static readonly
|
|
237
|
-
static readonly
|
|
238
|
-
static readonly
|
|
239
|
-
static readonly
|
|
240
|
-
static readonly
|
|
241
|
-
static readonly
|
|
242
|
-
static readonly
|
|
243
|
-
static readonly
|
|
244
|
-
static readonly
|
|
245
|
-
static readonly
|
|
246
|
-
static readonly
|
|
247
|
-
static readonly
|
|
248
|
-
static readonly
|
|
249
|
-
static readonly
|
|
250
|
-
static readonly
|
|
251
|
-
static readonly
|
|
252
|
-
static readonly
|
|
253
|
-
static readonly
|
|
254
|
-
static readonly
|
|
255
|
-
static readonly
|
|
256
|
-
static readonly
|
|
257
|
-
static readonly
|
|
258
|
-
static readonly
|
|
259
|
-
static readonly
|
|
260
|
-
static readonly
|
|
261
|
-
static readonly
|
|
262
|
-
static readonly
|
|
263
|
-
static readonly
|
|
264
|
-
static readonly
|
|
265
|
-
static readonly
|
|
266
|
-
static readonly
|
|
267
|
-
static readonly
|
|
268
|
-
static readonly
|
|
269
|
-
static readonly
|
|
270
|
-
static readonly
|
|
271
|
-
static readonly
|
|
272
|
-
static readonly
|
|
273
|
-
static readonly
|
|
274
|
-
static readonly
|
|
275
|
-
static readonly
|
|
276
|
-
static readonly
|
|
277
|
-
static readonly
|
|
278
|
-
static readonly
|
|
279
|
-
static readonly
|
|
280
|
-
static readonly
|
|
281
|
-
static readonly
|
|
282
|
-
static readonly
|
|
283
|
-
static readonly
|
|
284
|
-
static readonly
|
|
285
|
-
static readonly
|
|
286
|
-
static readonly
|
|
287
|
-
static readonly
|
|
288
|
-
static readonly
|
|
289
|
-
static readonly
|
|
290
|
-
static readonly
|
|
291
|
-
static readonly
|
|
292
|
-
static readonly
|
|
293
|
-
static readonly
|
|
294
|
-
static readonly
|
|
295
|
-
static readonly
|
|
296
|
-
static readonly
|
|
297
|
-
static readonly
|
|
298
|
-
static readonly
|
|
299
|
-
static readonly
|
|
300
|
-
static readonly
|
|
301
|
-
static readonly
|
|
7
|
+
static readonly SEMICOLON = 1;
|
|
8
|
+
static readonly LEFT_PAREN = 2;
|
|
9
|
+
static readonly RIGHT_PAREN = 3;
|
|
10
|
+
static readonly COMMA = 4;
|
|
11
|
+
static readonly DOT = 5;
|
|
12
|
+
static readonly LEFT_BRACKET = 6;
|
|
13
|
+
static readonly RIGHT_BRACKET = 7;
|
|
14
|
+
static readonly KW_ADD = 8;
|
|
15
|
+
static readonly KW_AFTER = 9;
|
|
16
|
+
static readonly KW_ALL = 10;
|
|
17
|
+
static readonly KW_ALTER = 11;
|
|
18
|
+
static readonly KW_ALWAYS = 12;
|
|
19
|
+
static readonly KW_ANALYZE = 13;
|
|
20
|
+
static readonly KW_AND = 14;
|
|
21
|
+
static readonly KW_ANTI = 15;
|
|
22
|
+
static readonly KW_ANY = 16;
|
|
23
|
+
static readonly KW_ANY_VALUE = 17;
|
|
24
|
+
static readonly KW_ARCHIVE = 18;
|
|
25
|
+
static readonly KW_ARRAY = 19;
|
|
26
|
+
static readonly KW_AS = 20;
|
|
27
|
+
static readonly KW_ASC = 21;
|
|
28
|
+
static readonly KW_AT = 22;
|
|
29
|
+
static readonly KW_AUTHORIZATION = 23;
|
|
30
|
+
static readonly KW_BETWEEN = 24;
|
|
31
|
+
static readonly KW_BIGINT = 25;
|
|
32
|
+
static readonly KW_BINARY = 26;
|
|
33
|
+
static readonly KW_BOOLEAN = 27;
|
|
34
|
+
static readonly KW_BOTH = 28;
|
|
35
|
+
static readonly KW_BUCKET = 29;
|
|
36
|
+
static readonly KW_BUCKETS = 30;
|
|
37
|
+
static readonly KW_BY = 31;
|
|
38
|
+
static readonly KW_BYTE = 32;
|
|
39
|
+
static readonly KW_CACHE = 33;
|
|
40
|
+
static readonly KW_CASCADE = 34;
|
|
41
|
+
static readonly KW_CASE = 35;
|
|
42
|
+
static readonly KW_CAST = 36;
|
|
43
|
+
static readonly KW_CATALOG = 37;
|
|
44
|
+
static readonly KW_CATALOGS = 38;
|
|
45
|
+
static readonly KW_CHANGE = 39;
|
|
46
|
+
static readonly KW_CHAR = 40;
|
|
47
|
+
static readonly KW_CHARACTER = 41;
|
|
48
|
+
static readonly KW_CHECK = 42;
|
|
49
|
+
static readonly KW_CLEAR = 43;
|
|
50
|
+
static readonly KW_CLUSTER = 44;
|
|
51
|
+
static readonly KW_CLUSTERED = 45;
|
|
52
|
+
static readonly KW_CODEGEN = 46;
|
|
53
|
+
static readonly KW_COLLATE = 47;
|
|
54
|
+
static readonly KW_COLLECTION = 48;
|
|
55
|
+
static readonly KW_COLUMN = 49;
|
|
56
|
+
static readonly KW_COLUMNS = 50;
|
|
57
|
+
static readonly KW_COMMENT = 51;
|
|
58
|
+
static readonly KW_COMMIT = 52;
|
|
59
|
+
static readonly KW_COMPACT = 53;
|
|
60
|
+
static readonly KW_COMPACTIONS = 54;
|
|
61
|
+
static readonly KW_COMPUTE = 55;
|
|
62
|
+
static readonly KW_CONCATENATE = 56;
|
|
63
|
+
static readonly KW_CONSTRAINT = 57;
|
|
64
|
+
static readonly KW_COST = 58;
|
|
65
|
+
static readonly KW_CREATE = 59;
|
|
66
|
+
static readonly KW_CROSS = 60;
|
|
67
|
+
static readonly KW_CUBE = 61;
|
|
68
|
+
static readonly KW_CURRENT = 62;
|
|
69
|
+
static readonly KW_CURRENT_DATE = 63;
|
|
70
|
+
static readonly KW_CURRENT_TIME = 64;
|
|
71
|
+
static readonly KW_CURRENT_TIMESTAMP = 65;
|
|
72
|
+
static readonly KW_CURRENT_USER = 66;
|
|
73
|
+
static readonly KW_DAY = 67;
|
|
74
|
+
static readonly KW_DAYS = 68;
|
|
75
|
+
static readonly KW_DAYOFYEAR = 69;
|
|
76
|
+
static readonly KW_DATA = 70;
|
|
77
|
+
static readonly KW_DATE = 71;
|
|
78
|
+
static readonly KW_DATABASE = 72;
|
|
79
|
+
static readonly KW_DATABASES = 73;
|
|
80
|
+
static readonly KW_DATEADD = 74;
|
|
81
|
+
static readonly KW_DATE_ADD = 75;
|
|
82
|
+
static readonly KW_DATEDIFF = 76;
|
|
83
|
+
static readonly KW_DATE_DIFF = 77;
|
|
84
|
+
static readonly KW_DBPROPERTIES = 78;
|
|
85
|
+
static readonly KW_DEC = 79;
|
|
86
|
+
static readonly KW_DECIMAL = 80;
|
|
87
|
+
static readonly KW_DECLARE = 81;
|
|
88
|
+
static readonly KW_DEFAULT = 82;
|
|
89
|
+
static readonly KW_DEFINED = 83;
|
|
90
|
+
static readonly KW_DELETE = 84;
|
|
91
|
+
static readonly KW_DELIMITED = 85;
|
|
92
|
+
static readonly KW_DESC = 86;
|
|
93
|
+
static readonly KW_DESCRIBE = 87;
|
|
94
|
+
static readonly KW_DFS = 88;
|
|
95
|
+
static readonly KW_DIRECTORIES = 89;
|
|
96
|
+
static readonly KW_DIRECTORY = 90;
|
|
97
|
+
static readonly KW_DISTINCT = 91;
|
|
98
|
+
static readonly KW_DISTRIBUTE = 92;
|
|
99
|
+
static readonly KW_DIV = 93;
|
|
100
|
+
static readonly KW_DOUBLE = 94;
|
|
101
|
+
static readonly KW_DROP = 95;
|
|
102
|
+
static readonly KW_ELSE = 96;
|
|
103
|
+
static readonly KW_END = 97;
|
|
104
|
+
static readonly KW_ESCAPE = 98;
|
|
105
|
+
static readonly KW_ESCAPED = 99;
|
|
106
|
+
static readonly KW_EXCEPT = 100;
|
|
107
|
+
static readonly KW_EXCHANGE = 101;
|
|
108
|
+
static readonly KW_EXCLUDE = 102;
|
|
109
|
+
static readonly KW_EXISTS = 103;
|
|
110
|
+
static readonly KW_EXPLAIN = 104;
|
|
111
|
+
static readonly KW_EXPORT = 105;
|
|
112
|
+
static readonly KW_EXTENDED = 106;
|
|
113
|
+
static readonly KW_EXTERNAL = 107;
|
|
114
|
+
static readonly KW_EXTRACT = 108;
|
|
115
|
+
static readonly KW_FALSE = 109;
|
|
116
|
+
static readonly KW_FETCH = 110;
|
|
117
|
+
static readonly KW_FIELDS = 111;
|
|
118
|
+
static readonly KW_FILTER = 112;
|
|
119
|
+
static readonly KW_FILEFORMAT = 113;
|
|
120
|
+
static readonly KW_FIRST = 114;
|
|
121
|
+
static readonly KW_FLOAT = 115;
|
|
122
|
+
static readonly KW_FOLLOWING = 116;
|
|
123
|
+
static readonly KW_FOR = 117;
|
|
124
|
+
static readonly KW_FOREIGN = 118;
|
|
125
|
+
static readonly KW_FORMAT = 119;
|
|
126
|
+
static readonly KW_FORMATTED = 120;
|
|
127
|
+
static readonly KW_FROM = 121;
|
|
128
|
+
static readonly KW_FULL = 122;
|
|
129
|
+
static readonly KW_FUNCTION = 123;
|
|
130
|
+
static readonly KW_FUNCTIONS = 124;
|
|
131
|
+
static readonly KW_GENERATED = 125;
|
|
132
|
+
static readonly KW_GLOBAL = 126;
|
|
133
|
+
static readonly KW_GRANT = 127;
|
|
134
|
+
static readonly KW_GROUP = 128;
|
|
135
|
+
static readonly KW_GROUPING = 129;
|
|
136
|
+
static readonly KW_HAVING = 130;
|
|
137
|
+
static readonly KW_BINARY_HEX = 131;
|
|
138
|
+
static readonly KW_HOUR = 132;
|
|
139
|
+
static readonly KW_HOURS = 133;
|
|
140
|
+
static readonly KW_IDENTIFIER_KW = 134;
|
|
141
|
+
static readonly KW_IF = 135;
|
|
142
|
+
static readonly KW_IGNORE = 136;
|
|
143
|
+
static readonly KW_IMPORT = 137;
|
|
144
|
+
static readonly KW_IN = 138;
|
|
145
|
+
static readonly KW_INCLUDE = 139;
|
|
146
|
+
static readonly KW_INDEX = 140;
|
|
147
|
+
static readonly KW_INDEXES = 141;
|
|
148
|
+
static readonly KW_INNER = 142;
|
|
149
|
+
static readonly KW_INPATH = 143;
|
|
150
|
+
static readonly KW_INPUTFORMAT = 144;
|
|
151
|
+
static readonly KW_INSERT = 145;
|
|
152
|
+
static readonly KW_INTERSECT = 146;
|
|
153
|
+
static readonly KW_INTERVAL = 147;
|
|
154
|
+
static readonly KW_INT = 148;
|
|
155
|
+
static readonly KW_INTEGER = 149;
|
|
156
|
+
static readonly KW_INTO = 150;
|
|
157
|
+
static readonly KW_IS = 151;
|
|
158
|
+
static readonly KW_ITEMS = 152;
|
|
159
|
+
static readonly KW_JOIN = 153;
|
|
160
|
+
static readonly KW_KEYS = 154;
|
|
161
|
+
static readonly KW_LAST = 155;
|
|
162
|
+
static readonly KW_LATERAL = 156;
|
|
163
|
+
static readonly KW_LAZY = 157;
|
|
164
|
+
static readonly KW_LEADING = 158;
|
|
165
|
+
static readonly KW_LEFT = 159;
|
|
166
|
+
static readonly KW_LIKE = 160;
|
|
167
|
+
static readonly KW_ILIKE = 161;
|
|
168
|
+
static readonly KW_LIMIT = 162;
|
|
169
|
+
static readonly KW_LINES = 163;
|
|
170
|
+
static readonly KW_LIST = 164;
|
|
171
|
+
static readonly KW_LOAD = 165;
|
|
172
|
+
static readonly KW_LOCAL = 166;
|
|
173
|
+
static readonly KW_LOCATION = 167;
|
|
174
|
+
static readonly KW_LOCK = 168;
|
|
175
|
+
static readonly KW_LOCKS = 169;
|
|
176
|
+
static readonly KW_LOGICAL = 170;
|
|
177
|
+
static readonly KW_LONG = 171;
|
|
178
|
+
static readonly KW_MACRO = 172;
|
|
179
|
+
static readonly KW_MAP = 173;
|
|
180
|
+
static readonly KW_MATCHED = 174;
|
|
181
|
+
static readonly KW_MERGE = 175;
|
|
182
|
+
static readonly KW_MICROSECOND = 176;
|
|
183
|
+
static readonly KW_MICROSECONDS = 177;
|
|
184
|
+
static readonly KW_MILLISECOND = 178;
|
|
185
|
+
static readonly KW_MILLISECONDS = 179;
|
|
186
|
+
static readonly KW_MINUTE = 180;
|
|
187
|
+
static readonly KW_MINUTES = 181;
|
|
188
|
+
static readonly KW_MONTH = 182;
|
|
189
|
+
static readonly KW_MONTHS = 183;
|
|
190
|
+
static readonly KW_MSCK = 184;
|
|
191
|
+
static readonly KW_NAME = 185;
|
|
192
|
+
static readonly KW_NAMESPACE = 186;
|
|
193
|
+
static readonly KW_NAMESPACES = 187;
|
|
194
|
+
static readonly KW_NANOSECOND = 188;
|
|
195
|
+
static readonly KW_NANOSECONDS = 189;
|
|
196
|
+
static readonly KW_NATURAL = 190;
|
|
197
|
+
static readonly KW_NO = 191;
|
|
198
|
+
static readonly KW_NOT = 192;
|
|
199
|
+
static readonly KW_NULL = 193;
|
|
200
|
+
static readonly KW_NULLS = 194;
|
|
201
|
+
static readonly KW_NUMERIC = 195;
|
|
202
|
+
static readonly KW_OF = 196;
|
|
203
|
+
static readonly KW_OFFSET = 197;
|
|
204
|
+
static readonly KW_ON = 198;
|
|
205
|
+
static readonly KW_ONLY = 199;
|
|
206
|
+
static readonly KW_OPTION = 200;
|
|
207
|
+
static readonly KW_OPTIONS = 201;
|
|
208
|
+
static readonly KW_OR = 202;
|
|
209
|
+
static readonly KW_ORDER = 203;
|
|
210
|
+
static readonly KW_OUT = 204;
|
|
211
|
+
static readonly KW_OUTER = 205;
|
|
212
|
+
static readonly KW_OUTPUTFORMAT = 206;
|
|
213
|
+
static readonly KW_OVER = 207;
|
|
214
|
+
static readonly KW_OVERLAPS = 208;
|
|
215
|
+
static readonly KW_OVERLAY = 209;
|
|
216
|
+
static readonly KW_OVERWRITE = 210;
|
|
217
|
+
static readonly KW_PARTITION = 211;
|
|
218
|
+
static readonly KW_PARTITIONED = 212;
|
|
219
|
+
static readonly KW_PARTITIONS = 213;
|
|
220
|
+
static readonly KW_PERCENTILE_CONT = 214;
|
|
221
|
+
static readonly KW_PERCENTILE_DISC = 215;
|
|
222
|
+
static readonly KW_PERCENTLIT = 216;
|
|
223
|
+
static readonly KW_PIVOT = 217;
|
|
224
|
+
static readonly KW_PLACING = 218;
|
|
225
|
+
static readonly KW_POSITION = 219;
|
|
226
|
+
static readonly KW_PRECEDING = 220;
|
|
227
|
+
static readonly KW_PRIMARY = 221;
|
|
228
|
+
static readonly KW_PRINCIPALS = 222;
|
|
229
|
+
static readonly KW_PROPERTIES = 223;
|
|
230
|
+
static readonly KW_PURGE = 224;
|
|
231
|
+
static readonly KW_QUARTER = 225;
|
|
232
|
+
static readonly KW_QUERY = 226;
|
|
233
|
+
static readonly KW_RANGE = 227;
|
|
234
|
+
static readonly KW_REAL = 228;
|
|
235
|
+
static readonly KW_RECORDREADER = 229;
|
|
236
|
+
static readonly KW_RECORDWRITER = 230;
|
|
237
|
+
static readonly KW_RECOVER = 231;
|
|
238
|
+
static readonly KW_REDUCE = 232;
|
|
239
|
+
static readonly KW_REFERENCES = 233;
|
|
240
|
+
static readonly KW_REFRESH = 234;
|
|
241
|
+
static readonly KW_RENAME = 235;
|
|
242
|
+
static readonly KW_REPAIR = 236;
|
|
243
|
+
static readonly KW_REPEATABLE = 237;
|
|
244
|
+
static readonly KW_REPLACE = 238;
|
|
245
|
+
static readonly KW_RESET = 239;
|
|
246
|
+
static readonly KW_RESPECT = 240;
|
|
247
|
+
static readonly KW_RESTRICT = 241;
|
|
248
|
+
static readonly KW_REVOKE = 242;
|
|
249
|
+
static readonly KW_RIGHT = 243;
|
|
250
|
+
static readonly KW_RLIKE = 244;
|
|
251
|
+
static readonly KW_REGEXP = 245;
|
|
252
|
+
static readonly KW_ROLE = 246;
|
|
253
|
+
static readonly KW_ROLES = 247;
|
|
254
|
+
static readonly KW_ROLLBACK = 248;
|
|
255
|
+
static readonly KW_ROLLUP = 249;
|
|
256
|
+
static readonly KW_ROW = 250;
|
|
257
|
+
static readonly KW_ROWS = 251;
|
|
258
|
+
static readonly KW_SECOND = 252;
|
|
259
|
+
static readonly KW_SECONDS = 253;
|
|
260
|
+
static readonly KW_SCHEMA = 254;
|
|
261
|
+
static readonly KW_SCHEMAS = 255;
|
|
262
|
+
static readonly KW_SELECT = 256;
|
|
263
|
+
static readonly KW_SEMI = 257;
|
|
264
|
+
static readonly KW_SEPARATED = 258;
|
|
265
|
+
static readonly KW_SERDE = 259;
|
|
266
|
+
static readonly KW_SERDEPROPERTIES = 260;
|
|
267
|
+
static readonly KW_SESSION_USER = 261;
|
|
268
|
+
static readonly KW_SET = 262;
|
|
269
|
+
static readonly KW_SETMINUS = 263;
|
|
270
|
+
static readonly KW_SETS = 264;
|
|
271
|
+
static readonly KW_SHORT = 265;
|
|
272
|
+
static readonly KW_SHOW = 266;
|
|
273
|
+
static readonly KW_SINGLE = 267;
|
|
274
|
+
static readonly KW_SKEWED = 268;
|
|
275
|
+
static readonly KW_SMALLINT = 269;
|
|
276
|
+
static readonly KW_SOME = 270;
|
|
277
|
+
static readonly KW_SORT = 271;
|
|
278
|
+
static readonly KW_SORTED = 272;
|
|
279
|
+
static readonly KW_SOURCE = 273;
|
|
280
|
+
static readonly KW_START = 274;
|
|
281
|
+
static readonly KW_STATISTICS = 275;
|
|
282
|
+
static readonly KW_STORED = 276;
|
|
283
|
+
static readonly KW_STRATIFY = 277;
|
|
284
|
+
static readonly KW_STRING = 278;
|
|
285
|
+
static readonly KW_STRUCT = 279;
|
|
286
|
+
static readonly KW_SUBSTR = 280;
|
|
287
|
+
static readonly KW_SUBSTRING = 281;
|
|
288
|
+
static readonly KW_SYNC = 282;
|
|
289
|
+
static readonly KW_SYSTEM = 283;
|
|
290
|
+
static readonly KW_SYSTEM_TIME = 284;
|
|
291
|
+
static readonly KW_SYSTEM_VERSION = 285;
|
|
292
|
+
static readonly KW_TABLE = 286;
|
|
293
|
+
static readonly KW_TABLES = 287;
|
|
294
|
+
static readonly KW_TABLESAMPLE = 288;
|
|
295
|
+
static readonly KW_TARGET = 289;
|
|
296
|
+
static readonly KW_TBLPROPERTIES = 290;
|
|
297
|
+
static readonly KW_TEMPORARY = 291;
|
|
298
|
+
static readonly KW_TERMINATED = 292;
|
|
299
|
+
static readonly KW_THEN = 293;
|
|
300
|
+
static readonly KW_TIME = 294;
|
|
301
|
+
static readonly KW_TIMEDIFF = 295;
|
|
302
|
+
static readonly KW_TIMESTAMP = 296;
|
|
303
|
+
static readonly KW_TIMESTAMP_LTZ = 297;
|
|
304
|
+
static readonly KW_TIMESTAMP_NTZ = 298;
|
|
305
|
+
static readonly KW_TIMESTAMPADD = 299;
|
|
306
|
+
static readonly KW_TIMESTAMPDIFF = 300;
|
|
307
|
+
static readonly KW_TINYINT = 301;
|
|
308
|
+
static readonly KW_TO = 302;
|
|
309
|
+
static readonly KW_TOUCH = 303;
|
|
310
|
+
static readonly KW_TRAILING = 304;
|
|
311
|
+
static readonly KW_TRANSACTION = 305;
|
|
312
|
+
static readonly KW_TRANSACTIONS = 306;
|
|
313
|
+
static readonly KW_TRANSFORM = 307;
|
|
314
|
+
static readonly KW_TRIM = 308;
|
|
315
|
+
static readonly KW_TRUE = 309;
|
|
316
|
+
static readonly KW_TRUNCATE = 310;
|
|
317
|
+
static readonly KW_TRY_CAST = 311;
|
|
318
|
+
static readonly KW_TYPE = 312;
|
|
319
|
+
static readonly KW_UNARCHIVE = 313;
|
|
320
|
+
static readonly KW_UNBOUNDED = 314;
|
|
321
|
+
static readonly KW_UNCACHE = 315;
|
|
322
|
+
static readonly KW_UNION = 316;
|
|
323
|
+
static readonly KW_UNIQUE = 317;
|
|
324
|
+
static readonly KW_UNKNOWN = 318;
|
|
325
|
+
static readonly KW_UNLOCK = 319;
|
|
326
|
+
static readonly KW_UNPIVOT = 320;
|
|
327
|
+
static readonly KW_UNSET = 321;
|
|
328
|
+
static readonly KW_UPDATE = 322;
|
|
329
|
+
static readonly KW_USE = 323;
|
|
330
|
+
static readonly KW_USER = 324;
|
|
331
|
+
static readonly KW_USING = 325;
|
|
332
|
+
static readonly KW_VALUES = 326;
|
|
333
|
+
static readonly KW_VARCHAR = 327;
|
|
334
|
+
static readonly KW_VAR = 328;
|
|
335
|
+
static readonly KW_VARIABLE = 329;
|
|
336
|
+
static readonly KW_VERSION = 330;
|
|
337
|
+
static readonly KW_VIEW = 331;
|
|
338
|
+
static readonly KW_VIEWS = 332;
|
|
339
|
+
static readonly KW_VOID = 333;
|
|
340
|
+
static readonly KW_WEEK = 334;
|
|
341
|
+
static readonly KW_WEEKS = 335;
|
|
342
|
+
static readonly KW_WHEN = 336;
|
|
343
|
+
static readonly KW_WHERE = 337;
|
|
344
|
+
static readonly KW_WINDOW = 338;
|
|
345
|
+
static readonly KW_WITH = 339;
|
|
346
|
+
static readonly KW_WITHIN = 340;
|
|
347
|
+
static readonly KW_YEAR = 341;
|
|
348
|
+
static readonly KW_YEARS = 342;
|
|
349
|
+
static readonly KW_ZONE = 343;
|
|
350
|
+
static readonly EQ = 344;
|
|
351
|
+
static readonly NSEQ = 345;
|
|
352
|
+
static readonly NEQ = 346;
|
|
353
|
+
static readonly NEQJ = 347;
|
|
354
|
+
static readonly LT = 348;
|
|
355
|
+
static readonly LTE = 349;
|
|
356
|
+
static readonly GT = 350;
|
|
357
|
+
static readonly GTE = 351;
|
|
358
|
+
static readonly NOT = 352;
|
|
359
|
+
static readonly PLUS = 353;
|
|
360
|
+
static readonly MINUS = 354;
|
|
361
|
+
static readonly ASTERISK = 355;
|
|
362
|
+
static readonly SLASH = 356;
|
|
363
|
+
static readonly PERCENT = 357;
|
|
364
|
+
static readonly TILDE = 358;
|
|
365
|
+
static readonly AMPERSAND = 359;
|
|
366
|
+
static readonly PIPE = 360;
|
|
367
|
+
static readonly CONCAT_PIPE = 361;
|
|
368
|
+
static readonly HAT = 362;
|
|
369
|
+
static readonly COLON = 363;
|
|
370
|
+
static readonly ARROW = 364;
|
|
371
|
+
static readonly FAT_ARROW = 365;
|
|
372
|
+
static readonly HENT_START = 366;
|
|
373
|
+
static readonly HENT_END = 367;
|
|
374
|
+
static readonly QUESTION = 368;
|
|
375
|
+
static readonly STRING_LITERAL = 369;
|
|
376
|
+
static readonly DOUBLEQUOTED_STRING = 370;
|
|
377
|
+
static readonly BIGINT_LITERAL = 371;
|
|
378
|
+
static readonly SMALLINT_LITERAL = 372;
|
|
379
|
+
static readonly TINYINT_LITERAL = 373;
|
|
380
|
+
static readonly INTEGER_VALUE = 374;
|
|
381
|
+
static readonly EXPONENT_VALUE = 375;
|
|
382
|
+
static readonly DECIMAL_VALUE = 376;
|
|
383
|
+
static readonly FLOAT_LITERAL = 377;
|
|
384
|
+
static readonly DOUBLE_LITERAL = 378;
|
|
385
|
+
static readonly BIGDECIMAL_LITERAL = 379;
|
|
386
|
+
static readonly IDENTIFIER = 380;
|
|
387
|
+
static readonly BACKQUOTED_IDENTIFIER = 381;
|
|
388
|
+
static readonly SIMPLE_COMMENT = 382;
|
|
389
|
+
static readonly BRACKETED_COMMENT = 383;
|
|
390
|
+
static readonly WS = 384;
|
|
391
|
+
static readonly UNRECOGNIZED = 385;
|
|
302
392
|
static readonly channelNames: string[];
|
|
303
393
|
static readonly modeNames: string[];
|
|
304
394
|
static readonly ruleNames: string[];
|
|
@@ -307,46 +397,32 @@ export declare class SparkSqlLexer extends Lexer {
|
|
|
307
397
|
static readonly VOCABULARY: Vocabulary;
|
|
308
398
|
get vocabulary(): Vocabulary;
|
|
309
399
|
/**
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
* For example:
|
|
314
|
-
* For char stream "2.3", "2." is not a valid decimal token, because it is followed by digit '3'.
|
|
315
|
-
* For char stream "2.3_", "2.3" is not a valid decimal token, because it is followed by '_'.
|
|
316
|
-
* For char stream "2.3W", "2.3" is not a valid decimal token, because it is followed by 'W'.
|
|
317
|
-
* For char stream "12.0D 34.E2+0.12 " 12.0D is a valid decimal token because it is followed
|
|
318
|
-
* by a space. 34.E2 is a valid decimal token because it is followed by symbol '+'
|
|
319
|
-
* which is not a digit or letter or underscore.
|
|
320
|
-
*/
|
|
321
|
-
isValidDecimal(): boolean;
|
|
400
|
+
* When true, parser should throw ParseException for unclosed bracketed comment.
|
|
401
|
+
*/
|
|
402
|
+
has_unclosed_bracketed_comment: boolean;
|
|
322
403
|
/**
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
isHint(): boolean;
|
|
330
|
-
fromCodePoint(codePoint: any): string;
|
|
404
|
+
* This method will be called when the character stream ends and try to find out the
|
|
405
|
+
* unclosed bracketed comment.
|
|
406
|
+
* If the method be called, it means the end of the entire character stream match,
|
|
407
|
+
* and we set the flag and fail later.
|
|
408
|
+
*/
|
|
409
|
+
markUnclosedComment(): void;
|
|
331
410
|
constructor(input: CharStream);
|
|
332
411
|
get grammarFileName(): string;
|
|
333
412
|
get ruleNames(): string[];
|
|
334
413
|
get serializedATN(): string;
|
|
335
414
|
get channelNames(): string[];
|
|
336
415
|
get modeNames(): string[];
|
|
337
|
-
|
|
338
|
-
private
|
|
339
|
-
private DECIMAL_VALUE_sempred;
|
|
340
|
-
private FLOAT_LITERAL_sempred;
|
|
341
|
-
private DOUBLE_LITERAL_sempred;
|
|
342
|
-
private BIGDECIMAL_LITERAL_sempred;
|
|
343
|
-
private BRACKETED_COMMENT_sempred;
|
|
416
|
+
action(_localctx: RuleContext, ruleIndex: number, actionIndex: number): void;
|
|
417
|
+
private BRACKETED_COMMENT_action;
|
|
344
418
|
private static readonly _serializedATNSegments;
|
|
345
419
|
private static readonly _serializedATNSegment0;
|
|
346
420
|
private static readonly _serializedATNSegment1;
|
|
347
421
|
private static readonly _serializedATNSegment2;
|
|
348
422
|
private static readonly _serializedATNSegment3;
|
|
349
423
|
private static readonly _serializedATNSegment4;
|
|
424
|
+
private static readonly _serializedATNSegment5;
|
|
425
|
+
private static readonly _serializedATNSegment6;
|
|
350
426
|
static readonly _serializedATN: string;
|
|
351
427
|
static __ATN: ATN;
|
|
352
428
|
static get _ATN(): ATN;
|