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.
Files changed (93) hide show
  1. package/README.md +124 -43
  2. package/dist/index.d.ts +5 -5
  3. package/dist/index.js +4 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/flinksql/FlinkSqlLexer.d.ts +202 -201
  6. package/dist/lib/flinksql/FlinkSqlLexer.js +2003 -1996
  7. package/dist/lib/flinksql/FlinkSqlLexer.js.map +1 -1
  8. package/dist/lib/flinksql/FlinkSqlParser.d.ts +328 -265
  9. package/dist/lib/flinksql/FlinkSqlParser.js +3712 -3076
  10. package/dist/lib/flinksql/FlinkSqlParser.js.map +1 -1
  11. package/dist/lib/flinksql/FlinkSqlParserListener.d.ts +44 -0
  12. package/dist/lib/flinksql/FlinkSqlParserVisitor.d.ts +28 -0
  13. package/dist/lib/hive/HiveSqlLexer.d.ts +365 -351
  14. package/dist/lib/hive/HiveSqlLexer.js +2494 -2457
  15. package/dist/lib/hive/HiveSqlLexer.js.map +1 -1
  16. package/dist/lib/hive/{HiveSql.d.ts → HiveSqlParser.d.ts} +2791 -2463
  17. package/dist/lib/hive/{HiveSql.js → HiveSqlParser.js} +18554 -16800
  18. package/dist/lib/hive/HiveSqlParser.js.map +1 -0
  19. package/dist/lib/hive/{HiveSqlListener.d.ts → HiveSqlParserListener.d.ts} +1759 -1517
  20. package/dist/lib/hive/HiveSqlParserListener.js +3 -0
  21. package/dist/lib/hive/HiveSqlParserListener.js.map +1 -0
  22. package/dist/lib/hive/{HiveSqlVisitor.d.ts → HiveSqlParserVisitor.d.ts} +1165 -1011
  23. package/dist/lib/hive/HiveSqlParserVisitor.js +3 -0
  24. package/dist/lib/hive/HiveSqlParserVisitor.js.map +1 -0
  25. package/dist/lib/pgsql/PostgreSQLLexerBase.js +0 -4
  26. package/dist/lib/pgsql/PostgreSQLLexerBase.js.map +1 -1
  27. package/dist/lib/pgsql/PostgreSQLParserBase.js +0 -6
  28. package/dist/lib/pgsql/PostgreSQLParserBase.js.map +1 -1
  29. package/dist/lib/spark/SparkSqlLexer.d.ts +398 -322
  30. package/dist/lib/spark/SparkSqlLexer.js +2302 -1738
  31. package/dist/lib/spark/SparkSqlLexer.js.map +1 -1
  32. package/dist/lib/spark/SparkSqlParser.d.ts +3319 -3314
  33. package/dist/lib/spark/SparkSqlParser.js +18718 -16132
  34. package/dist/lib/spark/SparkSqlParser.js.map +1 -1
  35. package/dist/lib/spark/SparkSqlParserListener.d.ts +2130 -0
  36. package/dist/lib/spark/SparkSqlParserListener.js +3 -0
  37. package/dist/lib/spark/SparkSqlParserListener.js.map +1 -0
  38. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +1361 -0
  39. package/dist/lib/spark/SparkSqlParserVisitor.js +3 -0
  40. package/dist/lib/spark/SparkSqlParserVisitor.js.map +1 -0
  41. package/dist/parser/common/basic-parser-types.d.ts +16 -3
  42. package/dist/parser/common/basic-parser-types.js +12 -2
  43. package/dist/parser/common/basic-parser-types.js.map +1 -1
  44. package/dist/parser/common/basicParser.d.ts +27 -28
  45. package/dist/parser/common/basicParser.js +76 -60
  46. package/dist/parser/common/basicParser.js.map +1 -1
  47. package/dist/parser/common/parseErrorListener.d.ts +33 -0
  48. package/dist/parser/common/parseErrorListener.js +28 -0
  49. package/dist/parser/common/parseErrorListener.js.map +1 -0
  50. package/dist/parser/flinksql.d.ts +1 -1
  51. package/dist/parser/flinksql.js +32 -13
  52. package/dist/parser/flinksql.js.map +1 -1
  53. package/dist/parser/generic.js +1 -1
  54. package/dist/parser/generic.js.map +1 -1
  55. package/dist/parser/hive.d.ts +12 -5
  56. package/dist/parser/hive.js +91 -7
  57. package/dist/parser/hive.js.map +1 -1
  58. package/dist/parser/index.d.ts +1 -0
  59. package/dist/parser/index.js +1 -0
  60. package/dist/parser/index.js.map +1 -1
  61. package/dist/parser/pgsql.js +1 -1
  62. package/dist/parser/pgsql.js.map +1 -1
  63. package/dist/parser/plsql.js +1 -1
  64. package/dist/parser/plsql.js.map +1 -1
  65. package/dist/parser/spark.d.ts +10 -3
  66. package/dist/parser/spark.js +90 -7
  67. package/dist/parser/spark.js.map +1 -1
  68. package/dist/parser/trinosql.js +1 -1
  69. package/dist/parser/trinosql.js.map +1 -1
  70. package/dist/utils/findCaretTokenIndex.d.ts +2 -2
  71. package/dist/utils/findCaretTokenIndex.js +5 -4
  72. package/dist/utils/findCaretTokenIndex.js.map +1 -1
  73. package/dist/utils/index.d.ts +1 -1
  74. package/dist/utils/index.js +1 -5
  75. package/dist/utils/index.js.map +1 -1
  76. package/dist/utils/token.d.ts +2 -2
  77. package/dist/utils/token.js +2 -2
  78. package/dist/utils/token.js.map +1 -1
  79. package/package.json +16 -9
  80. package/dist/lib/hive/HiveSql.js.map +0 -1
  81. package/dist/lib/hive/HiveSqlListener.js +0 -3
  82. package/dist/lib/hive/HiveSqlListener.js.map +0 -1
  83. package/dist/lib/hive/HiveSqlVisitor.js +0 -3
  84. package/dist/lib/hive/HiveSqlVisitor.js.map +0 -1
  85. package/dist/lib/spark/SparkSqlListener.d.ts +0 -3516
  86. package/dist/lib/spark/SparkSqlListener.js +0 -3
  87. package/dist/lib/spark/SparkSqlListener.js.map +0 -1
  88. package/dist/lib/spark/SparkSqlVisitor.d.ts +0 -2201
  89. package/dist/lib/spark/SparkSqlVisitor.js +0 -3
  90. package/dist/lib/spark/SparkSqlVisitor.js.map +0 -1
  91. package/dist/parser/common/parserErrorListener.d.ts +0 -30
  92. package/dist/parser/common/parserErrorListener.js +0 -62
  93. 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 T__0 = 1;
