@malloydata/malloy 0.0.323 → 0.0.325
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/CONTEXT.md +57 -0
- package/dist/api/core.js +2 -0
- package/dist/api/util.js +16 -24
- package/dist/dialect/dialect.d.ts +113 -23
- package/dist/dialect/dialect.js +83 -13
- package/dist/dialect/duckdb/duckdb.d.ts +1 -4
- package/dist/dialect/duckdb/duckdb.js +13 -17
- package/dist/dialect/mysql/mysql.d.ts +9 -4
- package/dist/dialect/mysql/mysql.js +18 -11
- package/dist/dialect/pg_impl.d.ts +11 -2
- package/dist/dialect/pg_impl.js +79 -15
- package/dist/dialect/postgres/postgres.d.ts +1 -4
- package/dist/dialect/postgres/postgres.js +6 -18
- package/dist/dialect/snowflake/snowflake.d.ts +10 -4
- package/dist/dialect/snowflake/snowflake.js +80 -31
- package/dist/dialect/standardsql/standardsql.d.ts +9 -4
- package/dist/dialect/standardsql/standardsql.js +21 -19
- package/dist/dialect/tiny_parser.js +1 -1
- package/dist/dialect/trino/trino.d.ts +19 -6
- package/dist/dialect/trino/trino.js +163 -31
- package/dist/index.d.ts +1 -1
- package/dist/lang/ast/expressions/expr-granular-time.js +26 -8
- package/dist/lang/ast/expressions/expr-props.d.ts +24 -0
- package/dist/lang/ast/expressions/for-range.d.ts +1 -1
- package/dist/lang/ast/expressions/for-range.js +5 -4
- package/dist/lang/ast/expressions/time-literal.d.ts +9 -7
- package/dist/lang/ast/expressions/time-literal.js +43 -50
- package/dist/lang/ast/query-items/field-declaration.js +1 -2
- package/dist/lang/ast/time-utils.js +1 -1
- package/dist/lang/ast/typedesc-utils.d.ts +1 -0
- package/dist/lang/ast/typedesc-utils.js +14 -1
- package/dist/lang/ast/types/expression-def.js +1 -1
- package/dist/lang/ast/types/granular-result.js +2 -1
- package/dist/lang/composite-source-utils.js +1 -1
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +76 -75
- package/dist/lang/lib/Malloy/MalloyLexer.js +1252 -1243
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +77 -75
- package/dist/lang/lib/Malloy/MalloyParser.js +515 -510
- package/dist/lang/malloy-to-stable-query.js +13 -14
- package/dist/lang/test/expr-to-str.js +5 -1
- package/dist/malloy.d.ts +3 -2
- package/dist/malloy.js +6 -0
- package/dist/model/field_instance.js +1 -1
- package/dist/model/filter_compilers.d.ts +2 -1
- package/dist/model/filter_compilers.js +8 -5
- package/dist/model/malloy_types.d.ts +31 -9
- package/dist/model/malloy_types.js +49 -6
- package/dist/model/query_node.d.ts +2 -2
- package/dist/model/query_node.js +1 -0
- package/dist/model/query_query.js +15 -3
- package/dist/to_stable.js +13 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -106,81 +106,82 @@ export declare class MalloyParser extends Parser {
|
|
|
106
106
|
static readonly TABLE = 95;
|
|
107
107
|
static readonly THEN = 96;
|
|
108
108
|
static readonly THIS = 97;
|
|
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
|
|
183
|
-
static readonly
|
|
109
|
+
static readonly TIMESTAMPTZ = 98;
|
|
110
|
+
static readonly TIMESTAMP = 99;
|
|
111
|
+
static readonly TO = 100;
|
|
112
|
+
static readonly TRUE = 101;
|
|
113
|
+
static readonly TURTLE = 102;
|
|
114
|
+
static readonly WEEK = 103;
|
|
115
|
+
static readonly WHEN = 104;
|
|
116
|
+
static readonly WITH = 105;
|
|
117
|
+
static readonly YEAR = 106;
|
|
118
|
+
static readonly UNGROUPED = 107;
|
|
119
|
+
static readonly HACKY_REGEX = 108;
|
|
120
|
+
static readonly RAW_SQ = 109;
|
|
121
|
+
static readonly RAW_DQ = 110;
|
|
122
|
+
static readonly SQ3_FILTER = 111;
|
|
123
|
+
static readonly SQ_FILTER = 112;
|
|
124
|
+
static readonly DQ3_FILTER = 113;
|
|
125
|
+
static readonly DQ_FILTER = 114;
|
|
126
|
+
static readonly BQ3_FILTER = 115;
|
|
127
|
+
static readonly BQ_FILTER = 116;
|
|
128
|
+
static readonly SQ_STRING = 117;
|
|
129
|
+
static readonly DQ_STRING = 118;
|
|
130
|
+
static readonly BQ_STRING = 119;
|
|
131
|
+
static readonly DOC_ANNOTATION = 120;
|
|
132
|
+
static readonly ANNOTATION = 121;
|
|
133
|
+
static readonly AMPER = 122;
|
|
134
|
+
static readonly ARROW = 123;
|
|
135
|
+
static readonly FAT_ARROW = 124;
|
|
136
|
+
static readonly OPAREN = 125;
|
|
137
|
+
static readonly CPAREN = 126;
|
|
138
|
+
static readonly OBRACK = 127;
|
|
139
|
+
static readonly CBRACK = 128;
|
|
140
|
+
static readonly OCURLY = 129;
|
|
141
|
+
static readonly CCURLY = 130;
|
|
142
|
+
static readonly DOUBLECOLON = 131;
|
|
143
|
+
static readonly TRIPLECOLON = 132;
|
|
144
|
+
static readonly EXCLAM = 133;
|
|
145
|
+
static readonly COLON = 134;
|
|
146
|
+
static readonly COMMA = 135;
|
|
147
|
+
static readonly DOT = 136;
|
|
148
|
+
static readonly LT = 137;
|
|
149
|
+
static readonly GT = 138;
|
|
150
|
+
static readonly EQ = 139;
|
|
151
|
+
static readonly NE = 140;
|
|
152
|
+
static readonly LTE = 141;
|
|
153
|
+
static readonly GTE = 142;
|
|
154
|
+
static readonly PLUS = 143;
|
|
155
|
+
static readonly MINUS = 144;
|
|
156
|
+
static readonly STAR = 145;
|
|
157
|
+
static readonly STARSTAR = 146;
|
|
158
|
+
static readonly SLASH = 147;
|
|
159
|
+
static readonly BAR = 148;
|
|
160
|
+
static readonly SEMI = 149;
|
|
161
|
+
static readonly NOT_MATCH = 150;
|
|
162
|
+
static readonly MATCH = 151;
|
|
163
|
+
static readonly PERCENT = 152;
|
|
164
|
+
static readonly DOUBLE_QMARK = 153;
|
|
165
|
+
static readonly QMARK = 154;
|
|
166
|
+
static readonly LITERAL_TIMESTAMP = 155;
|
|
167
|
+
static readonly LITERAL_HOUR = 156;
|
|
168
|
+
static readonly LITERAL_DAY = 157;
|
|
169
|
+
static readonly LITERAL_QUARTER = 158;
|
|
170
|
+
static readonly LITERAL_MONTH = 159;
|
|
171
|
+
static readonly LITERAL_WEEK = 160;
|
|
172
|
+
static readonly LITERAL_YEAR = 161;
|
|
173
|
+
static readonly IDENTIFIER = 162;
|
|
174
|
+
static readonly PERCENT_LITERAL = 163;
|
|
175
|
+
static readonly NUMERIC_LITERAL = 164;
|
|
176
|
+
static readonly INTEGER_LITERAL = 165;
|
|
177
|
+
static readonly BLOCK_COMMENT = 166;
|
|
178
|
+
static readonly COMMENT_TO_EOL = 167;
|
|
179
|
+
static readonly WHITE_SPACE = 168;
|
|
180
|
+
static readonly SQL_BEGIN = 169;
|
|
181
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 170;
|
|
182
|
+
static readonly UNEXPECTED_CHAR = 171;
|
|
183
|
+
static readonly OPEN_CODE = 172;
|
|
184
|
+
static readonly SQL_END = 173;
|
|
184
185
|
static readonly RULE_malloyDocument = 0;
|
|
185
186
|
static readonly RULE_malloyStatement = 1;
|
|
186
187
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -1979,6 +1980,7 @@ export declare class MalloyTypeContext extends ParserRuleContext {
|
|
|
1979
1980
|
BOOLEAN(): TerminalNode | undefined;
|
|
1980
1981
|
DATE(): TerminalNode | undefined;
|
|
1981
1982
|
TIMESTAMP(): TerminalNode | undefined;
|
|
1983
|
+
TIMESTAMPTZ(): TerminalNode | undefined;
|
|
1982
1984
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1983
1985
|
get ruleIndex(): number;
|
|
1984
1986
|
enterRule(listener: MalloyParserListener): void;
|