[release-11.6.2] Transformations: Include other counts as numbers when assessing field types (#105700)

Transformations: Include other counts as numbers when assessing field types (#102109)

Distinct count and change count should also always be numbers

(cherry picked from commit 2bbd5faf6d)
pull/105773/head
Kristina 1 month ago committed by GitHub
parent dfdc748ef3
commit 3fe0e60c69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-data/src/transformations/fieldReducer.ts

@ -132,7 +132,7 @@ export enum ReducerID {
}
export function getFieldTypeForReducer(id: ReducerID, fallback: FieldType): FieldType {
return id === ReducerID.count
return id === ReducerID.count || id === ReducerID.distinctCount || id === ReducerID.changeCount
? FieldType.number
: id === ReducerID.allIsNull || id === ReducerID.allIsZero
? FieldType.boolean

Loading…
Cancel
Save