@malloydata/render 0.0.270-dev250424204317 → 0.0.270-dev250428164815
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.
|
@@ -128503,7 +128503,11 @@ class Bl {
|
|
|
128503
128503
|
}
|
|
128504
128504
|
sqlChildReference(e, r) {
|
|
128505
128505
|
let i = this.getSQLIdentifier();
|
|
128506
|
-
r && (0, Me.isAtomic)(this.structDef) && (0, Me.hasExpression)(this.structDef)
|
|
128506
|
+
if (r && (0, Me.isAtomic)(this.structDef) && (0, Me.hasExpression)(this.structDef)) {
|
|
128507
|
+
if (!this.parent)
|
|
128508
|
+
throw new Error(`Cannot expand reference to ${e} without parent`);
|
|
128509
|
+
i = r.field.exprToSQL(r.result, this.parent, this.structDef.e);
|
|
128510
|
+
}
|
|
128507
128511
|
let s = "table";
|
|
128508
128512
|
this.structDef.type === "record" ? s = "record" : this.structDef.type === "array" ? s = this.structDef.elementTypeDef.type === "record_element" ? "array[record]" : "array[scalar]" : this.structDef.type === "nest_source" && (s = "nest source");
|
|
128509
128513
|
const o = this.getChildByName(e), u = (o == null ? void 0 : o.fieldDef.type) || "unknown";
|
|
@@ -133400,7 +133404,7 @@ function Mat(t, e, r, i) {
|
|
|
133400
133404
|
return t;
|
|
133401
133405
|
let s = e[0];
|
|
133402
133406
|
for (const m of e.slice(1))
|
|
133403
|
-
for (let g = 0; g < s.length; g++) {
|
|
133407
|
+
for (let g = 0; g < s.length && g < m.length; g++) {
|
|
133404
133408
|
const y = s[g], E = m[g];
|
|
133405
133409
|
if (y.name !== E.name) {
|
|
133406
133410
|
s = s.slice(0, g);
|