@malloydata/malloy 0.0.280 → 0.0.282
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/dist/api/core.js +16 -4
- package/dist/api/util.d.ts +3 -1
- package/dist/api/util.js +63 -5
- package/dist/dialect/dialect.d.ts +10 -1
- package/dist/dialect/dialect.js +19 -2
- package/dist/dialect/mysql/mysql.d.ts +2 -2
- package/dist/dialect/mysql/mysql.js +1 -1
- package/dist/dialect/standardsql/dialect_functions.js +22 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/lang/ast/expressions/boolean.d.ts +2 -0
- package/dist/lang/ast/expressions/boolean.js +6 -0
- package/dist/lang/ast/expressions/expr-func.js +10 -18
- package/dist/lang/ast/expressions/expr-not.js +1 -1
- package/dist/lang/ast/expressions/expr-number.d.ts +2 -0
- package/dist/lang/ast/expressions/expr-number.js +6 -0
- package/dist/lang/ast/expressions/expr-string.d.ts +2 -0
- package/dist/lang/ast/expressions/expr-string.js +6 -22
- package/dist/lang/ast/expressions/time-literal.d.ts +9 -2
- package/dist/lang/ast/expressions/time-literal.js +52 -7
- package/dist/lang/ast/field-space/def-space.d.ts +16 -0
- package/dist/lang/ast/field-space/def-space.js +39 -0
- package/dist/lang/ast/field-space/passthrough-space.d.ts +21 -0
- package/dist/lang/ast/field-space/passthrough-space.js +56 -0
- package/dist/lang/ast/field-space/permissive-space.d.ts +11 -0
- package/dist/lang/ast/field-space/permissive-space.js +23 -0
- package/dist/lang/ast/field-space/query-spaces.d.ts +6 -0
- package/dist/lang/ast/field-space/query-spaces.js +6 -0
- package/dist/lang/ast/index.d.ts +2 -0
- package/dist/lang/ast/index.js +2 -0
- package/dist/lang/ast/query-builders/reduce-builder.js +3 -1
- package/dist/lang/ast/query-items/field-declaration.d.ts +3 -26
- package/dist/lang/ast/query-items/field-declaration.js +21 -65
- package/dist/lang/ast/query-items/field-references.d.ts +4 -0
- package/dist/lang/ast/query-items/field-references.js +12 -1
- package/dist/lang/ast/query-properties/drill.d.ts +25 -0
- package/dist/lang/ast/query-properties/drill.js +323 -0
- package/dist/lang/ast/query-properties/filters.d.ts +11 -0
- package/dist/lang/ast/query-properties/filters.js +57 -0
- package/dist/lang/ast/query-properties/nest.js +3 -1
- package/dist/lang/ast/source-elements/named-source.js +7 -4
- package/dist/lang/ast/types/literal.d.ts +7 -0
- package/dist/lang/ast/types/literal.js +24 -0
- package/dist/lang/ast/view-elements/reference-view.js +2 -0
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +165 -164
- package/dist/lang/lib/Malloy/MalloyLexer.js +1095 -1085
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +262 -236
- package/dist/lang/lib/Malloy/MalloyParser.js +2271 -2084
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +22 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +14 -0
- package/dist/lang/malloy-to-ast.d.ts +2 -0
- package/dist/lang/malloy-to-ast.js +8 -0
- package/dist/lang/malloy-to-stable-query.d.ts +7 -1
- package/dist/lang/malloy-to-stable-query.js +191 -8
- package/dist/lang/parse-log.d.ts +14 -0
- package/dist/lang/test/expr-to-str.js +2 -0
- package/dist/lang/test/parse-expects.d.ts +1 -0
- package/dist/lang/test/parse-expects.js +8 -0
- package/dist/malloy.d.ts +2 -1
- package/dist/malloy.js +3 -0
- package/dist/model/composite_source_utils.d.ts +1 -0
- package/dist/model/composite_source_utils.js +4 -0
- package/dist/model/malloy_query.d.ts +2 -2
- package/dist/model/malloy_query.js +31 -22
- package/dist/model/malloy_types.d.ts +8 -0
- package/dist/to_stable.d.ts +2 -0
- package/dist/to_stable.js +77 -16
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
|
@@ -16,170 +16,171 @@ export declare class MalloyParser extends Parser {
|
|
|
16
16
|
static readonly CONNECTION = 5;
|
|
17
17
|
static readonly DECLARE = 6;
|
|
18
18
|
static readonly DIMENSION = 7;
|
|
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
|
|
19
|
+
static readonly DRILL = 8;
|
|
20
|
+
static readonly EXCEPT = 9;
|
|
21
|
+
static readonly EXTENDQ = 10;
|
|
22
|
+
static readonly GROUP_BY = 11;
|
|
23
|
+
static readonly GROUPED_BY = 12;
|
|
24
|
+
static readonly HAVING = 13;
|
|
25
|
+
static readonly INDEX = 14;
|
|
26
|
+
static readonly INTERNAL = 15;
|
|
27
|
+
static readonly JOIN_CROSS = 16;
|
|
28
|
+
static readonly JOIN_ONE = 17;
|
|
29
|
+
static readonly JOIN_MANY = 18;
|
|
30
|
+
static readonly LIMIT = 19;
|
|
31
|
+
static readonly MEASURE = 20;
|
|
32
|
+
static readonly NEST = 21;
|
|
33
|
+
static readonly ORDER_BY = 22;
|
|
34
|
+
static readonly PARTITION_BY = 23;
|
|
35
|
+
static readonly PRIMARY_KEY = 24;
|
|
36
|
+
static readonly PRIVATE = 25;
|
|
37
|
+
static readonly PROJECT = 26;
|
|
38
|
+
static readonly PUBLIC = 27;
|
|
39
|
+
static readonly QUERY = 28;
|
|
40
|
+
static readonly RENAME = 29;
|
|
41
|
+
static readonly RUN = 30;
|
|
42
|
+
static readonly SAMPLE = 31;
|
|
43
|
+
static readonly SELECT = 32;
|
|
44
|
+
static readonly SOURCE = 33;
|
|
45
|
+
static readonly TOP = 34;
|
|
46
|
+
static readonly WHERE = 35;
|
|
47
|
+
static readonly VIEW = 36;
|
|
48
|
+
static readonly TIMEZONE = 37;
|
|
49
|
+
static readonly ALL = 38;
|
|
50
|
+
static readonly AND = 39;
|
|
51
|
+
static readonly AS = 40;
|
|
52
|
+
static readonly ASC = 41;
|
|
53
|
+
static readonly AVG = 42;
|
|
54
|
+
static readonly BOOLEAN = 43;
|
|
55
|
+
static readonly BY = 44;
|
|
56
|
+
static readonly CASE = 45;
|
|
57
|
+
static readonly CAST = 46;
|
|
58
|
+
static readonly CONDITION = 47;
|
|
59
|
+
static readonly COUNT = 48;
|
|
60
|
+
static readonly COMPOSE = 49;
|
|
61
|
+
static readonly DATE = 50;
|
|
62
|
+
static readonly DAY = 51;
|
|
63
|
+
static readonly DESC = 52;
|
|
64
|
+
static readonly DISTINCT = 53;
|
|
65
|
+
static readonly ELSE = 54;
|
|
66
|
+
static readonly END = 55;
|
|
67
|
+
static readonly EXCLUDE = 56;
|
|
68
|
+
static readonly EXTEND = 57;
|
|
69
|
+
static readonly FALSE = 58;
|
|
70
|
+
static readonly FILTER = 59;
|
|
71
|
+
static readonly FULL = 60;
|
|
72
|
+
static readonly FOR = 61;
|
|
73
|
+
static readonly FROM = 62;
|
|
74
|
+
static readonly HAS = 63;
|
|
75
|
+
static readonly HOUR = 64;
|
|
76
|
+
static readonly IMPORT = 65;
|
|
77
|
+
static readonly INCLUDE = 66;
|
|
78
|
+
static readonly INNER = 67;
|
|
79
|
+
static readonly IS = 68;
|
|
80
|
+
static readonly IN = 69;
|
|
81
|
+
static readonly INTERNAL_KW = 70;
|
|
82
|
+
static readonly JSON = 71;
|
|
83
|
+
static readonly LAST = 72;
|
|
84
|
+
static readonly LEFT = 73;
|
|
85
|
+
static readonly LIKE = 74;
|
|
86
|
+
static readonly MAX = 75;
|
|
87
|
+
static readonly MIN = 76;
|
|
88
|
+
static readonly MINUTE = 77;
|
|
89
|
+
static readonly MONTH = 78;
|
|
90
|
+
static readonly NOT = 79;
|
|
91
|
+
static readonly NOW = 80;
|
|
92
|
+
static readonly NULL = 81;
|
|
93
|
+
static readonly NUMBER = 82;
|
|
94
|
+
static readonly ON = 83;
|
|
95
|
+
static readonly OR = 84;
|
|
96
|
+
static readonly PICK = 85;
|
|
97
|
+
static readonly PRIVATE_KW = 86;
|
|
98
|
+
static readonly PUBLIC_KW = 87;
|
|
99
|
+
static readonly QUARTER = 88;
|
|
100
|
+
static readonly RIGHT = 89;
|
|
101
|
+
static readonly SECOND = 90;
|
|
102
|
+
static readonly STRING = 91;
|
|
103
|
+
static readonly SOURCE_KW = 92;
|
|
104
|
+
static readonly SUM = 93;
|
|
105
|
+
static readonly SQL = 94;
|
|
106
|
+
static readonly TABLE = 95;
|
|
107
|
+
static readonly THEN = 96;
|
|
108
|
+
static readonly THIS = 97;
|
|
109
|
+
static readonly TIMESTAMP = 98;
|
|
110
|
+
static readonly TO = 99;
|
|
111
|
+
static readonly TRUE = 100;
|
|
112
|
+
static readonly TURTLE = 101;
|
|
113
|
+
static readonly WEEK = 102;
|
|
114
|
+
static readonly WHEN = 103;
|
|
115
|
+
static readonly WITH = 104;
|
|
116
|
+
static readonly YEAR = 105;
|
|
117
|
+
static readonly UNGROUPED = 106;
|
|
118
|
+
static readonly HACKY_REGEX = 107;
|
|
119
|
+
static readonly RAW_SQ = 108;
|
|
120
|
+
static readonly RAW_DQ = 109;
|
|
121
|
+
static readonly SQ3_FILTER = 110;
|
|
122
|
+
static readonly SQ_FILTER = 111;
|
|
123
|
+
static readonly DQ3_FILTER = 112;
|
|
124
|
+
static readonly DQ_FILTER = 113;
|
|
125
|
+
static readonly BQ3_FILTER = 114;
|
|
126
|
+
static readonly BQ_FILTER = 115;
|
|
127
|
+
static readonly SQ_STRING = 116;
|
|
128
|
+
static readonly DQ_STRING = 117;
|
|
129
|
+
static readonly BQ_STRING = 118;
|
|
130
|
+
static readonly DOC_ANNOTATION = 119;
|
|
131
|
+
static readonly ANNOTATION = 120;
|
|
132
|
+
static readonly AMPER = 121;
|
|
133
|
+
static readonly ARROW = 122;
|
|
134
|
+
static readonly FAT_ARROW = 123;
|
|
135
|
+
static readonly OPAREN = 124;
|
|
136
|
+
static readonly CPAREN = 125;
|
|
137
|
+
static readonly OBRACK = 126;
|
|
138
|
+
static readonly CBRACK = 127;
|
|
139
|
+
static readonly OCURLY = 128;
|
|
140
|
+
static readonly CCURLY = 129;
|
|
141
|
+
static readonly DOUBLECOLON = 130;
|
|
142
|
+
static readonly TRIPLECOLON = 131;
|
|
143
|
+
static readonly EXCLAM = 132;
|
|
144
|
+
static readonly COLON = 133;
|
|
145
|
+
static readonly COMMA = 134;
|
|
146
|
+
static readonly DOT = 135;
|
|
147
|
+
static readonly LT = 136;
|
|
148
|
+
static readonly GT = 137;
|
|
149
|
+
static readonly EQ = 138;
|
|
150
|
+
static readonly NE = 139;
|
|
151
|
+
static readonly LTE = 140;
|
|
152
|
+
static readonly GTE = 141;
|
|
153
|
+
static readonly PLUS = 142;
|
|
154
|
+
static readonly MINUS = 143;
|
|
155
|
+
static readonly STAR = 144;
|
|
156
|
+
static readonly STARSTAR = 145;
|
|
157
|
+
static readonly SLASH = 146;
|
|
158
|
+
static readonly BAR = 147;
|
|
159
|
+
static readonly SEMI = 148;
|
|
160
|
+
static readonly NOT_MATCH = 149;
|
|
161
|
+
static readonly MATCH = 150;
|
|
162
|
+
static readonly PERCENT = 151;
|
|
163
|
+
static readonly DOUBLE_QMARK = 152;
|
|
164
|
+
static readonly QMARK = 153;
|
|
165
|
+
static readonly LITERAL_TIMESTAMP = 154;
|
|
166
|
+
static readonly LITERAL_HOUR = 155;
|
|
167
|
+
static readonly LITERAL_DAY = 156;
|
|
168
|
+
static readonly LITERAL_QUARTER = 157;
|
|
169
|
+
static readonly LITERAL_MONTH = 158;
|
|
170
|
+
static readonly LITERAL_WEEK = 159;
|
|
171
|
+
static readonly LITERAL_YEAR = 160;
|
|
172
|
+
static readonly IDENTIFIER = 161;
|
|
173
|
+
static readonly PERCENT_LITERAL = 162;
|
|
174
|
+
static readonly NUMERIC_LITERAL = 163;
|
|
175
|
+
static readonly INTEGER_LITERAL = 164;
|
|
176
|
+
static readonly BLOCK_COMMENT = 165;
|
|
177
|
+
static readonly COMMENT_TO_EOL = 166;
|
|
178
|
+
static readonly WHITE_SPACE = 167;
|
|
179
|
+
static readonly SQL_BEGIN = 168;
|
|
180
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 169;
|
|
181
|
+
static readonly UNEXPECTED_CHAR = 170;
|
|
182
|
+
static readonly OPEN_CODE = 171;
|
|
183
|
+
static readonly SQL_END = 172;
|
|
183
184
|
static readonly RULE_malloyDocument = 0;
|
|
184
185
|
static readonly RULE_malloyStatement = 1;
|
|
185
186
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -265,78 +266,80 @@ export declare class MalloyParser extends Parser {
|
|
|
265
266
|
static readonly RULE_subQueryDefList = 82;
|
|
266
267
|
static readonly RULE_exploreQueryNameDef = 83;
|
|
267
268
|
static readonly RULE_exploreQueryDef = 84;
|
|
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
|
|
302
|
-
static readonly
|
|
303
|
-
static readonly
|
|
304
|
-
static readonly
|
|
305
|
-
static readonly
|
|
306
|
-
static readonly
|
|
307
|
-
static readonly
|
|
308
|
-
static readonly
|
|
309
|
-
static readonly
|
|
310
|
-
static readonly
|
|
311
|
-
static readonly
|
|
312
|
-
static readonly
|
|
313
|
-
static readonly
|
|
314
|
-
static readonly
|
|
315
|
-
static readonly
|
|
316
|
-
static readonly
|
|
317
|
-
static readonly
|
|
318
|
-
static readonly
|
|
319
|
-
static readonly
|
|
320
|
-
static readonly
|
|
321
|
-
static readonly
|
|
322
|
-
static readonly
|
|
323
|
-
static readonly
|
|
324
|
-
static readonly
|
|
325
|
-
static readonly
|
|
326
|
-
static readonly
|
|
327
|
-
static readonly
|
|
328
|
-
static readonly
|
|
329
|
-
static readonly
|
|
330
|
-
static readonly
|
|
331
|
-
static readonly
|
|
332
|
-
static readonly
|
|
333
|
-
static readonly
|
|
334
|
-
static readonly
|
|
335
|
-
static readonly
|
|
336
|
-
static readonly
|
|
337
|
-
static readonly
|
|
338
|
-
static readonly
|
|
339
|
-
static readonly
|
|
269
|
+
static readonly RULE_drillStatement = 85;
|
|
270
|
+
static readonly RULE_drillClauseList = 86;
|
|
271
|
+
static readonly RULE_queryStatement = 87;
|
|
272
|
+
static readonly RULE_queryJoinStatement = 88;
|
|
273
|
+
static readonly RULE_groupByStatement = 89;
|
|
274
|
+
static readonly RULE_queryFieldList = 90;
|
|
275
|
+
static readonly RULE_queryFieldEntry = 91;
|
|
276
|
+
static readonly RULE_nestStatement = 92;
|
|
277
|
+
static readonly RULE_nestedQueryList = 93;
|
|
278
|
+
static readonly RULE_nestEntry = 94;
|
|
279
|
+
static readonly RULE_aggregateStatement = 95;
|
|
280
|
+
static readonly RULE_calculateStatement = 96;
|
|
281
|
+
static readonly RULE_projectStatement = 97;
|
|
282
|
+
static readonly RULE_partitionByStatement = 98;
|
|
283
|
+
static readonly RULE_groupedByStatement = 99;
|
|
284
|
+
static readonly RULE_orderByStatement = 100;
|
|
285
|
+
static readonly RULE_ordering = 101;
|
|
286
|
+
static readonly RULE_orderBySpec = 102;
|
|
287
|
+
static readonly RULE_limitStatement = 103;
|
|
288
|
+
static readonly RULE_bySpec = 104;
|
|
289
|
+
static readonly RULE_topStatement = 105;
|
|
290
|
+
static readonly RULE_indexElement = 106;
|
|
291
|
+
static readonly RULE_indexFields = 107;
|
|
292
|
+
static readonly RULE_indexStatement = 108;
|
|
293
|
+
static readonly RULE_sampleStatement = 109;
|
|
294
|
+
static readonly RULE_timezoneStatement = 110;
|
|
295
|
+
static readonly RULE_queryAnnotation = 111;
|
|
296
|
+
static readonly RULE_sampleSpec = 112;
|
|
297
|
+
static readonly RULE_aggregate = 113;
|
|
298
|
+
static readonly RULE_malloyType = 114;
|
|
299
|
+
static readonly RULE_compareOp = 115;
|
|
300
|
+
static readonly RULE_string = 116;
|
|
301
|
+
static readonly RULE_shortString = 117;
|
|
302
|
+
static readonly RULE_rawString = 118;
|
|
303
|
+
static readonly RULE_numericLiteral = 119;
|
|
304
|
+
static readonly RULE_literal = 120;
|
|
305
|
+
static readonly RULE_dateLiteral = 121;
|
|
306
|
+
static readonly RULE_tablePath = 122;
|
|
307
|
+
static readonly RULE_tableURI = 123;
|
|
308
|
+
static readonly RULE_id = 124;
|
|
309
|
+
static readonly RULE_timeframe = 125;
|
|
310
|
+
static readonly RULE_ungroup = 126;
|
|
311
|
+
static readonly RULE_malloyOrSQLType = 127;
|
|
312
|
+
static readonly RULE_fieldExpr = 128;
|
|
313
|
+
static readonly RULE_partialCompare = 129;
|
|
314
|
+
static readonly RULE_partialTest = 130;
|
|
315
|
+
static readonly RULE_partialAllowedFieldExpr = 131;
|
|
316
|
+
static readonly RULE_fieldExprList = 132;
|
|
317
|
+
static readonly RULE_pickStatement = 133;
|
|
318
|
+
static readonly RULE_pick = 134;
|
|
319
|
+
static readonly RULE_caseStatement = 135;
|
|
320
|
+
static readonly RULE_caseWhen = 136;
|
|
321
|
+
static readonly RULE_recordKey = 137;
|
|
322
|
+
static readonly RULE_recordElement = 138;
|
|
323
|
+
static readonly RULE_argumentList = 139;
|
|
324
|
+
static readonly RULE_fieldNameList = 140;
|
|
325
|
+
static readonly RULE_fieldCollection = 141;
|
|
326
|
+
static readonly RULE_collectionWildCard = 142;
|
|
327
|
+
static readonly RULE_starQualified = 143;
|
|
328
|
+
static readonly RULE_taggedRef = 144;
|
|
329
|
+
static readonly RULE_refExpr = 145;
|
|
330
|
+
static readonly RULE_collectionMember = 146;
|
|
331
|
+
static readonly RULE_fieldPath = 147;
|
|
332
|
+
static readonly RULE_joinName = 148;
|
|
333
|
+
static readonly RULE_fieldName = 149;
|
|
334
|
+
static readonly RULE_sqlExploreNameRef = 150;
|
|
335
|
+
static readonly RULE_nameSQLBlock = 151;
|
|
336
|
+
static readonly RULE_connectionName = 152;
|
|
337
|
+
static readonly RULE_tripFilterString = 153;
|
|
338
|
+
static readonly RULE_tickFilterString = 154;
|
|
339
|
+
static readonly RULE_filterString = 155;
|
|
340
|
+
static readonly RULE_debugExpr = 156;
|
|
341
|
+
static readonly RULE_debugPartial = 157;
|
|
342
|
+
static readonly RULE_experimentalStatementForTesting = 158;
|
|
340
343
|
static readonly ruleNames: string[];
|
|
341
344
|
private static readonly _LITERAL_NAMES;
|
|
342
345
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -434,6 +437,8 @@ export declare class MalloyParser extends Parser {
|
|
|
434
437
|
subQueryDefList(): SubQueryDefListContext;
|
|
435
438
|
exploreQueryNameDef(): ExploreQueryNameDefContext;
|
|
436
439
|
exploreQueryDef(): ExploreQueryDefContext;
|
|
440
|
+
drillStatement(): DrillStatementContext;
|
|
441
|
+
drillClauseList(): DrillClauseListContext;
|
|
437
442
|
queryStatement(): QueryStatementContext;
|
|
438
443
|
queryJoinStatement(): QueryJoinStatementContext;
|
|
439
444
|
groupByStatement(): GroupByStatementContext;
|
|
@@ -1652,6 +1657,26 @@ export declare class ExploreQueryDefContext extends ParserRuleContext {
|
|
|
1652
1657
|
exitRule(listener: MalloyParserListener): void;
|
|
1653
1658
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1654
1659
|
}
|
|
1660
|
+
export declare class DrillStatementContext extends ParserRuleContext {
|
|
1661
|
+
DRILL(): TerminalNode;
|
|
1662
|
+
drillClauseList(): DrillClauseListContext;
|
|
1663
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1664
|
+
get ruleIndex(): number;
|
|
1665
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1666
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1667
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1668
|
+
}
|
|
1669
|
+
export declare class DrillClauseListContext extends ParserRuleContext {
|
|
1670
|
+
fieldExpr(): FieldExprContext[];
|
|
1671
|
+
fieldExpr(i: number): FieldExprContext;
|
|
1672
|
+
COMMA(): TerminalNode[];
|
|
1673
|
+
COMMA(i: number): TerminalNode;
|
|
1674
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1675
|
+
get ruleIndex(): number;
|
|
1676
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1677
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1678
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1679
|
+
}
|
|
1655
1680
|
export declare class QueryStatementContext extends ParserRuleContext {
|
|
1656
1681
|
groupByStatement(): GroupByStatementContext | undefined;
|
|
1657
1682
|
declareStatement(): DeclareStatementContext | undefined;
|
|
@@ -1669,6 +1694,7 @@ export declare class QueryStatementContext extends ParserRuleContext {
|
|
|
1669
1694
|
nestStatement(): NestStatementContext | undefined;
|
|
1670
1695
|
sampleStatement(): SampleStatementContext | undefined;
|
|
1671
1696
|
timezoneStatement(): TimezoneStatementContext | undefined;
|
|
1697
|
+
drillStatement(): DrillStatementContext | undefined;
|
|
1672
1698
|
queryAnnotation(): QueryAnnotationContext | undefined;
|
|
1673
1699
|
ignoredModelAnnotations(): IgnoredModelAnnotationsContext | undefined;
|
|
1674
1700
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|