You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(spec,analytics): AnalyticsResult.fields[].builtinAggregate discriminator for built-in default measures (#14492) (#15017)
`AnalyticsResult.fields[]` gains an optional `builtinAggregate` carrying the
closed `AggregationFunction` vocabulary (count | sum | avg | min | max |
count_distinct); `AnalyticsResultResponseSchema` mirrors it. The producer
(`queryDataset`'s measure enrichment) sets it from the dataset measure's own
`aggregate` exactly when the measure has NO authored `label` — the header a
renderer draws for it is then the server's built-in default, not an author's
text, so an i18n-aware consumer may substitute its own localized name. The
`dataset` create seed drops its hardcoded `label: 'Count'` so a Studio-created
dataset is a built-in default on the wire rather than an authored English
literal. Authored labels (string or locale map) never carry the field.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
feat(spec,analytics): `AnalyticsResult.fields[].builtinAggregate` — a closed discriminator for a measure column whose display name is the server's built-in default (#14492)
7
+
8
+
**What a consumer sees.**`queryDataset()` (and `POST /api/v1/analytics/dataset/query`,
9
+
which relays the result verbatim) now carries an optional
0 commit comments