@malloydata/render 0.0.333 → 0.0.334
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 +12 -13
- package/dist/module/index.umd.js +4 -4
- package/package.json +5 -5
package/dist/module/index.mjs
CHANGED
|
@@ -41371,17 +41371,16 @@ ${(0, io.indent)(p)}) AS ${r.alias}
|
|
|
41371
41371
|
const m = [];
|
|
41372
41372
|
let g;
|
|
41373
41373
|
const y = x.firstSegment.orderBy || x.calculateDefaultOrderBy();
|
|
41374
|
-
for (const
|
|
41375
|
-
typeof
|
|
41376
|
-
name:
|
|
41377
|
-
fif: x.getField(
|
|
41378
|
-
} : g = x.getFieldByNumber(
|
|
41379
|
-
|
|
41380
|
-
|
|
41381
|
-
|
|
41382
|
-
|
|
41383
|
-
|
|
41384
|
-
}
|
|
41374
|
+
for (const _ of y)
|
|
41375
|
+
typeof _.field == "string" ? g = {
|
|
41376
|
+
name: _.field,
|
|
41377
|
+
fif: x.getField(_.field)
|
|
41378
|
+
} : g = x.getFieldByNumber(_.field), m.push(" " + this.parent.dialect.sqlMaybeQuoteIdentifier(`${g.name}__${x.groupSet}`) + ` ${_.dir || "ASC"}`);
|
|
41379
|
+
let E = "";
|
|
41380
|
+
x.parent && l[x.parent.groupSet] ? E = l[x.parent.groupSet] + ", group_set" : E = "PARTITION BY group_set", x.hasHaving && (E = E + `, __delete__${x.groupSet}`), s.push(`CASE WHEN GROUP_SET=${x.groupSet} THEN
|
|
41381
|
+
ROW_NUMBER() OVER (${E} ORDER BY ${m.join(",")}) END as __row_number__${x.groupSet}`);
|
|
41382
|
+
const v = `(GROUP_SET = ${x.groupSet} AND __row_number__${x.groupSet} > ${o[x.groupSet]})`;
|
|
41383
|
+
x.childGroups.length === 1 ? u.push(v) : a[x.groupSet] = `CASE WHEN ${v} THEN 1 ELSE 0 END`;
|
|
41385
41384
|
}
|
|
41386
41385
|
}
|
|
41387
41386
|
}
|
|
@@ -47331,7 +47330,7 @@ class qPe extends kPe.Source {
|
|
|
47331
47330
|
v.error && s.logError(v.error.code, v.error.message);
|
|
47332
47331
|
}
|
|
47333
47332
|
m.addAccessModifiers(p.modifiers), m.addNotes(p.notes);
|
|
47334
|
-
const g = m.structDef(), y = g.filterList
|
|
47333
|
+
const g = m.structDef(), y = g.filterList ? [...g.filterList] : [];
|
|
47335
47334
|
let E = !1;
|
|
47336
47335
|
for (const v of u)
|
|
47337
47336
|
for (const _ of v.list) {
|
|
@@ -71978,7 +71977,7 @@ function XYe(t) {
|
|
|
71978
71977
|
var Ie = {}, GF = {};
|
|
71979
71978
|
Object.defineProperty(GF, "__esModule", { value: !0 });
|
|
71980
71979
|
GF.MALLOY_VERSION = void 0;
|
|
71981
|
-
GF.MALLOY_VERSION = "0.0.
|
|
71980
|
+
GF.MALLOY_VERSION = "0.0.334";
|
|
71982
71981
|
Object.defineProperty(Ie, "__esModule", { value: !0 });
|
|
71983
71982
|
Ie.InMemoryModelCache = Ie.CacheManager = Ie.CSVWriter = Ie.JSONWriter = Ie.DataWriter = Ie.DataRecord = Ie.DataArray = Ie.Result = Ie.ExploreMaterializer = Ie.PreparedResultMaterializer = Ie.QueryMaterializer = Ie.ModelMaterializer = Ie.SingleConnectionRuntime = Ie.ConnectionRuntime = Ie.Runtime = Ie.ExploreField = Ie.JoinRelationship = Ie.QueryField = Ie.Query = Ie.StringField = Ie.UnsupportedField = Ie.JSONField = Ie.BooleanField = Ie.NumberField = Ie.TimestampField = Ie.DateField = Ie.TimestampTimeframe = Ie.DateTimeframe = Ie.AtomicField = Ie.AtomicFieldType = Ie.Explore = Ie.SourceRelationship = Ie.FixedConnectionMap = Ie.InMemoryURLReader = Ie.EmptyURLReader = Ie.PreparedResult = Ie.DocumentCompletion = Ie.DocumentSymbol = Ie.DocumentPosition = Ie.DocumentRange = Ie.DocumentTablePath = Ie.Parse = Ie.PreparedQuery = Ie.Model = Ie.MalloyError = Ie.Malloy = void 0;
|
|
71984
71983
|
const VX = oR, Wn = bs, H8 = Qh, ZYe = GF, eKe = Fm, tr = Zs, tKe = Zh, nKe = ei, rKe = qA, Us = pd;
|