@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 (join.leafiest) {
1270
- if (join.parent !== undefined &&
1271
- join.uniqueKeyPossibleUses.has('count') &&
1272
- !join.queryStruct.primaryKey()) {
1273
- join.makeUniqueKey = true;
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()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.121",
3
+ "version": "0.0.122-dev240203152115",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",