@malloydata/malloy 0.0.225-dev241223203704 → 0.0.225-dev241231223221

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.
@@ -173,156 +173,155 @@ export declare class MalloyParser extends Parser {
173
173
  static readonly OPEN_CODE = 162;
174
174
  static readonly SQL_END = 163;
175
175
  static readonly RULE_malloyDocument = 0;
176
- static readonly RULE_closeCurly = 1;
177
- static readonly RULE_malloyStatement = 2;
178
- static readonly RULE_defineSourceStatement = 3;
179
- static readonly RULE_defineQuery = 4;
180
- static readonly RULE_topLevelAnonQueryDef = 5;
181
- static readonly RULE_tags = 6;
182
- static readonly RULE_isDefine = 7;
183
- static readonly RULE_runStatement = 8;
184
- static readonly RULE_sqlString = 9;
185
- static readonly RULE_sqlInterpolation = 10;
186
- static readonly RULE_importStatement = 11;
187
- static readonly RULE_importSelect = 12;
188
- static readonly RULE_importItem = 13;
189
- static readonly RULE_importURL = 14;
190
- static readonly RULE_docAnnotations = 15;
191
- static readonly RULE_ignoredObjectAnnotations = 16;
192
- static readonly RULE_ignoredModelAnnotations = 17;
193
- static readonly RULE_topLevelQueryDefs = 18;
194
- static readonly RULE_topLevelQueryDef = 19;
195
- static readonly RULE_refineOperator = 20;
196
- static readonly RULE_turtleName = 21;
197
- static readonly RULE_sqlSource = 22;
198
- static readonly RULE_exploreTable = 23;
199
- static readonly RULE_connectionId = 24;
200
- static readonly RULE_queryProperties = 25;
201
- static readonly RULE_filterShortcut = 26;
202
- static readonly RULE_queryName = 27;
203
- static readonly RULE_sourcePropertyList = 28;
204
- static readonly RULE_sourceDefinition = 29;
205
- static readonly RULE_sqExplore = 30;
206
- static readonly RULE_sourceParameters = 31;
207
- static readonly RULE_sourceParameter = 32;
208
- static readonly RULE_parameterNameDef = 33;
209
- static readonly RULE_sourceNameDef = 34;
210
- static readonly RULE_exploreProperties = 35;
211
- static readonly RULE_exploreStatement = 36;
212
- static readonly RULE_accessLabel = 37;
213
- static readonly RULE_accessModifierList = 38;
214
- static readonly RULE_defMeasures = 39;
215
- static readonly RULE_defDimensions = 40;
216
- static readonly RULE_renameList = 41;
217
- static readonly RULE_exploreRenameDef = 42;
218
- static readonly RULE_defList = 43;
219
- static readonly RULE_fieldDef = 44;
220
- static readonly RULE_fieldNameDef = 45;
221
- static readonly RULE_joinNameDef = 46;
222
- static readonly RULE_declareStatement = 47;
223
- static readonly RULE_joinStatement = 48;
224
- static readonly RULE_queryExtend = 49;
225
- static readonly RULE_modEither = 50;
226
- static readonly RULE_sourceArguments = 51;
227
- static readonly RULE_argumentId = 52;
228
- static readonly RULE_sourceArgument = 53;
229
- static readonly RULE_sqExpr = 54;
230
- static readonly RULE_includeBlock = 55;
231
- static readonly RULE_includeItem = 56;
232
- static readonly RULE_orphanedAnnotation = 57;
233
- static readonly RULE_accessLabelProp = 58;
234
- static readonly RULE_includeExceptList = 59;
235
- static readonly RULE_includeExceptListItem = 60;
236
- static readonly RULE_includeList = 61;
237
- static readonly RULE_includeField = 62;
238
- static readonly RULE_segExpr = 63;
239
- static readonly RULE_vExpr = 64;
240
- static readonly RULE_queryExtendStatement = 65;
241
- static readonly RULE_queryExtendStatementList = 66;
242
- static readonly RULE_joinList = 67;
243
- static readonly RULE_isExplore = 68;
244
- static readonly RULE_matrixOperation = 69;
245
- static readonly RULE_joinFrom = 70;
246
- static readonly RULE_joinDef = 71;
247
- static readonly RULE_joinExpression = 72;
248
- static readonly RULE_filterStatement = 73;
249
- static readonly RULE_fieldProperties = 74;
250
- static readonly RULE_aggregateOrdering = 75;
251
- static readonly RULE_aggregateOrderBySpec = 76;
252
- static readonly RULE_aggregateOrderByStatement = 77;
253
- static readonly RULE_fieldPropertyLimitStatement = 78;
254
- static readonly RULE_fieldPropertyStatement = 79;
255
- static readonly RULE_filterClauseList = 80;
256
- static readonly RULE_whereStatement = 81;
257
- static readonly RULE_havingStatement = 82;
258
- static readonly RULE_subQueryDefList = 83;
259
- static readonly RULE_exploreQueryNameDef = 84;
260
- static readonly RULE_exploreQueryDef = 85;
261
- static readonly RULE_queryStatement = 86;
262
- static readonly RULE_queryJoinStatement = 87;
263
- static readonly RULE_groupByStatement = 88;
264
- static readonly RULE_queryFieldList = 89;
265
- static readonly RULE_queryFieldEntry = 90;
266
- static readonly RULE_nestStatement = 91;
267
- static readonly RULE_nestedQueryList = 92;
268
- static readonly RULE_nestEntry = 93;
269
- static readonly RULE_aggregateStatement = 94;
270
- static readonly RULE_calculateStatement = 95;
271
- static readonly RULE_projectStatement = 96;
272
- static readonly RULE_partitionByStatement = 97;
273
- static readonly RULE_orderByStatement = 98;
274
- static readonly RULE_ordering = 99;
275
- static readonly RULE_orderBySpec = 100;
276
- static readonly RULE_limitStatement = 101;
277
- static readonly RULE_bySpec = 102;
278
- static readonly RULE_topStatement = 103;
279
- static readonly RULE_indexElement = 104;
280
- static readonly RULE_indexFields = 105;
281
- static readonly RULE_indexStatement = 106;
282
- static readonly RULE_sampleStatement = 107;
283
- static readonly RULE_timezoneStatement = 108;
284
- static readonly RULE_queryAnnotation = 109;
285
- static readonly RULE_sampleSpec = 110;
286
- static readonly RULE_aggregate = 111;
287
- static readonly RULE_malloyType = 112;
288
- static readonly RULE_compareOp = 113;
289
- static readonly RULE_string = 114;
290
- static readonly RULE_shortString = 115;
291
- static readonly RULE_numericLiteral = 116;
292
- static readonly RULE_literal = 117;
293
- static readonly RULE_dateLiteral = 118;
294
- static readonly RULE_tablePath = 119;
295
- static readonly RULE_tableURI = 120;
296
- static readonly RULE_id = 121;
297
- static readonly RULE_timeframe = 122;
298
- static readonly RULE_ungroup = 123;
299
- static readonly RULE_malloyOrSQLType = 124;
300
- static readonly RULE_fieldExpr = 125;
301
- static readonly RULE_partialAllowedFieldExpr = 126;
302
- static readonly RULE_fieldExprList = 127;
303
- static readonly RULE_pickStatement = 128;
304
- static readonly RULE_pick = 129;
305
- static readonly RULE_caseStatement = 130;
306
- static readonly RULE_caseWhen = 131;
307
- static readonly RULE_recordKey = 132;
308
- static readonly RULE_recordElement = 133;
309
- static readonly RULE_argumentList = 134;
310
- static readonly RULE_fieldNameList = 135;
311
- static readonly RULE_fieldCollection = 136;
312
- static readonly RULE_collectionWildCard = 137;
313
- static readonly RULE_starQualified = 138;
314
- static readonly RULE_taggedRef = 139;
315
- static readonly RULE_refExpr = 140;
316
- static readonly RULE_collectionMember = 141;
317
- static readonly RULE_fieldPath = 142;
318
- static readonly RULE_joinName = 143;
319
- static readonly RULE_fieldName = 144;
320
- static readonly RULE_sqlExploreNameRef = 145;
321
- static readonly RULE_nameSQLBlock = 146;
322
- static readonly RULE_connectionName = 147;
323
- static readonly RULE_debugExpr = 148;
324
- static readonly RULE_debugPartial = 149;
325
- static readonly RULE_experimentalStatementForTesting = 150;
176
+ static readonly RULE_malloyStatement = 1;
177
+ static readonly RULE_defineSourceStatement = 2;
178
+ static readonly RULE_defineQuery = 3;
179
+ static readonly RULE_topLevelAnonQueryDef = 4;
180
+ static readonly RULE_tags = 5;
181
+ static readonly RULE_isDefine = 6;
182
+ static readonly RULE_runStatement = 7;
183
+ static readonly RULE_sqlString = 8;
184
+ static readonly RULE_sqlInterpolation = 9;
185
+ static readonly RULE_importStatement = 10;
186
+ static readonly RULE_importSelect = 11;
187
+ static readonly RULE_importItem = 12;
188
+ static readonly RULE_importURL = 13;
189
+ static readonly RULE_docAnnotations = 14;
190
+ static readonly RULE_ignoredObjectAnnotations = 15;
191
+ static readonly RULE_ignoredModelAnnotations = 16;
192
+ static readonly RULE_topLevelQueryDefs = 17;
193
+ static readonly RULE_topLevelQueryDef = 18;
194
+ static readonly RULE_refineOperator = 19;
195
+ static readonly RULE_turtleName = 20;
196
+ static readonly RULE_sqlSource = 21;
197
+ static readonly RULE_exploreTable = 22;
198
+ static readonly RULE_connectionId = 23;
199
+ static readonly RULE_queryProperties = 24;
200
+ static readonly RULE_queryName = 25;
201
+ static readonly RULE_sourcePropertyList = 26;
202
+ static readonly RULE_sourceDefinition = 27;
203
+ static readonly RULE_sqExplore = 28;
204
+ static readonly RULE_sourceParameters = 29;
205
+ static readonly RULE_sourceParameter = 30;
206
+ static readonly RULE_parameterNameDef = 31;
207
+ static readonly RULE_sourceNameDef = 32;
208
+ static readonly RULE_exploreProperties = 33;
209
+ static readonly RULE_exploreStatement = 34;
210
+ static readonly RULE_accessLabel = 35;
211
+ static readonly RULE_accessModifierList = 36;
212
+ static readonly RULE_defMeasures = 37;
213
+ static readonly RULE_defDimensions = 38;
214
+ static readonly RULE_renameList = 39;
215
+ static readonly RULE_exploreRenameDef = 40;
216
+ static readonly RULE_defList = 41;
217
+ static readonly RULE_fieldDef = 42;
218
+ static readonly RULE_fieldNameDef = 43;
219
+ static readonly RULE_joinNameDef = 44;
220
+ static readonly RULE_declareStatement = 45;
221
+ static readonly RULE_joinStatement = 46;
222
+ static readonly RULE_queryExtend = 47;
223
+ static readonly RULE_modEither = 48;
224
+ static readonly RULE_sourceArguments = 49;
225
+ static readonly RULE_argumentId = 50;
226
+ static readonly RULE_sourceArgument = 51;
227
+ static readonly RULE_sqExpr = 52;
228
+ static readonly RULE_includeBlock = 53;
229
+ static readonly RULE_includeItem = 54;
230
+ static readonly RULE_orphanedAnnotation = 55;
231
+ static readonly RULE_accessLabelProp = 56;
232
+ static readonly RULE_includeExceptList = 57;
233
+ static readonly RULE_includeExceptListItem = 58;
234
+ static readonly RULE_includeList = 59;
235
+ static readonly RULE_includeField = 60;
236
+ static readonly RULE_segExpr = 61;
237
+ static readonly RULE_vExpr = 62;
238
+ static readonly RULE_queryExtendStatement = 63;
239
+ static readonly RULE_queryExtendStatementList = 64;
240
+ static readonly RULE_joinList = 65;
241
+ static readonly RULE_isExplore = 66;
242
+ static readonly RULE_matrixOperation = 67;
243
+ static readonly RULE_joinFrom = 68;
244
+ static readonly RULE_joinDef = 69;
245
+ static readonly RULE_joinExpression = 70;
246
+ static readonly RULE_filterStatement = 71;
247
+ static readonly RULE_fieldProperties = 72;
248
+ static readonly RULE_aggregateOrdering = 73;
249
+ static readonly RULE_aggregateOrderBySpec = 74;
250
+ static readonly RULE_aggregateOrderByStatement = 75;
251
+ static readonly RULE_fieldPropertyLimitStatement = 76;
252
+ static readonly RULE_fieldPropertyStatement = 77;
253
+ static readonly RULE_filterClauseList = 78;
254
+ static readonly RULE_whereStatement = 79;
255
+ static readonly RULE_havingStatement = 80;
256
+ static readonly RULE_subQueryDefList = 81;
257
+ static readonly RULE_exploreQueryNameDef = 82;
258
+ static readonly RULE_exploreQueryDef = 83;
259
+ static readonly RULE_queryStatement = 84;
260
+ static readonly RULE_queryJoinStatement = 85;
261
+ static readonly RULE_groupByStatement = 86;
262
+ static readonly RULE_queryFieldList = 87;
263
+ static readonly RULE_queryFieldEntry = 88;
264
+ static readonly RULE_nestStatement = 89;
265
+ static readonly RULE_nestedQueryList = 90;
266
+ static readonly RULE_nestEntry = 91;
267
+ static readonly RULE_aggregateStatement = 92;
268
+ static readonly RULE_calculateStatement = 93;
269
+ static readonly RULE_projectStatement = 94;
270
+ static readonly RULE_partitionByStatement = 95;
271
+ static readonly RULE_orderByStatement = 96;
272
+ static readonly RULE_ordering = 97;
273
+ static readonly RULE_orderBySpec = 98;
274
+ static readonly RULE_limitStatement = 99;
275
+ static readonly RULE_bySpec = 100;
276
+ static readonly RULE_topStatement = 101;
277
+ static readonly RULE_indexElement = 102;
278
+ static readonly RULE_indexFields = 103;
279
+ static readonly RULE_indexStatement = 104;
280
+ static readonly RULE_sampleStatement = 105;
281
+ static readonly RULE_timezoneStatement = 106;
282
+ static readonly RULE_queryAnnotation = 107;
283
+ static readonly RULE_sampleSpec = 108;
284
+ static readonly RULE_aggregate = 109;
285
+ static readonly RULE_malloyType = 110;
286
+ static readonly RULE_compareOp = 111;
287
+ static readonly RULE_string = 112;
288
+ static readonly RULE_shortString = 113;
289
+ static readonly RULE_numericLiteral = 114;
290
+ static readonly RULE_literal = 115;
291
+ static readonly RULE_dateLiteral = 116;
292
+ static readonly RULE_tablePath = 117;
293
+ static readonly RULE_tableURI = 118;
294
+ static readonly RULE_id = 119;
295
+ static readonly RULE_timeframe = 120;
296
+ static readonly RULE_ungroup = 121;
297
+ static readonly RULE_malloyOrSQLType = 122;
298
+ static readonly RULE_fieldExpr = 123;
299
+ static readonly RULE_partialAllowedFieldExpr = 124;
300
+ static readonly RULE_fieldExprList = 125;
301
+ static readonly RULE_pickStatement = 126;
302
+ static readonly RULE_pick = 127;
303
+ static readonly RULE_caseStatement = 128;
304
+ static readonly RULE_caseWhen = 129;
305
+ static readonly RULE_recordKey = 130;
306
+ static readonly RULE_recordElement = 131;
307
+ static readonly RULE_argumentList = 132;
308
+ static readonly RULE_fieldNameList = 133;
309
+ static readonly RULE_fieldCollection = 134;
310
+ static readonly RULE_collectionWildCard = 135;
311
+ static readonly RULE_starQualified = 136;
312
+ static readonly RULE_taggedRef = 137;
313
+ static readonly RULE_refExpr = 138;
314
+ static readonly RULE_collectionMember = 139;
315
+ static readonly RULE_fieldPath = 140;
316
+ static readonly RULE_joinName = 141;
317
+ static readonly RULE_fieldName = 142;
318
+ static readonly RULE_sqlExploreNameRef = 143;
319
+ static readonly RULE_nameSQLBlock = 144;
320
+ static readonly RULE_connectionName = 145;
321
+ static readonly RULE_debugExpr = 146;
322
+ static readonly RULE_debugPartial = 147;
323
+ static readonly RULE_experimentalStatementForTesting = 148;
324
+ static readonly RULE_closeCurly = 149;
326
325
  static readonly ruleNames: string[];
327
326
  private static readonly _LITERAL_NAMES;
328
327
  private static readonly _SYMBOLIC_NAMES;
@@ -334,7 +333,6 @@ export declare class MalloyParser extends Parser {
334
333
  protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException;
335
334
  constructor(input: TokenStream);
336
335
  malloyDocument(): MalloyDocumentContext;
337
- closeCurly(): CloseCurlyContext;
338
336
  malloyStatement(): MalloyStatementContext;
339
337
  defineSourceStatement(): DefineSourceStatementContext;
340
338
  defineQuery(): DefineQueryContext;
@@ -359,7 +357,6 @@ export declare class MalloyParser extends Parser {
359
357
  exploreTable(): ExploreTableContext;
360
358
  connectionId(): ConnectionIdContext;
361
359
  queryProperties(): QueryPropertiesContext;
362
- filterShortcut(): FilterShortcutContext;
363
360
  queryName(): QueryNameContext;
364
361
  sourcePropertyList(): SourcePropertyListContext;
365
362
  sourceDefinition(): SourceDefinitionContext;
@@ -487,6 +484,7 @@ export declare class MalloyParser extends Parser {
487
484
  debugExpr(): DebugExprContext;
488
485
  debugPartial(): DebugPartialContext;
489
486
  experimentalStatementForTesting(): ExperimentalStatementForTestingContext;
487
+ closeCurly(): CloseCurlyContext;
490
488
  sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
491
489
  private sqExpr_sempred;
492
490
  private segExpr_sempred;
@@ -511,14 +509,6 @@ export declare class MalloyDocumentContext extends ParserRuleContext {
511
509
  exitRule(listener: MalloyParserListener): void;
512
510
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
513
511
  }
514
- export declare class CloseCurlyContext extends ParserRuleContext {
515
- CCURLY(): TerminalNode | undefined;
516
- constructor(parent: ParserRuleContext | undefined, invokingState: number);
517
- get ruleIndex(): number;
518
- enterRule(listener: MalloyParserListener): void;
519
- exitRule(listener: MalloyParserListener): void;
520
- accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
521
- }
522
512
  export declare class MalloyStatementContext extends ParserRuleContext {
523
513
  defineSourceStatement(): DefineSourceStatementContext | undefined;
524
514
  defineQuery(): DefineQueryContext | undefined;
@@ -785,9 +775,8 @@ export declare class ConnectionIdContext extends ParserRuleContext {
785
775
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
786
776
  }
787
777
  export declare class QueryPropertiesContext extends ParserRuleContext {
788
- filterShortcut(): FilterShortcutContext | undefined;
789
- OCURLY(): TerminalNode | undefined;
790
- closeCurly(): CloseCurlyContext | undefined;
778
+ OCURLY(): TerminalNode;
779
+ closeCurly(): CloseCurlyContext;
791
780
  queryStatement(): QueryStatementContext[];
792
781
  queryStatement(i: number): QueryStatementContext;
793
782
  SEMI(): TerminalNode[];
@@ -798,17 +787,6 @@ export declare class QueryPropertiesContext extends ParserRuleContext {
798
787
  exitRule(listener: MalloyParserListener): void;
799
788
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
800
789
  }
801
- export declare class FilterShortcutContext extends ParserRuleContext {
802
- OCURLY(): TerminalNode;
803
- QMARK(): TerminalNode;
804
- fieldExpr(): FieldExprContext;
805
- closeCurly(): CloseCurlyContext;
806
- constructor(parent: ParserRuleContext | undefined, invokingState: number);
807
- get ruleIndex(): number;
808
- enterRule(listener: MalloyParserListener): void;
809
- exitRule(listener: MalloyParserListener): void;
810
- accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
811
- }
812
790
  export declare class QueryNameContext extends ParserRuleContext {
813
791
  id(): IdContext;
814
792
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -890,13 +868,12 @@ export declare class SourceNameDefContext extends ParserRuleContext {
890
868
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
891
869
  }
892
870
  export declare class ExplorePropertiesContext extends ParserRuleContext {
893
- OCURLY(): TerminalNode | undefined;
894
- closeCurly(): CloseCurlyContext | undefined;
871
+ OCURLY(): TerminalNode;
872
+ closeCurly(): CloseCurlyContext;
895
873
  exploreStatement(): ExploreStatementContext[];
896
874
  exploreStatement(i: number): ExploreStatementContext;
897
875
  SEMI(): TerminalNode[];
898
876
  SEMI(i: number): TerminalNode;
899
- filterShortcut(): FilterShortcutContext | undefined;
900
877
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
901
878
  get ruleIndex(): number;
902
879
  enterRule(listener: MalloyParserListener): void;
@@ -1449,7 +1426,7 @@ export declare class QueryExtendStatementContext extends ParserRuleContext {
1449
1426
  }
1450
1427
  export declare class QueryExtendStatementListContext extends ParserRuleContext {
1451
1428
  OCURLY(): TerminalNode;
1452
- closeCurly(): CloseCurlyContext;
1429
+ CCURLY(): TerminalNode;
1453
1430
  queryExtendStatement(): QueryExtendStatementContext[];
1454
1431
  queryExtendStatement(i: number): QueryExtendStatementContext;
1455
1432
  SEMI(): TerminalNode[];
@@ -2657,7 +2634,7 @@ export declare class CollectionWildCardContext extends ParserRuleContext {
2657
2634
  }
2658
2635
  export declare class StarQualifiedContext extends ParserRuleContext {
2659
2636
  OCURLY(): TerminalNode;
2660
- closeCurly(): CloseCurlyContext;
2637
+ CCURLY(): TerminalNode;
2661
2638
  COMMA(): TerminalNode[];
2662
2639
  COMMA(i: number): TerminalNode;
2663
2640
  EXCEPT(): TerminalNode[];
@@ -2783,3 +2760,11 @@ export declare class ExperimentalStatementForTestingContext extends ParserRuleCo
2783
2760
  exitRule(listener: MalloyParserListener): void;
2784
2761
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
2785
2762
  }
2763
+ export declare class CloseCurlyContext extends ParserRuleContext {
2764
+ CCURLY(): TerminalNode | undefined;
2765
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
2766
+ get ruleIndex(): number;
2767
+ enterRule(listener: MalloyParserListener): void;
2768
+ exitRule(listener: MalloyParserListener): void;
2769
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
2770
+ }