@malloydata/render 0.0.121-dev240202151212 → 0.0.121-dev240202151833
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.
|
@@ -5888,7 +5888,7 @@ ${(0, utils_1.indent)(sql)})
|
|
|
5888
5888
|
}
|
|
5889
5889
|
for (const [_name, join3] of this.joins) {
|
|
5890
5890
|
if (join3.leafiest) {
|
|
5891
|
-
if (join3.parent !==
|
|
5891
|
+
if (join3.parent !== void 0 && join3.uniqueKeyPossibleUses.has("count") && !join3.queryStruct.primaryKey()) {
|
|
5892
5892
|
join3.makeUniqueKey = true;
|
|
5893
5893
|
}
|
|
5894
5894
|
} else if (!join3.leafiest && join3.uniqueKeyPossibleUses.hasAsymetricFunctions()) {
|
|
@@ -63861,13 +63861,6 @@ QUERY: ${(0, util_1.inspect)(opDesc, { breakLength: 72, depth: Infinity })}`);
|
|
|
63861
63861
|
throw new Error("Expected field to have definition");
|
|
63862
63862
|
}
|
|
63863
63863
|
if ((0, malloy_types_1.isAtomicFieldType)(fieldDef.type)) {
|
|
63864
|
-
if (!this.inExperiment("scalar_lenses", true)) {
|
|
63865
|
-
if (forRefinement) {
|
|
63866
|
-
this.reference.log(`Cannot use scalar field \`${this.reference.refString}\` as a refinement; use \`scalar_lenses\` experiment to enable this behavior`);
|
|
63867
|
-
} else {
|
|
63868
|
-
this.reference.log(`Cannot use scalar field \`${this.reference.refString}\` as a view; use \`scalar_lenses\` experiment to enable this behavior`);
|
|
63869
|
-
}
|
|
63870
|
-
}
|
|
63871
63864
|
const newSegment = {
|
|
63872
63865
|
type: "reduce",
|
|
63873
63866
|
queryFields: [this.reference.refToField]
|