spark-sql-language-server 0.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +30 -0
  2. package/out/sparksql-server-worker.js +2 -0
  3. package/out/sparksql-server-worker.js.map +1 -0
  4. package/out-tsc/assets/built-in-functions.d.ts +9 -0
  5. package/out-tsc/assets/built-in-functions.js +3996 -0
  6. package/out-tsc/assets/built-in-functions.js.map +1 -0
  7. package/out-tsc/auto-completion.d.ts +4 -0
  8. package/out-tsc/auto-completion.js +74 -0
  9. package/out-tsc/auto-completion.js.map +1 -0
  10. package/out-tsc/constant.d.ts +2 -0
  11. package/out-tsc/constant.js +6 -0
  12. package/out-tsc/constant.js.map +1 -0
  13. package/out-tsc/index.d.ts +3 -0
  14. package/out-tsc/index.js +20 -0
  15. package/out-tsc/index.js.map +1 -0
  16. package/out-tsc/lib/SparkSqlLexer.d.ts +421 -0
  17. package/out-tsc/lib/SparkSqlLexer.js +2501 -0
  18. package/out-tsc/lib/SparkSqlLexer.js.map +1 -0
  19. package/out-tsc/lib/SparkSqlParser.d.ts +5888 -0
  20. package/out-tsc/lib/SparkSqlParser.js +32320 -0
  21. package/out-tsc/lib/SparkSqlParser.js.map +1 -0
  22. package/out-tsc/lib/SparkSqlParserListener.d.ts +1089 -0
  23. package/out-tsc/lib/SparkSqlParserListener.js +3 -0
  24. package/out-tsc/lib/SparkSqlParserListener.js.map +1 -0
  25. package/out-tsc/lib/SparkSqlParserVisitor.d.ts +727 -0
  26. package/out-tsc/lib/SparkSqlParserVisitor.js +3 -0
  27. package/out-tsc/lib/SparkSqlParserVisitor.js.map +1 -0
  28. package/out-tsc/listeners/parse-error.listener.d.ts +11 -0
  29. package/out-tsc/listeners/parse-error.listener.js +48 -0
  30. package/out-tsc/listeners/parse-error.listener.js.map +1 -0
  31. package/out-tsc/listeners/statement.listener.d.ts +11 -0
  32. package/out-tsc/listeners/statement.listener.js +44 -0
  33. package/out-tsc/listeners/statement.listener.js.map +1 -0
  34. package/out-tsc/lsp-server.d.ts +15 -0
  35. package/out-tsc/lsp-server.js +81 -0
  36. package/out-tsc/lsp-server.js.map +1 -0
  37. package/out-tsc/parsing-warehouse.d.ts +19 -0
  38. package/out-tsc/parsing-warehouse.js +63 -0
  39. package/out-tsc/parsing-warehouse.js.map +1 -0
  40. package/out-tsc/protocol-translation.d.ts +6 -0
  41. package/out-tsc/protocol-translation.js +128 -0
  42. package/out-tsc/protocol-translation.js.map +1 -0
  43. package/out-tsc/public-apis.d.ts +1 -0
  44. package/out-tsc/public-apis.js +6 -0
  45. package/out-tsc/public-apis.js.map +1 -0
  46. package/out-tsc/server-worker.d.ts +1 -0
  47. package/out-tsc/server-worker.js +126 -0
  48. package/out-tsc/server-worker.js.map +1 -0
  49. package/package.json +39 -0
