@malloydata/render 0.0.224-dev241217161218 → 0.0.224-dev241217193641
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/module/index.mjs +11933 -12166
- package/dist/module/index.umd.js +250 -250
- package/dist/register/register.mjs +45 -36
- package/dist/register/register.umd.js +3 -3
- package/dist/webcomponent/malloy-render.mjs +45 -36
- package/dist/webcomponent/malloy-render.umd.js +3 -3
- package/package.json +2 -2
|
@@ -4357,7 +4357,7 @@ const axe = {
|
|
|
4357
4357
|
T: ["string", "number", "date", "timestamp", "boolean", "json"]
|
|
4358
4358
|
},
|
|
4359
4359
|
takes: { value: { dimension: { generic: "T" } } },
|
|
4360
|
-
returns: { measure: "
|
|
4360
|
+
returns: { measure: { sql_native: "hyperloglog" } },
|
|
4361
4361
|
isSymmetric: !0,
|
|
4362
4362
|
impl: {
|
|
4363
4363
|
function: "APPROX_SET"
|
|
@@ -4368,7 +4368,7 @@ const axe = {
|
|
|
4368
4368
|
T: ["string", "number", "date", "timestamp", "boolean", "json"]
|
|
4369
4369
|
},
|
|
4370
4370
|
takes: { value: { dimension: { generic: "T" } }, accuracy: "number" },
|
|
4371
|
-
returns: { measure: "
|
|
4371
|
+
returns: { measure: { sql_native: "hyperloglog" } },
|
|
4372
4372
|
isSymmetric: !0,
|
|
4373
4373
|
impl: {
|
|
4374
4374
|
function: "APPROX_SET"
|
|
@@ -4376,30 +4376,30 @@ const axe = {
|
|
|
4376
4376
|
}
|
|
4377
4377
|
}, yxe = {
|
|
4378
4378
|
takes: {
|
|
4379
|
-
value: "
|
|
4379
|
+
value: { sql_native: "hyperloglog" }
|
|
4380
4380
|
},
|
|
4381
|
-
returns: { measure: "
|
|
4381
|
+
returns: { measure: { sql_native: "hyperloglog" } },
|
|
4382
4382
|
impl: { function: "MERGE" },
|
|
4383
4383
|
isSymmetric: !0
|
|
4384
4384
|
}, Exe = {
|
|
4385
4385
|
takes: {
|
|
4386
|
-
value: "
|
|
4386
|
+
value: { sql_native: "hyperloglog" }
|
|
4387
4387
|
},
|
|
4388
4388
|
returns: { dimension: "number" },
|
|
4389
4389
|
impl: { function: "CARDINALITY" }
|
|
4390
4390
|
}, Axe = {
|
|
4391
4391
|
takes: {
|
|
4392
|
-
value: "
|
|
4392
|
+
value: { sql_native: "hyperloglog" }
|
|
4393
4393
|
},
|
|
4394
|
-
returns: { dimension: "
|
|
4394
|
+
returns: { dimension: { sql_native: "varbinary" } },
|
|
4395
4395
|
impl: {
|
|
4396
4396
|
sql: "CAST(${value} AS VARBINARY)"
|
|
4397
4397
|
}
|
|
4398
4398
|
}, vxe = {
|
|
4399
4399
|
takes: {
|
|
4400
|
-
value: "
|
|
4400
|
+
value: { sql_native: "varbinary" }
|
|
4401
4401
|
},
|
|
4402
|
-
returns: { dimension: "
|
|
4402
|
+
returns: { dimension: { sql_native: "hyperloglog" } },
|
|
4403
4403
|
impl: {
|
|
4404
4404
|
sql: "CAST(${value} AS HyperLogLog)"
|
|
4405
4405
|
}
|
|
@@ -43038,18 +43038,20 @@ Object.defineProperty(F3, "__esModule", { value: !0 });
|
|
|
43038
43038
|
F3.QueryBase = void 0;
|
|
43039
43039
|
const Q6 = ut, RM = Ke, yAe = y2, EAe = Ye;
|
|
43040
43040
|
class AAe extends EAe.MalloyElement {
|
|
43041
|
-
|
|
43042
|
-
var
|
|
43043
|
-
const
|
|
43044
|
-
|
|
43045
|
-
|
|
43046
|
-
|
|
43047
|
-
|
|
43041
|
+
resolveCompositeSource(e, n) {
|
|
43042
|
+
var r;
|
|
43043
|
+
const i = n.pipeline[0];
|
|
43044
|
+
if (i && ((0, RM.isQuerySegment)(i) || (0, RM.isIndexSegment)(i))) {
|
|
43045
|
+
const s = (r = i.compositeFieldUsage) !== null && r !== void 0 ? r : (0, Q6.emptyCompositeFieldUsage)();
|
|
43046
|
+
if (!(0, Q6.isEmptyCompositeFieldUsage)(s) || e.type === "composite")
|
|
43047
|
+
return (0, Q6.resolveCompositeSources)(e, s).sourceDef;
|
|
43048
43048
|
}
|
|
43049
|
+
}
|
|
43050
|
+
query() {
|
|
43051
|
+
const { query: e } = this.queryComp(!0);
|
|
43049
43052
|
return {
|
|
43050
|
-
...
|
|
43051
|
-
|
|
43052
|
-
pipeline: (0, yAe.detectAndRemovePartialStages)(r.pipeline, this)
|
|
43053
|
+
...e,
|
|
43054
|
+
pipeline: (0, yAe.detectAndRemovePartialStages)(e.pipeline, this)
|
|
43053
43055
|
};
|
|
43054
43056
|
}
|
|
43055
43057
|
}
|
|
@@ -43062,29 +43064,33 @@ class CAe extends SAe.QueryBase {
|
|
|
43062
43064
|
super({ source: e, view: n }), this.source = e, this.view = n, this.elementType = "arrow";
|
|
43063
43065
|
}
|
|
43064
43066
|
queryComp(e) {
|
|
43065
|
-
|
|
43067
|
+
var n;
|
|
43068
|
+
let r, i, s;
|
|
43066
43069
|
if (this.source instanceof _Ae.Source) {
|
|
43067
|
-
const
|
|
43068
|
-
|
|
43070
|
+
const x = e ? this.source.structRef(void 0) : { structRef: this.source.getSourceDef(void 0) };
|
|
43071
|
+
i = {
|
|
43069
43072
|
type: "query",
|
|
43070
|
-
...
|
|
43073
|
+
...x,
|
|
43071
43074
|
pipeline: [],
|
|
43072
43075
|
location: this.location
|
|
43073
|
-
},
|
|
43076
|
+
}, r = (0, vAe.refIsStructDef)(x.structRef) ? x.structRef : this.source.getSourceDef(void 0), s = new OM.StaticSourceSpace(r);
|
|
43074
43077
|
} else {
|
|
43075
|
-
const
|
|
43076
|
-
|
|
43078
|
+
const x = this.source.queryComp(e);
|
|
43079
|
+
i = x.query, r = x.outputStruct, s = new OM.StaticSourceSpace(x.outputStruct);
|
|
43077
43080
|
}
|
|
43078
|
-
const { pipeline:
|
|
43081
|
+
const { pipeline: o, annotation: u, outputStruct: a, name: l } = this.view.pipelineComp(s), c = {
|
|
43082
|
+
...i,
|
|
43083
|
+
name: l,
|
|
43084
|
+
annotation: u,
|
|
43085
|
+
pipeline: [...i.pipeline, ...o]
|
|
43086
|
+
}, f = (n = c.compositeResolvedSourceDef) !== null && n !== void 0 ? n : this.resolveCompositeSource(r, c);
|
|
43079
43087
|
return {
|
|
43080
43088
|
query: {
|
|
43081
|
-
...
|
|
43082
|
-
|
|
43083
|
-
annotation: o,
|
|
43084
|
-
pipeline: [...r.pipeline, ...s]
|
|
43089
|
+
...c,
|
|
43090
|
+
compositeResolvedSourceDef: f
|
|
43085
43091
|
},
|
|
43086
|
-
outputStruct:
|
|
43087
|
-
inputStruct:
|
|
43092
|
+
outputStruct: a,
|
|
43093
|
+
inputStruct: r
|
|
43088
43094
|
};
|
|
43089
43095
|
}
|
|
43090
43096
|
}
|
|
@@ -43159,11 +43165,14 @@ class BAe extends IAe.QueryBase {
|
|
|
43159
43165
|
super({ base: e, refinement: n }), this.base = e, this.refinement = n, this.elementType = "query-refine";
|
|
43160
43166
|
}
|
|
43161
43167
|
queryComp(e) {
|
|
43162
|
-
const n = this.base.queryComp(e), r = new NAe.StaticSourceSpace(n.inputStruct), i = this.refinement.refine(r, n.query.pipeline, void 0)
|
|
43168
|
+
const n = this.base.queryComp(e), r = new NAe.StaticSourceSpace(n.inputStruct), i = this.refinement.refine(r, n.query.pipeline, void 0), s = {
|
|
43169
|
+
...n.query,
|
|
43170
|
+
pipeline: i
|
|
43171
|
+
}, o = this.resolveCompositeSource(n.inputStruct, s);
|
|
43163
43172
|
return {
|
|
43164
43173
|
query: {
|
|
43165
|
-
...
|
|
43166
|
-
|
|
43174
|
+
...s,
|
|
43175
|
+
compositeResolvedSourceDef: o
|
|
43167
43176
|
},
|
|
43168
43177
|
outputStruct: (0, LAe.getFinalStruct)(this.refinement, n.inputStruct, i),
|
|
43169
43178
|
inputStruct: n.inputStruct
|