Skip to content

Commit 24924ee

Browse files
committed
fix(service-analytics): name the qualifier in the refusal of a <cube>. measure spelling
Claude-Session: https://claude.ai/code/session_01DiCSbmJrkzNhuEAier4VoJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent e911b5b commit 24924ee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/services/service-analytics/src/analytics-service.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4071,7 +4071,9 @@ function measureNamesNoFieldError(
40714071
? `it aggregates the row wildcard '*' under '${type}', and only a count reads '*'`
40724072
: suffix
40734073
? `nothing precedes the suffix '${suffix}'`
4074-
: 'the spelling is empty';
4074+
: spelling.member === ''
4075+
? 'the spelling is empty'
4076+
: `nothing follows the '${spelling.cube}.' qualifier`;
40754077
const suffixes = INFERRED_MEASURE_SUFFIXES.map(([s]) => `'${s}'`).join(' / ');
40764078
return invalidMemberError(
40774079
`[Analytics] Measure '${spelling.member}' on cube '${spelling.cube}' names no field to ` +

0 commit comments

Comments
 (0)