@malloydata/malloy 0.0.121 → 0.0.122-dev240203152115
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.
|
@@ -1266,15 +1266,13 @@ class FieldInstanceResultRoot extends FieldInstanceResult {
|
|
|
1266
1266
|
// users -> {
|
|
1267
1267
|
// group_by: user_id
|
|
1268
1268
|
// aggregate: order_count is orders.count()
|
|
1269
|
-
if (
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
else if (!join.leafiest &&
|
|
1277
|
-
join.uniqueKeyPossibleUses.hasAsymetricFunctions()) {
|
|
1269
|
+
if (
|
|
1270
|
+
// we have a leafiest count() joined subtree
|
|
1271
|
+
(join.leafiest &&
|
|
1272
|
+
join.parent !== undefined &&
|
|
1273
|
+
join.uniqueKeyPossibleUses.has('count')) ||
|
|
1274
|
+
// or not leafiest and we use an asymetric function
|
|
1275
|
+
(!join.leafiest && join.uniqueKeyPossibleUses.hasAsymetricFunctions())) {
|
|
1278
1276
|
let j = join;
|
|
1279
1277
|
while (j) {
|
|
1280
1278
|
if (!j.queryStruct.primaryKey()) {
|