@malloydata/malloy 0.0.102-dev231114174821 → 0.0.102-dev231114180859

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.
@@ -83,7 +83,6 @@ class PipelineDesc extends malloy_element_1.MalloyElement {
83
83
  for (const refinement of this.refinements) {
84
84
  pipeline = refinement.refine(fs, pipeline);
85
85
  }
86
- this.refinements = undefined;
87
86
  return { pipeline };
88
87
  }
89
88
  expandTurtle(turtleName, fromStruct) {
@@ -317,5 +317,15 @@ describe('partial views', () => {
317
317
  run: x -> { where: true } -> { group_by: undef }
318
318
  `).translationToFailWith("Can't determine view type (`group_by` / `aggregate` / `nest`, `project`, `index`)", "'undef' is not defined", "Can't determine view type (`group_by` / `aggregate` / `nest`, `project`, `index`)", "Can't determine view type (`group_by` / `aggregate` / `nest`, `project`, `index`)", "'undef' is not defined", "Can't determine view type (`group_by` / `aggregate` / `nest`, `project`, `index`)");
319
319
  });
320
+ test('copy of view with refinement should work', () => {
321
+ expect((0, test_translator_1.markSource) `
322
+ ##! experimental { scalar_lenses }
323
+ source: x is a extend {
324
+ view: metrics is { aggregate: c is count() }
325
+ view: v is { group_by: ai } + metrics
326
+ view: v2 is v + { order_by: c }
327
+ }
328
+ `).toTranslate();
329
+ });
320
330
  });
321
331
  //# sourceMappingURL=lenses.spec.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.102-dev231114174821",
3
+ "version": "0.0.102-dev231114180859",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",