@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.
Files changed (54) hide show
  1. package/CONTEXT.md +57 -0
  2. package/dist/api/core.js +2 -0
  3. package/dist/api/util.js +16 -24
  4. package/dist/dialect/dialect.d.ts +113 -23
  5. package/dist/dialect/dialect.js +83 -13
  6. package/dist/dialect/duckdb/duckdb.d.ts +1 -4
  7. package/dist/dialect/duckdb/duckdb.js +13 -17
  8. package/dist/dialect/mysql/mysql.d.ts +9 -4
  9. package/dist/dialect/mysql/mysql.js +18 -11
  10. package/dist/dialect/pg_impl.d.ts +11 -2
  11. package/dist/dialect/pg_impl.js +79 -15
  12. package/dist/dialect/postgres/postgres.d.ts +1 -4
  13. package/dist/dialect/postgres/postgres.js +6 -18
  14. package/dist/dialect/snowflake/snowflake.d.ts +10 -4
  15. package/dist/dialect/snowflake/snowflake.js +80 -31
  16. package/dist/dialect/standardsql/standardsql.d.ts +9 -4
  17. package/dist/dialect/standardsql/standardsql.js +21 -19
  18. package/dist/dialect/tiny_parser.js +1 -1
  19. package/dist/dialect/trino/trino.d.ts +19 -6
  20. package/dist/dialect/trino/trino.js +163 -31
  21. package/dist/index.d.ts +1 -1
  22. package/dist/lang/ast/expressions/expr-granular-time.js +26 -8
  23. package/dist/lang/ast/expressions/expr-props.d.ts +24 -0
  24. package/dist/lang/ast/expressions/for-range.d.ts +1 -1
  25. package/dist/lang/ast/expressions/for-range.js +5 -4
  26. package/dist/lang/ast/expressions/time-literal.d.ts +9 -7
  27. package/dist/lang/ast/expressions/time-literal.js +43 -50
  28. package/dist/lang/ast/query-items/field-declaration.js +1 -2
  29. package/dist/lang/ast/time-utils.js +1 -1
  30. package/dist/lang/ast/typedesc-utils.d.ts +1 -0
  31. package/dist/lang/ast/typedesc-utils.js +14 -1
  32. package/dist/lang/ast/types/expression-def.js +1 -1
  33. package/dist/lang/ast/types/granular-result.js +2 -1
  34. package/dist/lang/composite-source-utils.js +1 -1
  35. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +76 -75
  36. package/dist/lang/lib/Malloy/MalloyLexer.js +1252 -1243
  37. package/dist/lang/lib/Malloy/MalloyParser.d.ts +77 -75
  38. package/dist/lang/lib/Malloy/MalloyParser.js +515 -510
  39. package/dist/lang/malloy-to-stable-query.js +13 -14
  40. package/dist/lang/test/expr-to-str.js +5 -1
  41. package/dist/malloy.d.ts +3 -2
  42. package/dist/malloy.js +6 -0
  43. package/dist/model/field_instance.js +1 -1
  44. package/dist/model/filter_compilers.d.ts +2 -1
  45. package/dist/model/filter_compilers.js +8 -5
  46. package/dist/model/malloy_types.d.ts +31 -9
  47. package/dist/model/malloy_types.js +49 -6
  48. package/dist/model/query_node.d.ts +2 -2
  49. package/dist/model/query_node.js +1 -0
  50. package/dist/model/query_query.js +15 -3
  51. package/dist/to_stable.js +13 -1
  52. package/dist/version.d.ts +1 -1
  53. package/dist/version.js +1 -1
  54. 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 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;
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;