8
- static readonly T__1 = 2;
9
- static readonly T__2 = 3;
10
- static readonly T__3 = 4;
11
- static readonly T__4 = 5;
12
- static readonly T__5 = 6;
13
- static readonly T__6 = 7;
14
- static readonly T__7 = 8;
15
- static readonly T__8 = 9;
16
- static readonly T__9 = 10;
17
- static readonly ADD = 11;
18
- static readonly AFTER = 12;
19
- static readonly ALL = 13;
20
- static readonly ALTER = 14;
21
- static readonly ANALYZE = 15;
22
- static readonly AND = 16;
23
- static readonly ANTI = 17;
24
- static readonly ANY = 18;
25
- static readonly ARCHIVE = 19;
26
- static readonly ARRAY = 20;
27
- static readonly AS = 21;
28
- static readonly ASC = 22;
29
- static readonly AT = 23;
30
- static readonly AUTHORIZATION = 24;
31
- static readonly BETWEEN = 25;
32
- static readonly BOTH = 26;
33
- static readonly BUCKET = 27;
34
- static readonly BUCKETS = 28;
35
- static readonly BY = 29;
36
- static readonly CACHE = 30;
37
- static readonly CASCADE = 31;
38
- static readonly CASE = 32;
39
- static readonly CAST = 33;
40
- static readonly CHANGE = 34;
41
- static readonly CHECK = 35;
42
- static readonly CLEAR = 36;
43
- static readonly CLUSTER = 37;
44
- static readonly CLUSTERED = 38;
45
- static readonly CODEGEN = 39;
46
- static readonly COLLATE = 40;
47
- static readonly COLLECTION = 41;
48
- static readonly COLUMN = 42;
49
- static readonly COLUMNS = 43;
50
- static readonly COMMENT = 44;
51
- static readonly COMMIT = 45;
52
- static readonly COMPACT = 46;
53
- static readonly COMPACTIONS = 47;
54
- static readonly COMPUTE = 48;
55
- static readonly CONCATENATE = 49;
56
- static readonly CONSTRAINT = 50;
57
- static readonly COST = 51;
58
- static readonly CREATE = 52;
59
- static readonly CROSS = 53;
60
- static readonly CUBE = 54;
61
- static readonly CURRENT = 55;
62
- static readonly CURRENT_DATE = 56;
63
- static readonly CURRENT_TIME = 57;
64
- static readonly CURRENT_TIMESTAMP = 58;
65
- static readonly CURRENT_USER = 59;
66
- static readonly DATA = 60;
67
- static readonly DATABASE = 61;
68
- static readonly DATABASES = 62;
69
- static readonly DBPROPERTIES = 63;
70
- static readonly DEFINED = 64;
71
- static readonly DELETE = 65;
72
- static readonly DELIMITED = 66;
73
- static readonly DESC = 67;
74
- static readonly DESCRIBE = 68;
75
- static readonly DFS = 69;
76
- static readonly DIRECTORIES = 70;
77
- static readonly DIRECTORY = 71;
78
- static readonly DISTINCT = 72;
79
- static readonly DISTRIBUTE = 73;
80
- static readonly DIV = 74;
81
- static readonly DROP = 75;
82
- static readonly ELSE = 76;
83
- static readonly END = 77;
84
- static readonly ESCAPE = 78;
85
- static readonly ESCAPED = 79;
86
- static readonly EXCEPT = 80;
87
- static readonly EXCHANGE = 81;
88
- static readonly EXISTS = 82;
89
- static readonly EXPLAIN = 83;
90
- static readonly EXPORT = 84;
91
- static readonly EXTENDED = 85;
92
- static readonly EXTERNAL = 86;
93
- static readonly EXTRACT = 87;
94
- static readonly FALSE = 88;
95
- static readonly FETCH = 89;
96
- static readonly FIELDS = 90;
97
- static readonly FILTER = 91;
98
- static readonly FILEFORMAT = 92;
99
- static readonly FIRST = 93;
100
- static readonly FOLLOWING = 94;
101
- static readonly FOR = 95;
102
- static readonly FOREIGN = 96;
103
- static readonly FORMAT = 97;
104
- static readonly FORMATTED = 98;
105
- static readonly FROM = 99;
106
- static readonly FULL = 100;
107
- static readonly FUNCTION = 101;
108
- static readonly FUNCTIONS = 102;
109
- static readonly GLOBAL = 103;
110
- static readonly GRANT = 104;
111
- static readonly GROUP = 105;
112
- static readonly GROUPING = 106;
113
- static readonly HAVING = 107;
114
- static readonly IF = 108;
115
- static readonly IGNORE = 109;
116
- static readonly IMPORT = 110;
117
- static readonly IN = 111;
118
- static readonly INDEX = 112;
119
- static readonly INDEXES = 113;
120
- static readonly INNER = 114;
121
- static readonly INPATH = 115;
122
- static readonly INPUTFORMAT = 116;
123
- static readonly INSERT = 117;
124
- static readonly INTERSECT = 118;
125
- static readonly INTERVAL = 119;
126
- static readonly INTO = 120;
127
- static readonly IS = 121;
128
- static readonly ITEMS = 122;
129
- static readonly JOIN = 123;
130
- static readonly KEYS = 124;
131
- static readonly LAST = 125;
132
- static readonly LATERAL = 126;
133
- static readonly LAZY = 127;
134
- static readonly LEADING = 128;
135
- static readonly LEFT = 129;
136
- static readonly LIKE = 130;
137
- static readonly LIMIT = 131;
138
- static readonly LINES = 132;
139
- static readonly LIST = 133;
140
- static readonly LOAD = 134;
141
- static readonly LOCAL = 135;
142
- static readonly LOCATION = 136;
143
- static readonly LOCK = 137;
144
- static readonly LOCKS = 138;
145
- static readonly LOGICAL = 139;
146
- static readonly MACRO = 140;
147
- static readonly MAP = 141;
148
- static readonly MATCHED = 142;
149
- static readonly MERGE = 143;
150
- static readonly MSCK = 144;
151
- static readonly NAMESPACE = 145;
152
- static readonly NAMESPACES = 146;
153
- static readonly NATURAL = 147;
154
- static readonly NO = 148;
155
- static readonly NOT = 149;
156
- static readonly NULL = 150;
157
- static readonly NULLS = 151;
158
- static readonly OF = 152;
159
- static readonly ON = 153;
160
- static readonly ONLY = 154;
161
- static readonly OPTION = 155;
162
- static readonly OPTIONS = 156;
163
- static readonly OR = 157;
164
- static readonly ORDER = 158;
165
- static readonly OUT = 159;
166
- static readonly OUTER = 160;
167
- static readonly OUTPUTFORMAT = 161;
168
- static readonly OVER = 162;
169
- static readonly OVERLAPS = 163;
170
- static readonly OVERLAY = 164;
171
- static readonly OVERWRITE = 165;
172
- static readonly PARTITION = 166;
173
- static readonly PARTITIONED = 167;
174
- static readonly PARTITIONS = 168;
175
- static readonly PERCENTLIT = 169;
176
- static readonly PIVOT = 170;
177
- static readonly PLACING = 171;
178
- static readonly POSITION = 172;
179
- static readonly PRECEDING = 173;
180
- static readonly PRIMARY = 174;
181
- static readonly PRINCIPALS = 175;
182
- static readonly PROPERTIES = 176;
183
- static readonly PURGE = 177;
184
- static readonly QUERY = 178;
185
- static readonly RANGE = 179;
186
- static readonly RECORDREADER = 180;
187
- static readonly RECORDWRITER = 181;
188
- static readonly RECOVER = 182;
189
- static readonly REDUCE = 183;
190
- static readonly REFERENCES = 184;
191
- static readonly REFRESH = 185;
192
- static readonly RENAME = 186;
193
- static readonly REPAIR = 187;
194
- static readonly REPLACE = 188;
195
- static readonly RESET = 189;
196
- static readonly RESTRICT = 190;
197
- static readonly REVOKE = 191;
198
- static readonly RIGHT = 192;
199
- static readonly RLIKE = 193;
200
- static readonly ROLE = 194;
201
- static readonly ROLES = 195;
202
- static readonly ROLLBACK = 196;
203
- static readonly ROLLUP = 197;
204
- static readonly ROW = 198;
205
- static readonly ROWS = 199;
206
- static readonly SCHEMA = 200;
207
- static readonly SELECT = 201;
208
- static readonly SEMI = 202;
209
- static readonly SEPARATED = 203;
210
- static readonly SERDE = 204;
211
- static readonly SERDEPROPERTIES = 205;
212
- static readonly SESSION_USER = 206;
213
- static readonly SET = 207;
214
- static readonly SETMINUS = 208;
215
- static readonly SETS = 209;
216
- static readonly SHOW = 210;
217
- static readonly SKEWED = 211;
218
- static readonly SOME = 212;
219
- static readonly SORT = 213;
220
- static readonly SORTED = 214;
221
- static readonly START = 215;
222
- static readonly STATISTICS = 216;
223
- static readonly STORED = 217;
224
- static readonly STRATIFY = 218;
225
- static readonly STRUCT = 219;
226
- static readonly SUBSTR = 220;
227
- static readonly SUBSTRING = 221;
228
- static readonly TABLE = 222;
229
- static readonly TABLES = 223;
230
- static readonly TABLESAMPLE = 224;
231
- static readonly TBLPROPERTIES = 225;
232
- static readonly TEMPORARY = 226;
233
- static readonly TERMINATED = 227;
234
- static readonly THEN = 228;
235
- static readonly TIME = 229;
236
- static readonly TO = 230;
237
- static readonly TOUCH = 231;
238
- static readonly TRAILING = 232;
239
- static readonly TRANSACTION = 233;
240
- static readonly TRANSACTIONS = 234;
241
- static readonly TRANSFORM = 235;
242
- static readonly TRIM = 236;
243
- static readonly TRUE = 237;
244
- static readonly TRUNCATE = 238;
245
- static readonly TYPE = 239;
246
- static readonly UNARCHIVE = 240;
247
- static readonly UNBOUNDED = 241;
248
- static readonly UNCACHE = 242;
249
- static readonly UNION = 243;
250
- static readonly UNIQUE = 244;
251
- static readonly UNKNOWN = 245;
252
- static readonly UNLOCK = 246;
253
- static readonly UNSET = 247;
254
- static readonly UPDATE = 248;
255
- static readonly USE = 249;
256
- static readonly USER = 250;
257
- static readonly USING = 251;
258
- static readonly VALUES = 252;
259
- static readonly VIEW = 253;
260
- static readonly VIEWS = 254;
261
- static readonly WHEN = 255;
262
- static readonly WHERE = 256;
263
- static readonly WINDOW = 257;
264
- static readonly WITH = 258;
265
- static readonly ZONE = 259;
266
- static readonly EQ = 260;
267
- static readonly NSEQ = 261;
268
- static readonly NEQ = 262;
269
- static readonly NEQJ = 263;
270
- static readonly LT = 264;
271
- static readonly LTE = 265;
272
- static readonly GT = 266;
273
- static readonly GTE = 267;
274
- static readonly PLUS = 268;
275
- static readonly MINUS = 269;
276
- static readonly ASTERISK = 270;
277
- static readonly SLASH = 271;
278
- static readonly PERCENT = 272;
279
- static readonly TILDE = 273;
280
- static readonly AMPERSAND = 274;
281
- static readonly PIPE = 275;
282
- static readonly CONCAT_PIPE = 276;
283
- static readonly HAT = 277;
284
- static readonly SEMICOLON = 278;
285
- static readonly STRING = 279;
286
- static readonly BIGINT_LITERAL = 280;
287
- static readonly SMALLINT_LITERAL = 281;
288
- static readonly TINYINT_LITERAL = 282;
289
- static readonly INTEGER_VALUE = 283;
290
- static readonly EXPONENT_VALUE = 284;
291
- static readonly DECIMAL_VALUE = 285;
292
- static readonly FLOAT_LITERAL = 286;
293
- static readonly DOUBLE_LITERAL = 287;
294
- static readonly BIGDECIMAL_LITERAL = 288;
295
- static readonly IDENTIFIER = 289;
296
- static readonly BACKQUOTED_IDENTIFIER = 290;
297
- static readonly CUSTOM_VARS = 291;
298
- static readonly SIMPLE_COMMENT = 292;
299
- static readonly BRACKETED_COMMENT = 293;
300
- static readonly WS = 294;
301
- static readonly UNRECOGNIZED = 295;
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
- * Verify whether current token is a valid decimal token (which contains dot).
311
- * Returns true if the character that follows the token is not a digit or letter or underscore.
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
- * This method will be called when we see '/*' and try to match it as a bracketed comment.
324
- * If the next character is '+', it should be parsed as hint later, and we cannot match
325
- * it as a bracketed comment.
326
- *
327
- * Returns true if the next character is '+'.
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
- sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
338
- private EXPONENT_VALUE_sempred;
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;