@@ -0,0 +1,421 @@
1
+ import { ATN } from "antlr4ts/atn/ATN";
2
+ import { CharStream } from "antlr4ts/CharStream";
3
+ import { Lexer } from "antlr4ts/Lexer";
4
+ import { RuleContext } from "antlr4ts/RuleContext";
5
+ import { Vocabulary } from "antlr4ts/Vocabulary";
6
+ export declare class SparkSqlLexer extends Lexer {
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 ADD = 8;
15
+ static readonly AFTER = 9;
16
+ static readonly ALL = 10;
17
+ static readonly ALTER = 11;
18
+ static readonly ALWAYS = 12;
19
+ static readonly ANALYZE = 13;
20
+ static readonly AND = 14;
21
+ static readonly ANTI = 15;
22
+ static readonly ANY = 16;
23
+ static readonly ANY_VALUE = 17;
24
+ static readonly ARCHIVE = 18;
25
+ static readonly ARRAY = 19;
26
+ static readonly AS = 20;
27
+ static readonly ASC = 21;
28
+ static readonly AT = 22;
29
+ static readonly AUTHORIZATION = 23;
30
+ static readonly BETWEEN = 24;
31
+ static readonly BIGINT = 25;
32
+ static readonly BINARY = 26;
33
+ static readonly BOOLEAN = 27;
34
+ static readonly BOTH = 28;
35
+ static readonly BUCKET = 29;
36
+ static readonly BUCKETS = 30;
37
+ static readonly BY = 31;
38
+ static readonly BYTE = 32;
39
+ static readonly CACHE = 33;
40
+ static readonly CASCADE = 34;
41
+ static readonly CASE = 35;
42
+ static readonly CAST = 36;
43
+ static readonly CATALOG = 37;
44
+ static readonly CATALOGS = 38;
45
+ static readonly CHANGE = 39;
46
+ static readonly CHAR = 40;
47
+ static readonly CHARACTER = 41;
48
+ static readonly CHECK = 42;
49
+ static readonly CLEAR = 43;
50
+ static readonly CLUSTER = 44;
51
+ static readonly CLUSTERED = 45;
52
+ static readonly CODEGEN = 46;
53
+ static readonly COLLATE = 47;
54
+ static readonly COLLECTION = 48;
55
+ static readonly COLUMN = 49;
56
+ static readonly COLUMNS = 50;
57
+ static readonly COMMENT = 51;
58
+ static readonly COMMIT = 52;
59
+ static readonly COMPACT = 53;
60
+ static readonly COMPACTIONS = 54;
61
+ static readonly COMPUTE = 55;
62
+ static readonly CONCATENATE = 56;
63
+ static readonly CONSTRAINT = 57;
64
+ static readonly COST = 58;
65
+ static readonly CREATE = 59;
66
+ static readonly CROSS = 60;
67
+ static readonly CUBE = 61;
68
+ static readonly CURRENT = 62;
69
+ static readonly CURRENT_DATE = 63;
70
+ static readonly CURRENT_TIME = 64;
71
+ static readonly CURRENT_TIMESTAMP = 65;
72
+ static readonly CURRENT_USER = 66;
73
+ static readonly DAY = 67;
74
+ static readonly DAYS = 68;
75
+ static readonly DAYOFYEAR = 69;
76
+ static readonly DATA = 70;
77
+ static readonly DATE = 71;
78
+ static readonly DATABASE = 72;
79
+ static readonly DATABASES = 73;
80
+ static readonly DATEADD = 74;
81
+ static readonly DATE_ADD = 75;
82
+ static readonly DATEDIFF = 76;
83
+ static readonly DATE_DIFF = 77;
84
+ static readonly DBPROPERTIES = 78;
85
+ static readonly DEC = 79;
86
+ static readonly DECIMAL = 80;
87
+ static readonly DEFAULT = 81;
88
+ static readonly DEFINED = 82;
89
+ static readonly DELETE = 83;
90
+ static readonly DELIMITED = 84;
91
+ static readonly DESC = 85;
92
+ static readonly DESCRIBE = 86;
93
+ static readonly DFS = 87;
94
+ static readonly DIRECTORIES = 88;
95
+ static readonly DIRECTORY = 89;
96
+ static readonly DISTINCT = 90;
97
+ static readonly DISTRIBUTE = 91;
98
+ static readonly DIV = 92;
99
+ static readonly DOUBLE = 93;
100
+ static readonly DROP = 94;
101
+ static readonly ELSE = 95;
102
+ static readonly END = 96;
103
+ static readonly ESCAPE = 97;
104
+ static readonly ESCAPED = 98;
105
+ static readonly EXCEPT = 99;
106
+ static readonly EXCHANGE = 100;
107
+ static readonly EXCLUDE = 101;
108
+ static readonly EXISTS = 102;
109
+ static readonly EXPLAIN = 103;
110
+ static readonly EXPORT = 104;
111
+ static readonly EXTENDED = 105;
112
+ static readonly EXTERNAL = 106;
113
+ static readonly EXTRACT = 107;
114
+ static readonly FALSE = 108;
115
+ static readonly FETCH = 109;
116
+ static readonly FIELDS = 110;
117
+ static readonly FILTER = 111;
118
+ static readonly FILEFORMAT = 112;
119
+ static readonly FIRST = 113;
120
+ static readonly FLOAT = 114;
121
+ static readonly FOLLOWING = 115;
122
+ static readonly FOR = 116;
123
+ static readonly FOREIGN = 117;
124
+ static readonly FORMAT = 118;
125
+ static readonly FORMATTED = 119;
126
+ static readonly FROM = 120;
127
+ static readonly FULL = 121;
128
+ static readonly FUNCTION = 122;
129
+ static readonly FUNCTIONS = 123;
130
+ static readonly GENERATED = 124;
131
+ static readonly GLOBAL = 125;
132
+ static readonly GRANT = 126;
133
+ static readonly GROUP = 127;
134
+ static readonly GROUPING = 128;
135
+ static readonly HAVING = 129;
136
+ static readonly BINARY_HEX = 130;
137
+ static readonly HOUR = 131;
138
+ static readonly HOURS = 132;
139
+ static readonly IDENTIFIER_KW = 133;
140
+ static readonly IF = 134;
141
+ static readonly IGNORE = 135;
142
+ static readonly IMPORT = 136;
143
+ static readonly IN = 137;
144
+ static readonly INCLUDE = 138;
145
+ static readonly INDEX = 139;
146
+ static readonly INDEXES = 140;
147
+ static readonly INNER = 141;
148
+ static readonly INPATH = 142;
149
+ static readonly INPUTFORMAT = 143;
150
+ static readonly INSERT = 144;
151
+ static readonly INTERSECT = 145;
152
+ static readonly INTERVAL = 146;
153
+ static readonly INT = 147;
154
+ static readonly INTEGER = 148;
155
+ static readonly INTO = 149;
156
+ static readonly IS = 150;
157
+ static readonly ITEMS = 151;
158
+ static readonly JOIN = 152;
159
+ static readonly KEYS = 153;
160
+ static readonly LAST = 154;
161
+ static readonly LATERAL = 155;
162
+ static readonly LAZY = 156;
163
+ static readonly LEADING = 157;
164
+ static readonly LEFT = 158;
165
+ static readonly LIKE = 159;
166
+ static readonly ILIKE = 160;
167
+ static readonly LIMIT = 161;
168
+ static readonly LINES = 162;
169
+ static readonly LIST = 163;
170
+ static readonly LOAD = 164;
171
+ static readonly LOCAL = 165;
172
+ static readonly LOCATION = 166;
173
+ static readonly LOCK = 167;
174
+ static readonly LOCKS = 168;
175
+ static readonly LOGICAL = 169;
176
+ static readonly LONG = 170;
177
+ static readonly MACRO = 171;
178
+ static readonly MAP = 172;
179
+ static readonly MATCHED = 173;
180
+ static readonly MERGE = 174;
181
+ static readonly MICROSECOND = 175;
182
+ static readonly MICROSECONDS = 176;
183
+ static readonly MILLISECOND = 177;
184
+ static readonly MILLISECONDS = 178;
185
+ static readonly MINUTE = 179;
186
+ static readonly MINUTES = 180;
187
+ static readonly MONTH = 181;
188
+ static readonly MONTHS = 182;
189
+ static readonly MSCK = 183;
190
+ static readonly NAME = 184;
191
+ static readonly NAMESPACE = 185;
192
+ static readonly NAMESPACES = 186;
193
+ static readonly NANOSECOND = 187;
194
+ static readonly NANOSECONDS = 188;
195
+ static readonly NATURAL = 189;
196
+ static readonly NO = 190;
197
+ static readonly NOT = 191;
198
+ static readonly NULL = 192;
199
+ static readonly NULLS = 193;
200
+ static readonly NUMERIC = 194;
201
+ static readonly OF = 195;
202
+ static readonly OFFSET = 196;
203
+ static readonly ON = 197;
204
+ static readonly ONLY = 198;
205
+ static readonly OPTION = 199;
206
+ static readonly OPTIONS = 200;
207
+ static readonly OR = 201;
208
+ static readonly ORDER = 202;
209
+ static readonly OUT = 203;
210
+ static readonly OUTER = 204;
211
+ static readonly OUTPUTFORMAT = 205;
212
+ static readonly OVER = 206;
213
+ static readonly OVERLAPS = 207;
214
+ static readonly OVERLAY = 208;
215
+ static readonly OVERWRITE = 209;
216
+ static readonly PARTITION = 210;
217
+ static readonly PARTITIONED = 211;
218
+ static readonly PARTITIONS = 212;
219
+ static readonly PERCENTILE_CONT = 213;
220
+ static readonly PERCENTILE_DISC = 214;
221
+ static readonly PERCENTLIT = 215;
222
+ static readonly PIVOT = 216;
223
+ static readonly PLACING = 217;
224
+ static readonly POSITION = 218;
225
+ static readonly PRECEDING = 219;
226
+ static readonly PRIMARY = 220;
227
+ static readonly PRINCIPALS = 221;
228
+ static readonly PROPERTIES = 222;
229
+ static readonly PURGE = 223;
230
+ static readonly QUARTER = 224;
231
+ static readonly QUERY = 225;
232
+ static readonly RANGE = 226;
233
+ static readonly REAL = 227;
234
+ static readonly RECORDREADER = 228;
235
+ static readonly RECORDWRITER = 229;
236
+ static readonly RECOVER = 230;
237
+ static readonly REDUCE = 231;
238
+ static readonly REFERENCES = 232;
239
+ static readonly REFRESH = 233;
240
+ static readonly RENAME = 234;
241
+ static readonly REPAIR = 235;
242
+ static readonly REPEATABLE = 236;
243
+ static readonly REPLACE = 237;
244
+ static readonly RESET = 238;
245
+ static readonly RESPECT = 239;
246
+ static readonly RESTRICT = 240;
247
+ static readonly REVOKE = 241;
248
+ static readonly RIGHT = 242;
249
+ static readonly RLIKE = 243;
250
+ static readonly ROLE = 244;
251
+ static readonly ROLES = 245;
252
+ static readonly ROLLBACK = 246;
253
+ static readonly ROLLUP = 247;
254
+ static readonly ROW = 248;
255
+ static readonly ROWS = 249;
256
+ static readonly SECOND = 250;
257
+ static readonly SECONDS = 251;
258
+ static readonly SCHEMA = 252;
259
+ static readonly SCHEMAS = 253;
260
+ static readonly SELECT = 254;
261
+ static readonly SEMI = 255;
262
+ static readonly SEPARATED = 256;
263
+ static readonly SERDE = 257;
264
+ static readonly SERDEPROPERTIES = 258;
265
+ static readonly SESSION_USER = 259;
266
+ static readonly SET = 260;
267
+ static readonly SETMINUS = 261;
268
+ static readonly SETS = 262;
269
+ static readonly SHORT = 263;
270
+ static readonly SHOW = 264;
271
+ static readonly SKEWED = 265;
272
+ static readonly SMALLINT = 266;
273
+ static readonly SOME = 267;
274
+ static readonly SORT = 268;
275
+ static readonly SORTED = 269;
276
+ static readonly SOURCE = 270;
277
+ static readonly START = 271;
278
+ static readonly STATISTICS = 272;
279
+ static readonly STORED = 273;
280
+ static readonly STRATIFY = 274;
281
+ static readonly STRING = 275;
282
+ static readonly STRUCT = 276;
283
+ static readonly SUBSTR = 277;
284
+ static readonly SUBSTRING = 278;
285
+ static readonly SYNC = 279;
286
+ static readonly SYSTEM_TIME = 280;
287
+ static readonly SYSTEM_VERSION = 281;
288
+ static readonly TABLE = 282;
289
+ static readonly TABLES = 283;
290
+ static readonly TABLESAMPLE = 284;
291
+ static readonly TARGET = 285;
292
+ static readonly TBLPROPERTIES = 286;
293
+ static readonly TEMPORARY = 287;
294
+ static readonly TERMINATED = 288;
295
+ static readonly THEN = 289;
296
+ static readonly TIME = 290;
297
+ static readonly TIMESTAMP = 291;
298
+ static readonly TIMESTAMP_LTZ = 292;
299
+ static readonly TIMESTAMP_NTZ = 293;
300
+ static readonly TIMESTAMPADD = 294;
301
+ static readonly TIMESTAMPDIFF = 295;
302
+ static readonly TINYINT = 296;
303
+ static readonly TO = 297;
304
+ static readonly TOUCH = 298;
305
+ static readonly TRAILING = 299;
306
+ static readonly TRANSACTION = 300;
307
+ static readonly TRANSACTIONS = 301;
308
+ static readonly TRANSFORM = 302;
309
+ static readonly TRIM = 303;
310
+ static readonly TRUE = 304;
311
+ static readonly TRUNCATE = 305;
312
+ static readonly TRY_CAST = 306;
313
+ static readonly TYPE = 307;
314
+ static readonly UNARCHIVE = 308;
315
+ static readonly UNBOUNDED = 309;
316
+ static readonly UNCACHE = 310;
317
+ static readonly UNION = 311;
318
+ static readonly UNIQUE = 312;
319
+ static readonly UNKNOWN = 313;
320
+ static readonly UNLOCK = 314;
321
+ static readonly UNPIVOT = 315;
322
+ static readonly UNSET = 316;
323
+ static readonly UPDATE = 317;
324
+ static readonly USE = 318;
325
+ static readonly USER = 319;
326
+ static readonly USING = 320;
327
+ static readonly VALUES = 321;
328
+ static readonly VARCHAR = 322;
329
+ static readonly VERSION = 323;
330
+ static readonly VIEW = 324;
331
+ static readonly VIEWS = 325;
332
+ static readonly VOID = 326;
333
+ static readonly WEEK = 327;
334
+ static readonly WEEKS = 328;
335
+ static readonly WHEN = 329;
336
+ static readonly WHERE = 330;
337
+ static readonly WINDOW = 331;
338
+ static readonly WITH = 332;
339
+ static readonly WITHIN = 333;
340
+ static readonly YEAR = 334;
341
+ static readonly YEARS = 335;
342
+ static readonly ZONE = 336;
343
+ static readonly EQ = 337;
344
+ static readonly NSEQ = 338;
345
+ static readonly NEQ = 339;
346
+ static readonly NEQJ = 340;
347
+ static readonly LT = 341;
348
+ static readonly LTE = 342;
349
+ static readonly GT = 343;
350
+ static readonly GTE = 344;
351
+ static readonly PLUS = 345;
352
+ static readonly MINUS = 346;
353
+ static readonly ASTERISK = 347;
354
+ static readonly SLASH = 348;
355
+ static readonly PERCENT = 349;
356
+ static readonly TILDE = 350;
357
+ static readonly AMPERSAND = 351;
358
+ static readonly PIPE = 352;
359
+ static readonly CONCAT_PIPE = 353;
360
+ static readonly HAT = 354;
361
+ static readonly COLON = 355;
362
+ static readonly ARROW = 356;
363
+ static readonly FAT_ARROW = 357;
364
+ static readonly HENT_START = 358;
365
+ static readonly HENT_END = 359;
366
+ static readonly QUESTION = 360;
367
+ static readonly STRING_LITERAL = 361;
368
+ static readonly DOUBLEQUOTED_STRING = 362;
369
+ static readonly BIGINT_LITERAL = 363;
370
+ static readonly SMALLINT_LITERAL = 364;
371
+ static readonly TINYINT_LITERAL = 365;
372
+ static readonly INTEGER_VALUE = 366;
373
+ static readonly EXPONENT_VALUE = 367;
374
+ static readonly DECIMAL_VALUE = 368;
375
+ static readonly FLOAT_LITERAL = 369;
376
+ static readonly DOUBLE_LITERAL = 370;
377
+ static readonly BIGDECIMAL_LITERAL = 371;
378
+ static readonly IDENTIFIER = 372;
379
+ static readonly BACKQUOTED_IDENTIFIER = 373;
380
+ static readonly SIMPLE_COMMENT = 374;
381
+ static readonly BRACKETED_COMMENT = 375;
382
+ static readonly WS = 376;
383
+ static readonly UNRECOGNIZED = 377;
384
+ static readonly channelNames: string[];
385
+ static readonly modeNames: string[];
386
+ static readonly ruleNames: string[];
387
+ private static readonly _LITERAL_NAMES;
388
+ private static readonly _SYMBOLIC_NAMES;
389
+ static readonly VOCABULARY: Vocabulary;
390
+ get vocabulary(): Vocabulary;
391
+ has_unclosed_bracketed_comment: boolean;
392
+ isValidDecimal(): boolean;
393
+ isHint(): boolean;
394
+ markUnclosedComment(): void;
395
+ constructor(input: CharStream);
396
+ get grammarFileName(): string;
397
+ get ruleNames(): string[];
398
+ get serializedATN(): string;
399
+ get channelNames(): string[];
400
+ get modeNames(): string[];
401
+ action(_localctx: RuleContext, ruleIndex: number, actionIndex: number): void;
402
+ private BRACKETED_COMMENT_action;
403
+ sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
404
+ private EXPONENT_VALUE_sempred;
405
+ private DECIMAL_VALUE_sempred;
406
+ private FLOAT_LITERAL_sempred;
407
+ private DOUBLE_LITERAL_sempred;
408
+ private BIGDECIMAL_LITERAL_sempred;
409
+ private BRACKETED_COMMENT_sempred;
410
+ private static readonly _serializedATNSegments;
411
+ private static readonly _serializedATNSegment0;
412
+ private static readonly _serializedATNSegment1;
413
+ private static readonly _serializedATNSegment2;
414
+ private static readonly _serializedATNSegment3;
415
+ private static readonly _serializedATNSegment4;
416
+ private static readonly _serializedATNSegment5;
417
+ private static readonly _serializedATNSegment6;
418
+ static readonly _serializedATN: string;
419
+ static __ATN: ATN;
420
+ static get _ATN(): ATN;
421
+ }