@malloydata/malloy 0.0.16-dev221215231609 → 0.0.16-dev221216150223
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/dialect/duckdb.js
CHANGED
|
@@ -123,7 +123,7 @@ class DuckDBDialect extends dialect_1.Dialect {
|
|
|
123
123
|
this.defaultSampling = { rows: 50000 };
|
|
124
124
|
this.supportUnnestArrayAgg = true;
|
|
125
125
|
this.supportsCTEinCoorelatedSubQueries = true;
|
|
126
|
-
this.dontUnionIndex =
|
|
126
|
+
this.dontUnionIndex = false;
|
|
127
127
|
this.functionInfo = {
|
|
128
128
|
concat: { returnType: "string" },
|
|
129
129
|
};
|
|
@@ -2286,7 +2286,7 @@ class QueryQueryIndexStage extends QueryQuery {
|
|
|
2286
2286
|
s += ` WHEN ${i} THEN '${fields[i].type}'\n`;
|
|
2287
2287
|
}
|
|
2288
2288
|
s += ` END as ${fieldTypeColumn},`;
|
|
2289
|
-
s += ` CASE group_set\n`;
|
|
2289
|
+
s += ` CASE group_set WHEN 99999 THEN NULL\n`;
|
|
2290
2290
|
for (let i = 0; i < fields.length; i++) {
|
|
2291
2291
|
if (fields[i].type === "string") {
|
|
2292
2292
|
s += ` WHEN ${i} THEN ${fields[i].expression}\n`;
|
|
@@ -2348,7 +2348,8 @@ class QueryQueryIndex extends QueryQuery {
|
|
|
2348
2348
|
f.fieldDef.structRelationship.type === "nested") &&
|
|
2349
2349
|
f.fieldDef.fields.length > 1 && // leave arrays in parent.
|
|
2350
2350
|
this.parent.dialect.dontUnionIndex === false) {
|
|
2351
|
-
|
|
2351
|
+
const key = f.getFullOutputName();
|
|
2352
|
+
this.fanPrefixMap[key] = [];
|
|
2352
2353
|
this.findFanPrefexes(f);
|
|
2353
2354
|
}
|
|
2354
2355
|
}
|