sqllens 1.1.0 → 1.2.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.
- package/README.md +2 -74
- package/THIRD-PARTY-NOTICES.md +50 -5
- package/dist/api.d.ts +5 -3
- package/dist/api.js +11 -4
- package/dist/bigquery/behavior.d.ts +2 -0
- package/dist/bigquery/behavior.js +20 -0
- package/dist/bigquery/dot-path.d.ts +0 -2
- package/dist/bigquery/dot-path.js +0 -1
- package/dist/bigquery/fold.d.ts +8 -0
- package/dist/bigquery/fold.js +39 -0
- package/dist/bigquery/index.d.ts +7 -0
- package/dist/bigquery/index.js +10 -0
- package/dist/{infer/bigquery.d.ts → bigquery/infer.d.ts} +2 -2
- package/dist/{infer/bigquery.js → bigquery/infer.js} +4 -3
- package/dist/bigquery/lower.js +35 -12
- package/dist/bigquery/signatures.generated.d.ts +6 -0
- package/dist/bigquery/signatures.generated.js +1068 -0
- package/dist/completion/atn-walk.d.ts +13 -2
- package/dist/completion/atn-walk.js +13 -10
- package/dist/completion/complete.d.ts +4 -3
- package/dist/completion/complete.js +101 -45
- package/dist/completion/jinja-slot.d.ts +24 -0
- package/dist/completion/jinja-slot.js +126 -0
- package/dist/completion/parser-factory.d.ts +13 -1
- package/dist/completion/parser-factory.js +12 -0
- package/dist/databricks/behavior.d.ts +2 -0
- package/dist/databricks/behavior.js +19 -0
- package/dist/databricks/fold.d.ts +8 -0
- package/dist/databricks/fold.js +27 -0
- package/dist/databricks/index.d.ts +7 -0
- package/dist/databricks/index.js +10 -0
- package/dist/databricks/infer.d.ts +6 -0
- package/dist/databricks/infer.js +638 -0
- package/dist/databricks/signatures.generated.d.ts +6 -0
- package/dist/databricks/signatures.generated.js +1745 -0
- package/dist/dialect-behavior/behavior.d.ts +26 -0
- package/dist/dialect-behavior/behavior.js +1 -0
- package/dist/dialect-behavior/carrier.d.ts +5 -0
- package/dist/dialect-behavior/carrier.js +5 -0
- package/dist/dialect-behavior/coerce-rules.d.ts +7 -0
- package/dist/dialect-behavior/coerce-rules.js +69 -0
- package/dist/dialect-behavior/public-fold.d.ts +6 -0
- package/dist/dialect-behavior/public-fold.js +9 -0
- package/dist/dialect-behavior/registry.d.ts +6 -0
- package/dist/dialect-behavior/registry.js +34 -0
- package/dist/dialect-symbols.js +16 -19
- package/dist/document/document.d.ts +1 -1
- package/dist/document/document.js +8 -7
- package/dist/duckdb/behavior.d.ts +2 -0
- package/dist/duckdb/behavior.js +21 -0
- package/dist/duckdb/fold.d.ts +8 -0
- package/dist/duckdb/fold.js +29 -0
- package/dist/duckdb/index.d.ts +7 -0
- package/dist/duckdb/index.js +10 -0
- package/dist/{infer/duckdb.d.ts → duckdb/infer.d.ts} +2 -2
- package/dist/{infer/duckdb.js → duckdb/infer.js} +4 -3
- package/dist/duckdb/lower.js +47 -15
- package/dist/duckdb/signatures.generated.d.ts +6 -0
- package/dist/duckdb/signatures.generated.js +1072 -0
- package/dist/generated/bigquery/GoogleSQLParser.js +0 -7060
- package/dist/generated/databricks/DatabricksParser.js +0 -4800
- package/dist/generated/duckdb/DuckdbParser.js +0 -9100
- package/dist/generated/minijinja/MinijinjaParser.js +0 -380
- package/dist/generated/mysql/MysqlParser.js +0 -6330
- package/dist/generated/postgres/PostgresParser.js +0 -8530
- package/dist/generated/redshift/RedshiftParser.js +0 -10970
- package/dist/generated/snowflake/SnowflakeParser.js +0 -7320
- package/dist/generated/sqlite/SqliteParser.js +0 -1150
- package/dist/generated/trino/TrinoParser.js +0 -3770
- package/dist/generated/tsql/TSqlParser.js +0 -8420
- package/dist/ident/fold.d.ts +24 -15
- package/dist/ident/fold.js +12 -194
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -8
- package/dist/infer/functions.d.ts +22 -11
- package/dist/infer/functions.js +26 -888
- package/dist/infer/infer.js +16 -14
- package/dist/infer/nullability.js +3 -4
- package/dist/infer/types.d.ts +1 -1
- package/dist/infer/types.js +7 -7
- package/dist/ir/ir.d.ts +26 -17
- package/dist/ir/span.js +0 -2
- package/dist/ir/walk.js +3 -3
- package/dist/lineage/hops.js +13 -10
- package/dist/lineage/lineage.js +10 -7
- package/dist/minijinja/apply-tags.d.ts +14 -7
- package/dist/minijinja/apply-tags.js +66 -121
- package/dist/minijinja/parse.js +5 -5
- package/dist/minijinja/tag-ast.d.ts +29 -36
- package/dist/minijinja/tag-ast.js +210 -90
- package/dist/mysql/behavior.d.ts +2 -0
- package/dist/mysql/behavior.js +21 -0
- package/dist/mysql/fold.d.ts +8 -0
- package/dist/mysql/fold.js +49 -0
- package/dist/mysql/index.d.ts +7 -0
- package/dist/mysql/index.js +10 -0
- package/dist/{infer/mysql.d.ts → mysql/infer.d.ts} +2 -2
- package/dist/{infer/mysql.js → mysql/infer.js} +3 -2
- package/dist/mysql/signatures.generated.d.ts +6 -0
- package/dist/mysql/signatures.generated.js +508 -0
- package/dist/postgres/behavior.d.ts +2 -0
- package/dist/postgres/behavior.js +19 -0
- package/dist/postgres/fold.d.ts +8 -0
- package/dist/postgres/fold.js +30 -0
- package/dist/postgres/index.d.ts +7 -0
- package/dist/postgres/index.js +10 -0
- package/dist/{infer/postgres.d.ts → postgres/infer.d.ts} +2 -2
- package/dist/{infer/postgres.js → postgres/infer.js} +4 -3
- package/dist/postgres/lower.js +2 -2
- package/dist/postgres/signatures.generated.d.ts +6 -0
- package/dist/postgres/signatures.generated.js +2973 -0
- package/dist/qualify/check-calls.js +80 -161
- package/dist/qualify/qualify.js +16 -14
- package/dist/qualify/schema-provider.js +2 -2
- package/dist/qualify/schema.js +3 -3
- package/dist/qualify/template-provider.d.ts +45 -12
- package/dist/qualify/template-provider.js +69 -38
- package/dist/redshift/behavior.d.ts +2 -0
- package/dist/redshift/behavior.js +19 -0
- package/dist/redshift/fold.d.ts +8 -0
- package/dist/redshift/fold.js +31 -0
- package/dist/redshift/index.d.ts +7 -0
- package/dist/redshift/index.js +10 -0
- package/dist/{infer/redshift.d.ts → redshift/infer.d.ts} +2 -2
- package/dist/{infer/redshift.js → redshift/infer.js} +4 -3
- package/dist/redshift/lower.js +2 -2
- package/dist/redshift/signatures.generated.d.ts +6 -0
- package/dist/redshift/signatures.generated.js +757 -0
- package/dist/references/references.js +17 -12
- package/dist/scope/like-pattern.d.ts +2 -0
- package/dist/scope/like-pattern.js +15 -0
- package/dist/scope/scope.d.ts +5 -5
- package/dist/scope/scope.js +48 -42
- package/dist/sema/resolve.js +17 -12
- package/dist/session.d.ts +2 -2
- package/dist/signature/signature.d.ts +14 -6
- package/dist/signature/signature.js +30 -22
- package/dist/signature/signatures.d.ts +14 -12
- package/dist/signature/signatures.js +42 -721
- package/dist/snowflake/behavior.d.ts +2 -0
- package/dist/snowflake/behavior.js +22 -0
- package/dist/snowflake/fold.d.ts +8 -0
- package/dist/snowflake/fold.js +25 -0
- package/dist/snowflake/index.d.ts +7 -0
- package/dist/snowflake/index.js +10 -0
- package/dist/{infer/snowflake.d.ts → snowflake/infer.d.ts} +2 -2
- package/dist/{infer/snowflake.js → snowflake/infer.js} +4 -3
- package/dist/snowflake/lower.js +59 -19
- package/dist/snowflake/signatures.generated.d.ts +6 -0
- package/dist/snowflake/signatures.generated.js +2080 -0
- package/dist/sqlite/behavior.d.ts +2 -0
- package/dist/sqlite/behavior.js +19 -0
- package/dist/sqlite/fold.d.ts +8 -0
- package/dist/sqlite/fold.js +41 -0
- package/dist/sqlite/index.d.ts +7 -0
- package/dist/sqlite/index.js +10 -0
- package/dist/{infer/sqlite.d.ts → sqlite/infer.d.ts} +2 -2
- package/dist/{infer/sqlite.js → sqlite/infer.js} +4 -3
- package/dist/sqlite/signatures.generated.d.ts +6 -0
- package/dist/sqlite/signatures.generated.js +277 -0
- package/dist/symbols/symbols.js +14 -12
- package/dist/trino/behavior.d.ts +2 -0
- package/dist/trino/behavior.js +21 -0
- package/dist/trino/fold.d.ts +8 -0
- package/dist/trino/fold.js +39 -0
- package/dist/trino/index.d.ts +7 -0
- package/dist/trino/index.js +10 -0
- package/dist/{infer/trino.d.ts → trino/infer.d.ts} +2 -2
- package/dist/{infer/trino.js → trino/infer.js} +4 -3
- package/dist/trino/lower.js +5 -5
- package/dist/trino/signatures.generated.d.ts +6 -0
- package/dist/trino/signatures.generated.js +968 -0
- package/dist/tsql/behavior.d.ts +2 -0
- package/dist/tsql/behavior.js +20 -0
- package/dist/tsql/fold.d.ts +8 -0
- package/dist/tsql/fold.js +34 -0
- package/dist/tsql/index.d.ts +7 -0
- package/dist/tsql/index.js +10 -0
- package/dist/tsql/infer.d.ts +16 -0
- package/dist/tsql/infer.js +289 -0
- package/dist/tsql/lower.js +4 -4
- package/dist/tsql/signatures.generated.d.ts +6 -0
- package/dist/tsql/signatures.generated.js +640 -0
- package/package.json +5 -10
- package/dist/generated/bigquery/GoogleSQLLexer.d.ts +0 -407
- package/dist/generated/bigquery/GoogleSQLParser.d.ts +0 -9558
- package/dist/generated/bigquery/GoogleSQLParserListener.d.ts +0 -7777
- package/dist/generated/bigquery/GoogleSQLParserListener.js +0 -7070
- package/dist/generated/databricks/DatabricksLexer.d.ts +0 -566
- package/dist/generated/databricks/DatabricksParser.d.ts +0 -7771
- package/dist/generated/databricks/DatabricksParserListener.d.ts +0 -5737
- package/dist/generated/databricks/DatabricksParserListener.js +0 -5256
- package/dist/generated/duckdb/DuckdbLexer.d.ts +0 -691
- package/dist/generated/duckdb/DuckdbParser.d.ts +0 -13932
- package/dist/generated/duckdb/DuckdbParserListener.d.ts +0 -10049
- package/dist/generated/duckdb/DuckdbParserListener.js +0 -9138
- package/dist/generated/minijinja/MinijinjaLexer.d.ts +0 -108
- package/dist/generated/minijinja/MinijinjaParser.d.ts +0 -604
- package/dist/generated/minijinja/MinijinjaParserListener.d.ts +0 -449
- package/dist/generated/minijinja/MinijinjaParserListener.js +0 -410
- package/dist/generated/mysql/MysqlLexer.d.ts +0 -1198
- package/dist/generated/mysql/MysqlParser.d.ts +0 -10992
- package/dist/generated/mysql/MysqlParserListener.d.ts +0 -7592
- package/dist/generated/mysql/MysqlParserListener.js +0 -6958
- package/dist/generated/postgres/PostgresLexer.d.ts +0 -663
- package/dist/generated/postgres/PostgresParser.d.ts +0 -12963
- package/dist/generated/postgres/PostgresParserListener.d.ts +0 -9408
- package/dist/generated/postgres/PostgresParserListener.js +0 -8554
- package/dist/generated/redshift/RedshiftLexer.d.ts +0 -954
- package/dist/generated/redshift/RedshiftParser.d.ts +0 -16939
- package/dist/generated/redshift/RedshiftParserListener.d.ts +0 -12092
- package/dist/generated/redshift/RedshiftParserListener.js +0 -10994
- package/dist/generated/snowflake/SnowflakeLexer.d.ts +0 -1046
- package/dist/generated/snowflake/SnowflakeParser.d.ts +0 -14196
- package/dist/generated/snowflake/SnowflakeParserListener.d.ts +0 -8063
- package/dist/generated/snowflake/SnowflakeParserListener.js +0 -7330
- package/dist/generated/sqlite/SqliteLexer.d.ts +0 -210
- package/dist/generated/sqlite/SqliteParser.d.ts +0 -2115
- package/dist/generated/sqlite/SqliteParserListener.d.ts +0 -1276
- package/dist/generated/sqlite/SqliteParserListener.js +0 -1160
- package/dist/generated/trino/TrinoLexer.d.ts +0 -381
- package/dist/generated/trino/TrinoParser.d.ts +0 -5340
- package/dist/generated/trino/TrinoParserListener.d.ts +0 -4704
- package/dist/generated/trino/TrinoParserListener.js +0 -4326
- package/dist/generated/tsql/TSqlLexer.d.ts +0 -1278
- package/dist/generated/tsql/TSqlParser.d.ts +0 -17267
- package/dist/generated/tsql/TSqlParserListener.d.ts +0 -9697
- package/dist/generated/tsql/TSqlParserListener.js +0 -8854
- package/dist/infer/dialect.d.ts +0 -21
- package/dist/infer/dialect.js +0 -100
- package/dist/infer/literals.d.ts +0 -6
- package/dist/infer/literals.js +0 -44
- package/dist/signature/generated/tsql.d.ts +0 -3
- package/dist/signature/generated/tsql.js +0 -260
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
import * as antlr from "antlr4ng";
|
|
2
|
-
export declare class DatabricksLexer extends antlr.Lexer {
|
|
3
|
-
static readonly SEMICOLON = 1;
|
|
4
|
-
static readonly LEFT_PAREN = 2;
|
|
5
|
-
static readonly RIGHT_PAREN = 3;
|
|
6
|
-
static readonly COMMA = 4;
|
|
7
|
-
static readonly DOT = 5;
|
|
8
|
-
static readonly LEFT_BRACKET = 6;
|
|
9
|
-
static readonly RIGHT_BRACKET = 7;
|
|
10
|
-
static readonly BANG = 8;
|
|
11
|
-
static readonly ADD = 9;
|
|
12
|
-
static readonly AFTER = 10;
|
|
13
|
-
static readonly AGGREGATE = 11;
|
|
14
|
-
static readonly ALL = 12;
|
|
15
|
-
static readonly ALTER = 13;
|
|
16
|
-
static readonly ALWAYS = 14;
|
|
17
|
-
static readonly ANALYZE = 15;
|
|
18
|
-
static readonly AND = 16;
|
|
19
|
-
static readonly ANTI = 17;
|
|
20
|
-
static readonly ANY = 18;
|
|
21
|
-
static readonly ANY_VALUE = 19;
|
|
22
|
-
static readonly APPROX = 20;
|
|
23
|
-
static readonly ARCHIVE = 21;
|
|
24
|
-
static readonly ARRAY = 22;
|
|
25
|
-
static readonly AS = 23;
|
|
26
|
-
static readonly ASC = 24;
|
|
27
|
-
static readonly ASENSITIVE = 25;
|
|
28
|
-
static readonly AT = 26;
|
|
29
|
-
static readonly ATOMIC = 27;
|
|
30
|
-
static readonly AUTHORIZATION = 28;
|
|
31
|
-
static readonly BEGIN = 29;
|
|
32
|
-
static readonly BERNOULLI = 30;
|
|
33
|
-
static readonly BETWEEN = 31;
|
|
34
|
-
static readonly BIGINT = 32;
|
|
35
|
-
static readonly BINARY = 33;
|
|
36
|
-
static readonly BINDING = 34;
|
|
37
|
-
static readonly BOOLEAN = 35;
|
|
38
|
-
static readonly BOTH = 36;
|
|
39
|
-
static readonly BUCKET = 37;
|
|
40
|
-
static readonly BUCKETS = 38;
|
|
41
|
-
static readonly BY = 39;
|
|
42
|
-
static readonly BYTE = 40;
|
|
43
|
-
static readonly CACHE = 41;
|
|
44
|
-
static readonly CALL = 42;
|
|
45
|
-
static readonly CALLED = 43;
|
|
46
|
-
static readonly CASCADE = 44;
|
|
47
|
-
static readonly CASE = 45;
|
|
48
|
-
static readonly CAST = 46;
|
|
49
|
-
static readonly CATALOG = 47;
|
|
50
|
-
static readonly CATALOGS = 48;
|
|
51
|
-
static readonly CHANGE = 49;
|
|
52
|
-
static readonly CHANGES = 50;
|
|
53
|
-
static readonly CHAR = 51;
|
|
54
|
-
static readonly CHARACTER = 52;
|
|
55
|
-
static readonly CHECK = 53;
|
|
56
|
-
static readonly CLEAR = 54;
|
|
57
|
-
static readonly CLOSE = 55;
|
|
58
|
-
static readonly CLUSTER = 56;
|
|
59
|
-
static readonly CLUSTERED = 57;
|
|
60
|
-
static readonly CODEGEN = 58;
|
|
61
|
-
static readonly COLLATE = 59;
|
|
62
|
-
static readonly COLLATION = 60;
|
|
63
|
-
static readonly COLLATIONS = 61;
|
|
64
|
-
static readonly COLLECTION = 62;
|
|
65
|
-
static readonly COLUMN = 63;
|
|
66
|
-
static readonly COLUMNS = 64;
|
|
67
|
-
static readonly COMMENT = 65;
|
|
68
|
-
static readonly COMMIT = 66;
|
|
69
|
-
static readonly COMPACT = 67;
|
|
70
|
-
static readonly COMPACTIONS = 68;
|
|
71
|
-
static readonly COMPENSATION = 69;
|
|
72
|
-
static readonly COMPUTE = 70;
|
|
73
|
-
static readonly CONCATENATE = 71;
|
|
74
|
-
static readonly CONDITION = 72;
|
|
75
|
-
static readonly CONSTRAINT = 73;
|
|
76
|
-
static readonly CONTAINS = 74;
|
|
77
|
-
static readonly CONTINUE = 75;
|
|
78
|
-
static readonly COST = 76;
|
|
79
|
-
static readonly CREATE = 77;
|
|
80
|
-
static readonly CREDENTIAL = 78;
|
|
81
|
-
static readonly CROSS = 79;
|
|
82
|
-
static readonly CUBE = 80;
|
|
83
|
-
static readonly CURRENT = 81;
|
|
84
|
-
static readonly CURRENT_DATABASE = 82;
|
|
85
|
-
static readonly CURRENT_DATE = 83;
|
|
86
|
-
static readonly CURRENT_PATH = 84;
|
|
87
|
-
static readonly CURRENT_SCHEMA = 85;
|
|
88
|
-
static readonly CURRENT_TIME = 86;
|
|
89
|
-
static readonly CURRENT_TIMESTAMP = 87;
|
|
90
|
-
static readonly CURRENT_USER = 88;
|
|
91
|
-
static readonly CURSOR = 89;
|
|
92
|
-
static readonly DAY = 90;
|
|
93
|
-
static readonly DAYS = 91;
|
|
94
|
-
static readonly DAYOFYEAR = 92;
|
|
95
|
-
static readonly DATA = 93;
|
|
96
|
-
static readonly DATE = 94;
|
|
97
|
-
static readonly DATABASE = 95;
|
|
98
|
-
static readonly DATABASES = 96;
|
|
99
|
-
static readonly DATEADD = 97;
|
|
100
|
-
static readonly DATE_ADD = 98;
|
|
101
|
-
static readonly DATEDIFF = 99;
|
|
102
|
-
static readonly DATE_DIFF = 100;
|
|
103
|
-
static readonly DBPROPERTIES = 101;
|
|
104
|
-
static readonly DEC = 102;
|
|
105
|
-
static readonly DECIMAL = 103;
|
|
106
|
-
static readonly DECLARE = 104;
|
|
107
|
-
static readonly DEFAULT = 105;
|
|
108
|
-
static readonly DEFAULT_PATH = 106;
|
|
109
|
-
static readonly DEFINED = 107;
|
|
110
|
-
static readonly DEFINER = 108;
|
|
111
|
-
static readonly DELAY = 109;
|
|
112
|
-
static readonly DELETE = 110;
|
|
113
|
-
static readonly DELIMITED = 111;
|
|
114
|
-
static readonly DESC = 112;
|
|
115
|
-
static readonly DESCRIBE = 113;
|
|
116
|
-
static readonly DETERMINISTIC = 114;
|
|
117
|
-
static readonly DFS = 115;
|
|
118
|
-
static readonly DIRECTORIES = 116;
|
|
119
|
-
static readonly DIRECTORY = 117;
|
|
120
|
-
static readonly DISTANCE = 118;
|
|
121
|
-
static readonly DISTINCT = 119;
|
|
122
|
-
static readonly DISTRIBUTE = 120;
|
|
123
|
-
static readonly DIV = 121;
|
|
124
|
-
static readonly DO = 122;
|
|
125
|
-
static readonly DOUBLE = 123;
|
|
126
|
-
static readonly DROP = 124;
|
|
127
|
-
static readonly ELSE = 125;
|
|
128
|
-
static readonly ELSEIF = 126;
|
|
129
|
-
static readonly END = 127;
|
|
130
|
-
static readonly ENFORCED = 128;
|
|
131
|
-
static readonly ESCAPE = 129;
|
|
132
|
-
static readonly ESCAPED = 130;
|
|
133
|
-
static readonly EVOLUTION = 131;
|
|
134
|
-
static readonly EXACT = 132;
|
|
135
|
-
static readonly EXCEPT = 133;
|
|
136
|
-
static readonly EXCHANGE = 134;
|
|
137
|
-
static readonly EXCLUDE = 135;
|
|
138
|
-
static readonly EXCLUSIVE = 136;
|
|
139
|
-
static readonly EXISTS = 137;
|
|
140
|
-
static readonly EXIT = 138;
|
|
141
|
-
static readonly EXPLAIN = 139;
|
|
142
|
-
static readonly EXPORT = 140;
|
|
143
|
-
static readonly EXTEND = 141;
|
|
144
|
-
static readonly EXTENDED = 142;
|
|
145
|
-
static readonly EXTERNAL = 143;
|
|
146
|
-
static readonly EXTRACT = 144;
|
|
147
|
-
static readonly FALSE = 145;
|
|
148
|
-
static readonly FETCH = 146;
|
|
149
|
-
static readonly FIELDS = 147;
|
|
150
|
-
static readonly FILTER = 148;
|
|
151
|
-
static readonly FILEFORMAT = 149;
|
|
152
|
-
static readonly FIRST = 150;
|
|
153
|
-
static readonly FLOAT = 151;
|
|
154
|
-
static readonly FLOW = 152;
|
|
155
|
-
static readonly FOLLOWING = 153;
|
|
156
|
-
static readonly FOR = 154;
|
|
157
|
-
static readonly FOREIGN = 155;
|
|
158
|
-
static readonly FORMAT = 156;
|
|
159
|
-
static readonly FORMATTED = 157;
|
|
160
|
-
static readonly FOUND = 158;
|
|
161
|
-
static readonly FROM = 159;
|
|
162
|
-
static readonly FULL = 160;
|
|
163
|
-
static readonly FUNCTION = 161;
|
|
164
|
-
static readonly FUNCTIONS = 162;
|
|
165
|
-
static readonly GENERATED = 163;
|
|
166
|
-
static readonly GEOGRAPHY = 164;
|
|
167
|
-
static readonly GEOMETRY = 165;
|
|
168
|
-
static readonly GLOBAL = 166;
|
|
169
|
-
static readonly GRANT = 167;
|
|
170
|
-
static readonly GROUP = 168;
|
|
171
|
-
static readonly GROUPING = 169;
|
|
172
|
-
static readonly HANDLER = 170;
|
|
173
|
-
static readonly HAVING = 171;
|
|
174
|
-
static readonly BINARY_HEX = 172;
|
|
175
|
-
static readonly HOUR = 173;
|
|
176
|
-
static readonly HOURS = 174;
|
|
177
|
-
static readonly IDENTIFIER_KW = 175;
|
|
178
|
-
static readonly IDENTIFIED = 176;
|
|
179
|
-
static readonly IDENTITY = 177;
|
|
180
|
-
static readonly IF = 178;
|
|
181
|
-
static readonly IGNORE = 179;
|
|
182
|
-
static readonly IMMEDIATE = 180;
|
|
183
|
-
static readonly IMPORT = 181;
|
|
184
|
-
static readonly IN = 182;
|
|
185
|
-
static readonly INCLUDE = 183;
|
|
186
|
-
static readonly INCLUSIVE = 184;
|
|
187
|
-
static readonly INCREMENT = 185;
|
|
188
|
-
static readonly INDEX = 186;
|
|
189
|
-
static readonly INDEXES = 187;
|
|
190
|
-
static readonly INNER = 188;
|
|
191
|
-
static readonly INPATH = 189;
|
|
192
|
-
static readonly INPUT = 190;
|
|
193
|
-
static readonly INPUTFORMAT = 191;
|
|
194
|
-
static readonly INSERT = 192;
|
|
195
|
-
static readonly INSENSITIVE = 193;
|
|
196
|
-
static readonly INTERSECT = 194;
|
|
197
|
-
static readonly INTERVAL = 195;
|
|
198
|
-
static readonly INT = 196;
|
|
199
|
-
static readonly INTEGER = 197;
|
|
200
|
-
static readonly INTO = 198;
|
|
201
|
-
static readonly INVOKER = 199;
|
|
202
|
-
static readonly IS = 200;
|
|
203
|
-
static readonly ITEMS = 201;
|
|
204
|
-
static readonly ITERATE = 202;
|
|
205
|
-
static readonly JOIN = 203;
|
|
206
|
-
static readonly JSON = 204;
|
|
207
|
-
static readonly KEY = 205;
|
|
208
|
-
static readonly KEYS = 206;
|
|
209
|
-
static readonly LANGUAGE = 207;
|
|
210
|
-
static readonly LAST = 208;
|
|
211
|
-
static readonly LATERAL = 209;
|
|
212
|
-
static readonly LAZY = 210;
|
|
213
|
-
static readonly LEADING = 211;
|
|
214
|
-
static readonly LEAVE = 212;
|
|
215
|
-
static readonly LEFT = 213;
|
|
216
|
-
static readonly LEVEL = 214;
|
|
217
|
-
static readonly LIKE = 215;
|
|
218
|
-
static readonly ILIKE = 216;
|
|
219
|
-
static readonly LIMIT = 217;
|
|
220
|
-
static readonly LINES = 218;
|
|
221
|
-
static readonly LIST = 219;
|
|
222
|
-
static readonly LOAD = 220;
|
|
223
|
-
static readonly LOCAL = 221;
|
|
224
|
-
static readonly LOCATION = 222;
|
|
225
|
-
static readonly LOCK = 223;
|
|
226
|
-
static readonly LOCKS = 224;
|
|
227
|
-
static readonly LOGICAL = 225;
|
|
228
|
-
static readonly LONG = 226;
|
|
229
|
-
static readonly LOOP = 227;
|
|
230
|
-
static readonly MACRO = 228;
|
|
231
|
-
static readonly MAP = 229;
|
|
232
|
-
static readonly MATCHED = 230;
|
|
233
|
-
static readonly MATERIALIZED = 231;
|
|
234
|
-
static readonly MAX = 232;
|
|
235
|
-
static readonly MEASURE = 233;
|
|
236
|
-
static readonly MERGE = 234;
|
|
237
|
-
static readonly METRICS = 235;
|
|
238
|
-
static readonly MICROSECOND = 236;
|
|
239
|
-
static readonly MICROSECONDS = 237;
|
|
240
|
-
static readonly MILLISECOND = 238;
|
|
241
|
-
static readonly MILLISECONDS = 239;
|
|
242
|
-
static readonly MINUTE = 240;
|
|
243
|
-
static readonly MINUTES = 241;
|
|
244
|
-
static readonly MODIFIES = 242;
|
|
245
|
-
static readonly MONTH = 243;
|
|
246
|
-
static readonly MONTHS = 244;
|
|
247
|
-
static readonly MSCK = 245;
|
|
248
|
-
static readonly NAME = 246;
|
|
249
|
-
static readonly NAMESPACE = 247;
|
|
250
|
-
static readonly NAMESPACES = 248;
|
|
251
|
-
static readonly NANOSECOND = 249;
|
|
252
|
-
static readonly NANOSECONDS = 250;
|
|
253
|
-
static readonly NATURAL = 251;
|
|
254
|
-
static readonly NEAREST = 252;
|
|
255
|
-
static readonly NEXT = 253;
|
|
256
|
-
static readonly NO = 254;
|
|
257
|
-
static readonly NONE = 255;
|
|
258
|
-
static readonly NOT = 256;
|
|
259
|
-
static readonly NULL = 257;
|
|
260
|
-
static readonly NULLS = 258;
|
|
261
|
-
static readonly NUMERIC = 259;
|
|
262
|
-
static readonly NORELY = 260;
|
|
263
|
-
static readonly OF = 261;
|
|
264
|
-
static readonly OFFSET = 262;
|
|
265
|
-
static readonly ON = 263;
|
|
266
|
-
static readonly ONLY = 264;
|
|
267
|
-
static readonly OPEN = 265;
|
|
268
|
-
static readonly OPTION = 266;
|
|
269
|
-
static readonly OPTIONS = 267;
|
|
270
|
-
static readonly OR = 268;
|
|
271
|
-
static readonly ORDER = 269;
|
|
272
|
-
static readonly OUT = 270;
|
|
273
|
-
static readonly OUTER = 271;
|
|
274
|
-
static readonly OUTPUTFORMAT = 272;
|
|
275
|
-
static readonly OVER = 273;
|
|
276
|
-
static readonly OVERLAPS = 274;
|
|
277
|
-
static readonly OVERLAY = 275;
|
|
278
|
-
static readonly OVERWRITE = 276;
|
|
279
|
-
static readonly PARTITION = 277;
|
|
280
|
-
static readonly PARTITIONED = 278;
|
|
281
|
-
static readonly PARTITIONS = 279;
|
|
282
|
-
static readonly PATH = 280;
|
|
283
|
-
static readonly PERCENTLIT = 281;
|
|
284
|
-
static readonly PIVOT = 282;
|
|
285
|
-
static readonly PLACING = 283;
|
|
286
|
-
static readonly POSITION = 284;
|
|
287
|
-
static readonly PRECEDING = 285;
|
|
288
|
-
static readonly PRIMARY = 286;
|
|
289
|
-
static readonly PRINCIPALS = 287;
|
|
290
|
-
static readonly PROCEDURE = 288;
|
|
291
|
-
static readonly PROCEDURES = 289;
|
|
292
|
-
static readonly PROPERTIES = 290;
|
|
293
|
-
static readonly PURGE = 291;
|
|
294
|
-
static readonly QUALIFY = 292;
|
|
295
|
-
static readonly QUARTER = 293;
|
|
296
|
-
static readonly QUERY = 294;
|
|
297
|
-
static readonly RANGE = 295;
|
|
298
|
-
static readonly READ = 296;
|
|
299
|
-
static readonly READS = 297;
|
|
300
|
-
static readonly REAL = 298;
|
|
301
|
-
static readonly RECORDREADER = 299;
|
|
302
|
-
static readonly RECORDWRITER = 300;
|
|
303
|
-
static readonly RECOVER = 301;
|
|
304
|
-
static readonly RECURSION = 302;
|
|
305
|
-
static readonly RECURSIVE = 303;
|
|
306
|
-
static readonly REDUCE = 304;
|
|
307
|
-
static readonly REFERENCES = 305;
|
|
308
|
-
static readonly REFRESH = 306;
|
|
309
|
-
static readonly RELY = 307;
|
|
310
|
-
static readonly RENAME = 308;
|
|
311
|
-
static readonly REPAIR = 309;
|
|
312
|
-
static readonly REPEAT = 310;
|
|
313
|
-
static readonly REPEATABLE = 311;
|
|
314
|
-
static readonly REPLACE = 312;
|
|
315
|
-
static readonly RESET = 313;
|
|
316
|
-
static readonly RESPECT = 314;
|
|
317
|
-
static readonly RESTRICT = 315;
|
|
318
|
-
static readonly RETURN = 316;
|
|
319
|
-
static readonly RETURNS = 317;
|
|
320
|
-
static readonly REVOKE = 318;
|
|
321
|
-
static readonly RIGHT = 319;
|
|
322
|
-
static readonly RLIKE = 320;
|
|
323
|
-
static readonly ROLE = 321;
|
|
324
|
-
static readonly ROLES = 322;
|
|
325
|
-
static readonly ROLLBACK = 323;
|
|
326
|
-
static readonly ROLLUP = 324;
|
|
327
|
-
static readonly ROW = 325;
|
|
328
|
-
static readonly ROWS = 326;
|
|
329
|
-
static readonly SECOND = 327;
|
|
330
|
-
static readonly SECONDS = 328;
|
|
331
|
-
static readonly SCHEMA = 329;
|
|
332
|
-
static readonly SCHEMAS = 330;
|
|
333
|
-
static readonly SECURITY = 331;
|
|
334
|
-
static readonly SELECT = 332;
|
|
335
|
-
static readonly SEMI = 333;
|
|
336
|
-
static readonly SEPARATED = 334;
|
|
337
|
-
static readonly SERDE = 335;
|
|
338
|
-
static readonly SERDEPROPERTIES = 336;
|
|
339
|
-
static readonly SESSION_USER = 337;
|
|
340
|
-
static readonly SET = 338;
|
|
341
|
-
static readonly SETMINUS = 339;
|
|
342
|
-
static readonly SETS = 340;
|
|
343
|
-
static readonly SHORT = 341;
|
|
344
|
-
static readonly SHOW = 342;
|
|
345
|
-
static readonly SIMILARITY = 343;
|
|
346
|
-
static readonly SINGLE = 344;
|
|
347
|
-
static readonly SKEWED = 345;
|
|
348
|
-
static readonly SMALLINT = 346;
|
|
349
|
-
static readonly SOME = 347;
|
|
350
|
-
static readonly SORT = 348;
|
|
351
|
-
static readonly SORTED = 349;
|
|
352
|
-
static readonly SOURCE = 350;
|
|
353
|
-
static readonly SPECIFIC = 351;
|
|
354
|
-
static readonly SQL = 352;
|
|
355
|
-
static readonly SQLEXCEPTION = 353;
|
|
356
|
-
static readonly SQLSTATE = 354;
|
|
357
|
-
static readonly START = 355;
|
|
358
|
-
static readonly STATISTICS = 356;
|
|
359
|
-
static readonly STORED = 357;
|
|
360
|
-
static readonly STRATIFY = 358;
|
|
361
|
-
static readonly STREAM = 359;
|
|
362
|
-
static readonly STREAMING = 360;
|
|
363
|
-
static readonly STRING = 361;
|
|
364
|
-
static readonly STRUCT = 362;
|
|
365
|
-
static readonly SUBSTR = 363;
|
|
366
|
-
static readonly SUBSTRING = 364;
|
|
367
|
-
static readonly SYNC = 365;
|
|
368
|
-
static readonly SYSTEM = 366;
|
|
369
|
-
static readonly SYSTEM_TIME = 367;
|
|
370
|
-
static readonly SYSTEM_VERSION = 368;
|
|
371
|
-
static readonly SYSTEM_PATH = 369;
|
|
372
|
-
static readonly TABLE = 370;
|
|
373
|
-
static readonly TABLES = 371;
|
|
374
|
-
static readonly TABLESAMPLE = 372;
|
|
375
|
-
static readonly TARGET = 373;
|
|
376
|
-
static readonly TBLPROPERTIES = 374;
|
|
377
|
-
static readonly TEMPORARY = 375;
|
|
378
|
-
static readonly TERMINATED = 376;
|
|
379
|
-
static readonly THEN = 377;
|
|
380
|
-
static readonly TIME = 378;
|
|
381
|
-
static readonly TIMEDIFF = 379;
|
|
382
|
-
static readonly TIMESTAMP = 380;
|
|
383
|
-
static readonly TIMESTAMP_LTZ = 381;
|
|
384
|
-
static readonly TIMESTAMP_NTZ = 382;
|
|
385
|
-
static readonly TIMESTAMPADD = 383;
|
|
386
|
-
static readonly TIMESTAMPDIFF = 384;
|
|
387
|
-
static readonly TINYINT = 385;
|
|
388
|
-
static readonly TO = 386;
|
|
389
|
-
static readonly EXECUTE = 387;
|
|
390
|
-
static readonly TOUCH = 388;
|
|
391
|
-
static readonly TRAILING = 389;
|
|
392
|
-
static readonly TRANSACTION = 390;
|
|
393
|
-
static readonly TRANSACTIONS = 391;
|
|
394
|
-
static readonly TRANSFORM = 392;
|
|
395
|
-
static readonly TRIM = 393;
|
|
396
|
-
static readonly TRUE = 394;
|
|
397
|
-
static readonly TRUNCATE = 395;
|
|
398
|
-
static readonly TRY_CAST = 396;
|
|
399
|
-
static readonly TYPE = 397;
|
|
400
|
-
static readonly UNARCHIVE = 398;
|
|
401
|
-
static readonly UNBOUNDED = 399;
|
|
402
|
-
static readonly UNCACHE = 400;
|
|
403
|
-
static readonly UNION = 401;
|
|
404
|
-
static readonly UNIQUE = 402;
|
|
405
|
-
static readonly UNKNOWN = 403;
|
|
406
|
-
static readonly UNLOCK = 404;
|
|
407
|
-
static readonly UNPIVOT = 405;
|
|
408
|
-
static readonly UNSET = 406;
|
|
409
|
-
static readonly UNTIL = 407;
|
|
410
|
-
static readonly UPDATE = 408;
|
|
411
|
-
static readonly USE = 409;
|
|
412
|
-
static readonly USER = 410;
|
|
413
|
-
static readonly USING = 411;
|
|
414
|
-
static readonly VALUE = 412;
|
|
415
|
-
static readonly VALUES = 413;
|
|
416
|
-
static readonly VARCHAR = 414;
|
|
417
|
-
static readonly VAR = 415;
|
|
418
|
-
static readonly VARIABLE = 416;
|
|
419
|
-
static readonly VARIANT = 417;
|
|
420
|
-
static readonly VERSION = 418;
|
|
421
|
-
static readonly VIEW = 419;
|
|
422
|
-
static readonly VIEWS = 420;
|
|
423
|
-
static readonly VOID = 421;
|
|
424
|
-
static readonly WATERMARK = 422;
|
|
425
|
-
static readonly WEEK = 423;
|
|
426
|
-
static readonly WEEKS = 424;
|
|
427
|
-
static readonly WHEN = 425;
|
|
428
|
-
static readonly WHERE = 426;
|
|
429
|
-
static readonly WHILE = 427;
|
|
430
|
-
static readonly WINDOW = 428;
|
|
431
|
-
static readonly WITH = 429;
|
|
432
|
-
static readonly WITHIN = 430;
|
|
433
|
-
static readonly WITHOUT = 431;
|
|
434
|
-
static readonly YEAR = 432;
|
|
435
|
-
static readonly YEARS = 433;
|
|
436
|
-
static readonly ZONE = 434;
|
|
437
|
-
static readonly EQ = 435;
|
|
438
|
-
static readonly NSEQ = 436;
|
|
439
|
-
static readonly NEQ = 437;
|
|
440
|
-
static readonly NEQJ = 438;
|
|
441
|
-
static readonly LT = 439;
|
|
442
|
-
static readonly LTE = 440;
|
|
443
|
-
static readonly GT = 441;
|
|
444
|
-
static readonly GTE = 442;
|
|
445
|
-
static readonly SHIFT_LEFT = 443;
|
|
446
|
-
static readonly SHIFT_RIGHT = 444;
|
|
447
|
-
static readonly SHIFT_RIGHT_UNSIGNED = 445;
|
|
448
|
-
static readonly PLUS = 446;
|
|
449
|
-
static readonly MINUS = 447;
|
|
450
|
-
static readonly ASTERISK = 448;
|
|
451
|
-
static readonly SLASH = 449;
|
|
452
|
-
static readonly PERCENT = 450;
|
|
453
|
-
static readonly TILDE = 451;
|
|
454
|
-
static readonly AMPERSAND = 452;
|
|
455
|
-
static readonly AT_SIGN = 453;
|
|
456
|
-
static readonly PIPE = 454;
|
|
457
|
-
static readonly CONCAT_PIPE = 455;
|
|
458
|
-
static readonly OPERATOR_PIPE = 456;
|
|
459
|
-
static readonly HAT = 457;
|
|
460
|
-
static readonly COLON = 458;
|
|
461
|
-
static readonly DOUBLE_COLON = 459;
|
|
462
|
-
static readonly ARROW = 460;
|
|
463
|
-
static readonly FAT_ARROW = 461;
|
|
464
|
-
static readonly HENT_START = 462;
|
|
465
|
-
static readonly HENT_END = 463;
|
|
466
|
-
static readonly QUESTION = 464;
|
|
467
|
-
static readonly STRING_LITERAL = 465;
|
|
468
|
-
static readonly BEGIN_DOLLAR_QUOTED_STRING = 466;
|
|
469
|
-
static readonly DOUBLEQUOTED_STRING = 467;
|
|
470
|
-
static readonly BIGINT_LITERAL = 468;
|
|
471
|
-
static readonly SMALLINT_LITERAL = 469;
|
|
472
|
-
static readonly TINYINT_LITERAL = 470;
|
|
473
|
-
static readonly INTEGER_VALUE = 471;
|
|
474
|
-
static readonly EXPONENT_VALUE = 472;
|
|
475
|
-
static readonly DECIMAL_VALUE = 473;
|
|
476
|
-
static readonly FLOAT_LITERAL = 474;
|
|
477
|
-
static readonly DOUBLE_LITERAL = 475;
|
|
478
|
-
static readonly BIGDECIMAL_LITERAL = 476;
|
|
479
|
-
static readonly IDENTIFIER = 477;
|
|
480
|
-
static readonly BACKQUOTED_IDENTIFIER = 478;
|
|
481
|
-
static readonly SIMPLE_COMMENT = 479;
|
|
482
|
-
static readonly BRACKETED_COMMENT = 480;
|
|
483
|
-
static readonly WS = 481;
|
|
484
|
-
static readonly UNRECOGNIZED = 482;
|
|
485
|
-
static readonly DOLLAR_QUOTED_STRING_BODY = 483;
|
|
486
|
-
static readonly END_DOLLAR_QUOTED_STRING = 484;
|
|
487
|
-
static readonly DOLLAR_QUOTED_STRING_MODE = 1;
|
|
488
|
-
static readonly channelNames: string[];
|
|
489
|
-
static readonly literalNames: (string | null)[];
|
|
490
|
-
static readonly symbolicNames: (string | null)[];
|
|
491
|
-
static readonly modeNames: string[];
|
|
492
|
-
static readonly ruleNames: string[];
|
|
493
|
-
/** When true, the parser should fail on an unclosed bracketed comment. */
|
|
494
|
-
has_unclosed_bracketed_comment: boolean;
|
|
495
|
-
/**
|
|
496
|
-
* Verify whether the current token is a valid decimal token (one containing a dot).
|
|
497
|
-
* Returns true when the character that follows the token is not a digit, letter, or underscore.
|
|
498
|
-
*
|
|
499
|
-
* For example:
|
|
500
|
-
* For char stream "2.3", "2." is not a valid decimal token, because it is followed by digit '3'.
|
|
501
|
-
* For char stream "2.3_", "2.3" is not a valid decimal token, because it is followed by '_'.
|
|
502
|
-
* For char stream "2.3W", "2.3" is not a valid decimal token, because it is followed by 'W'.
|
|
503
|
-
* For char stream "12.0D 34.E2+0.12 " 12.0D is a valid decimal token because it is followed
|
|
504
|
-
* by a space. 34.E2 is a valid decimal token because it is followed by symbol '+'.
|
|
505
|
-
*/
|
|
506
|
-
isValidDecimal(): boolean;
|
|
507
|
-
/**
|
|
508
|
-
* Called when we see the start of a block comment and try to match it as a bracketed
|
|
509
|
-
* comment. If the next character is '+', it should be parsed as a hint later, so we must
|
|
510
|
-
* not match it as a bracketed comment. Returns true if the next character is '+'.
|
|
511
|
-
*/
|
|
512
|
-
isHint(): boolean;
|
|
513
|
-
/**
|
|
514
|
-
* Called when the character stream ends inside a bracketed comment. Sets the flag so the
|
|
515
|
-
* parse can fail later for the unclosed comment.
|
|
516
|
-
*/
|
|
517
|
-
markUnclosedComment(): void;
|
|
518
|
-
/** Tags used to detect the end of a dollar-quoted string literal (used as a stack). */
|
|
519
|
-
private readonly tags;
|
|
520
|
-
/** When greater than zero, we are in the middle of parsing an ARRAY/MAP/STRUCT type. */
|
|
521
|
-
complex_type_level_counter: number;
|
|
522
|
-
/** Increment when we hit keyword 'ARRAY', 'MAP', or 'STRUCT'. */
|
|
523
|
-
incComplexTypeLevelCounter(): void;
|
|
524
|
-
/**
|
|
525
|
-
* Decrement on a closing '>' while the counter is positive (i.e. inside a complex type).
|
|
526
|
-
* Otherwise it is a dangling GT token and we do nothing.
|
|
527
|
-
*/
|
|
528
|
-
decComplexTypeLevelCounter(): void;
|
|
529
|
-
/**
|
|
530
|
-
* If the counter is zero, '>>'/'>>>' is a shift operator rather than the closing tags of a
|
|
531
|
-
* complex type definition such as MAP<INT, ARRAY<INT>>.
|
|
532
|
-
*/
|
|
533
|
-
isShiftRightOperator(): boolean;
|
|
534
|
-
constructor(input: antlr.CharStream);
|
|
535
|
-
get grammarFileName(): string;
|
|
536
|
-
get literalNames(): (string | null)[];
|
|
537
|
-
get symbolicNames(): (string | null)[];
|
|
538
|
-
get ruleNames(): string[];
|
|
539
|
-
get serializedATN(): number[];
|
|
540
|
-
get channelNames(): string[];
|
|
541
|
-
get modeNames(): string[];
|
|
542
|
-
action(localContext: antlr.ParserRuleContext | null, ruleIndex: number, actionIndex: number): void;
|
|
543
|
-
private ARRAY_action;
|
|
544
|
-
private MAP_action;
|
|
545
|
-
private STRUCT_action;
|
|
546
|
-
private GT_action;
|
|
547
|
-
private BEGIN_DOLLAR_QUOTED_STRING_action;
|
|
548
|
-
private BRACKETED_COMMENT_action;
|
|
549
|
-
private END_DOLLAR_QUOTED_STRING_action;
|
|
550
|
-
sempred(localContext: antlr.ParserRuleContext | null, ruleIndex: number, predIndex: number): boolean;
|
|
551
|
-
private SHIFT_RIGHT_sempred;
|
|
552
|
-
private SHIFT_RIGHT_UNSIGNED_sempred;
|
|
553
|
-
private EXPONENT_VALUE_sempred;
|
|
554
|
-
private DECIMAL_VALUE_sempred;
|
|
555
|
-
private FLOAT_LITERAL_sempred;
|
|
556
|
-
private DOUBLE_LITERAL_sempred;
|
|
557
|
-
private BIGDECIMAL_LITERAL_sempred;
|
|
558
|
-
private BRACKETED_COMMENT_sempred;
|
|
559
|
-
private END_DOLLAR_QUOTED_STRING_sempred;
|
|
560
|
-
static readonly _serializedATN: number[];
|
|
561
|
-
private static __ATN;
|
|
562
|
-
static get _ATN(): antlr.ATN;
|
|
563
|
-
private static readonly vocabulary;
|
|
564
|
-
get vocabulary(): antlr.Vocabulary;
|
|
565
|
-
private static readonly decisionsToDFA;
|
|
566
|
-
}
|