@malloydata/malloy 0.0.281 → 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-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
|
@@ -10,170 +10,171 @@ export declare class MalloyLexer extends Lexer {
|
|
|
10
10
|
static readonly CONNECTION = 5;
|
|
11
11
|
static readonly DECLARE = 6;
|
|
12
12
|
static readonly DIMENSION = 7;
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
132
|
-
static readonly
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
167
|
-
static readonly
|
|
168
|
-
static readonly
|
|
169
|
-
static readonly
|
|
170
|
-
static readonly
|
|
171
|
-
static readonly
|
|
172
|
-
static readonly
|
|
173
|
-
static readonly
|
|
174
|
-
static readonly
|
|
175
|
-
static readonly
|
|
176
|
-
static readonly
|
|
13
|
+
static readonly DRILL = 8;
|
|
14
|
+
static readonly EXCEPT = 9;
|
|
15
|
+
static readonly EXTENDQ = 10;
|
|
16
|
+
static readonly GROUP_BY = 11;
|
|
17
|
+
static readonly GROUPED_BY = 12;
|
|
18
|
+
static readonly HAVING = 13;
|
|
19
|
+
static readonly INDEX = 14;
|
|
20
|
+
static readonly INTERNAL = 15;
|
|
21
|
+
static readonly JOIN_CROSS = 16;
|
|
22
|
+
static readonly JOIN_ONE = 17;
|
|
23
|
+
static readonly JOIN_MANY = 18;
|
|
24
|
+
static readonly LIMIT = 19;
|
|
25
|
+
static readonly MEASURE = 20;
|
|
26
|
+
static readonly NEST = 21;
|
|
27
|
+
static readonly ORDER_BY = 22;
|
|
28
|
+
static readonly PARTITION_BY = 23;
|
|
29
|
+
static readonly PRIMARY_KEY = 24;
|
|
30
|
+
static readonly PRIVATE = 25;
|
|
31
|
+
static readonly PROJECT = 26;
|
|
32
|
+
static readonly PUBLIC = 27;
|
|
33
|
+
static readonly QUERY = 28;
|
|
34
|
+
static readonly RENAME = 29;
|
|
35
|
+
static readonly RUN = 30;
|
|
36
|
+
static readonly SAMPLE = 31;
|
|
37
|
+
static readonly SELECT = 32;
|
|
38
|
+
static readonly SOURCE = 33;
|
|
39
|
+
static readonly TOP = 34;
|
|
40
|
+
static readonly WHERE = 35;
|
|
41
|
+
static readonly VIEW = 36;
|
|
42
|
+
static readonly TIMEZONE = 37;
|
|
43
|
+
static readonly ALL = 38;
|
|
44
|
+
static readonly AND = 39;
|
|
45
|
+
static readonly AS = 40;
|
|
46
|
+
static readonly ASC = 41;
|
|
47
|
+
static readonly AVG = 42;
|
|
48
|
+
static readonly BOOLEAN = 43;
|
|
49
|
+
static readonly BY = 44;
|
|
50
|
+
static readonly CASE = 45;
|
|
51
|
+
static readonly CAST = 46;
|
|
52
|
+
static readonly CONDITION = 47;
|
|
53
|
+
static readonly COUNT = 48;
|
|
54
|
+
static readonly COMPOSE = 49;
|
|
55
|
+
static readonly DATE = 50;
|
|
56
|
+
static readonly DAY = 51;
|
|
57
|
+
static readonly DESC = 52;
|
|
58
|
+
static readonly DISTINCT = 53;
|
|
59
|
+
static readonly ELSE = 54;
|
|
60
|
+
static readonly END = 55;
|
|
61
|
+
static readonly EXCLUDE = 56;
|
|
62
|
+
static readonly EXTEND = 57;
|
|
63
|
+
static readonly FALSE = 58;
|
|
64
|
+
static readonly FILTER = 59;
|
|
65
|
+
static readonly FULL = 60;
|
|
66
|
+
static readonly FOR = 61;
|
|
67
|
+
static readonly FROM = 62;
|
|
68
|
+
static readonly HAS = 63;
|
|
69
|
+
static readonly HOUR = 64;
|
|
70
|
+
static readonly IMPORT = 65;
|
|
71
|
+
static readonly INCLUDE = 66;
|
|
72
|
+
static readonly INNER = 67;
|
|
73
|
+
static readonly IS = 68;
|
|
74
|
+
static readonly IN = 69;
|
|
75
|
+
static readonly INTERNAL_KW = 70;
|
|
76
|
+
static readonly JSON = 71;
|
|
77
|
+
static readonly LAST = 72;
|
|
78
|
+
static readonly LEFT = 73;
|
|
79
|
+
static readonly LIKE = 74;
|
|
80
|
+
static readonly MAX = 75;
|
|
81
|
+
static readonly MIN = 76;
|
|
82
|
+
static readonly MINUTE = 77;
|
|
83
|
+
static readonly MONTH = 78;
|
|
84
|
+
static readonly NOT = 79;
|
|
85
|
+
static readonly NOW = 80;
|
|
86
|
+
static readonly NULL = 81;
|
|
87
|
+
static readonly NUMBER = 82;
|
|
88
|
+
static readonly ON = 83;
|
|
89
|
+
static readonly OR = 84;
|
|
90
|
+
static readonly PICK = 85;
|
|
91
|
+
static readonly PRIVATE_KW = 86;
|
|
92
|
+
static readonly PUBLIC_KW = 87;
|
|
93
|
+
static readonly QUARTER = 88;
|
|
94
|
+
static readonly RIGHT = 89;
|
|
95
|
+
static readonly SECOND = 90;
|
|
96
|
+
static readonly STRING = 91;
|
|
97
|
+
static readonly SOURCE_KW = 92;
|
|
98
|
+
static readonly SUM = 93;
|
|
99
|
+
static readonly SQL = 94;
|
|
100
|
+
static readonly TABLE = 95;
|
|
101
|
+
static readonly THEN = 96;
|
|
102
|
+
static readonly THIS = 97;
|
|
103
|
+
static readonly TIMESTAMP = 98;
|
|
104
|
+
static readonly TO = 99;
|
|
105
|
+
static readonly TRUE = 100;
|
|
106
|
+
static readonly TURTLE = 101;
|
|
107
|
+
static readonly WEEK = 102;
|
|
108
|
+
static readonly WHEN = 103;
|
|
109
|
+
static readonly WITH = 104;
|
|
110
|
+
static readonly YEAR = 105;
|
|
111
|
+
static readonly UNGROUPED = 106;
|
|
112
|
+
static readonly HACKY_REGEX = 107;
|
|
113
|
+
static readonly RAW_SQ = 108;
|
|
114
|
+
static readonly RAW_DQ = 109;
|
|
115
|
+
static readonly SQ3_FILTER = 110;
|
|
116
|
+
static readonly SQ_FILTER = 111;
|
|
117
|
+
static readonly DQ3_FILTER = 112;
|
|
118
|
+
static readonly DQ_FILTER = 113;
|
|
119
|
+
static readonly BQ3_FILTER = 114;
|
|
120
|
+
static readonly BQ_FILTER = 115;
|
|
121
|
+
static readonly SQ_STRING = 116;
|
|
122
|
+
static readonly DQ_STRING = 117;
|
|
123
|
+
static readonly BQ_STRING = 118;
|
|
124
|
+
static readonly DOC_ANNOTATION = 119;
|
|
125
|
+
static readonly ANNOTATION = 120;
|
|
126
|
+
static readonly AMPER = 121;
|
|
127
|
+
static readonly ARROW = 122;
|
|
128
|
+
static readonly FAT_ARROW = 123;
|
|
129
|
+
static readonly OPAREN = 124;
|
|
130
|
+
static readonly CPAREN = 125;
|
|
131
|
+
static readonly OBRACK = 126;
|
|
132
|
+
static readonly CBRACK = 127;
|
|
133
|
+
static readonly OCURLY = 128;
|
|
134
|
+
static readonly CCURLY = 129;
|
|
135
|
+
static readonly DOUBLECOLON = 130;
|
|
136
|
+
static readonly TRIPLECOLON = 131;
|
|
137
|
+
static readonly EXCLAM = 132;
|
|
138
|
+
static readonly COLON = 133;
|
|
139
|
+
static readonly COMMA = 134;
|
|
140
|
+
static readonly DOT = 135;
|
|
141
|
+
static readonly LT = 136;
|
|
142
|
+
static readonly GT = 137;
|
|
143
|
+
static readonly EQ = 138;
|
|
144
|
+
static readonly NE = 139;
|
|
145
|
+
static readonly LTE = 140;
|
|
146
|
+
static readonly GTE = 141;
|
|
147
|
+
static readonly PLUS = 142;
|
|
148
|
+
static readonly MINUS = 143;
|
|
149
|
+
static readonly STAR = 144;
|
|
150
|
+
static readonly STARSTAR = 145;
|
|
151
|
+
static readonly SLASH = 146;
|
|
152
|
+
static readonly BAR = 147;
|
|
153
|
+
static readonly SEMI = 148;
|
|
154
|
+
static readonly NOT_MATCH = 149;
|
|
155
|
+
static readonly MATCH = 150;
|
|
156
|
+
static readonly PERCENT = 151;
|
|
157
|
+
static readonly DOUBLE_QMARK = 152;
|
|
158
|
+
static readonly QMARK = 153;
|
|
159
|
+
static readonly LITERAL_TIMESTAMP = 154;
|
|
160
|
+
static readonly LITERAL_HOUR = 155;
|
|
161
|
+
static readonly LITERAL_DAY = 156;
|
|
162
|
+
static readonly LITERAL_QUARTER = 157;
|
|
163
|
+
static readonly LITERAL_MONTH = 158;
|
|
164
|
+
static readonly LITERAL_WEEK = 159;
|
|
165
|
+
static readonly LITERAL_YEAR = 160;
|
|
166
|
+
static readonly IDENTIFIER = 161;
|
|
167
|
+
static readonly PERCENT_LITERAL = 162;
|
|
168
|
+
static readonly NUMERIC_LITERAL = 163;
|
|
169
|
+
static readonly INTEGER_LITERAL = 164;
|
|
170
|
+
static readonly BLOCK_COMMENT = 165;
|
|
171
|
+
static readonly COMMENT_TO_EOL = 166;
|
|
172
|
+
static readonly WHITE_SPACE = 167;
|
|
173
|
+
static readonly SQL_BEGIN = 168;
|
|
174
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 169;
|
|
175
|
+
static readonly UNEXPECTED_CHAR = 170;
|
|
176
|
+
static readonly OPEN_CODE = 171;
|
|
177
|
+
static readonly SQL_END = 172;
|
|
177
178
|
static readonly SQL_MODE = 1;
|
|
178
179
|
static readonly channelNames: string[];
|
|
179
180
|
static readonly modeNames: string[];
|