From ec4f7902925033d0f4f0c95cdc118636025b161e Mon Sep 17 00:00:00 2001 From: Michael Toy <66150587+mtoy-googly-moogly@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:17:14 -0800 Subject: [PATCH] don't look for records in the wrong places --- packages/malloy/src/model/malloy_query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/malloy/src/model/malloy_query.ts b/packages/malloy/src/model/malloy_query.ts index 1337dafc6..cc47f3180 100644 --- a/packages/malloy/src/model/malloy_query.ts +++ b/packages/malloy/src/model/malloy_query.ts @@ -2401,7 +2401,7 @@ class QueryQuery extends QueryField { findRecordAliases(context: QueryStruct, path: string[]) { for (const seg of path) { - const field = context.getDimensionOrMeasureByName([seg]); + const field = context.getFieldByName([seg]); if (field instanceof QueryFieldStruct) { const qs = field.queryStruct; if (