Transformations: Include other counts as numbers when assessing field types (#102109)
Distinct count and change count should also always be numbers
This commit is contained in:
@@ -132,7 +132,7 @@ export enum ReducerID {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getFieldTypeForReducer(id: ReducerID, fallback: FieldType): FieldType {
|
export function getFieldTypeForReducer(id: ReducerID, fallback: FieldType): FieldType {
|
||||||
return id === ReducerID.count
|
return id === ReducerID.count || id === ReducerID.distinctCount || id === ReducerID.changeCount
|
||||||
? FieldType.number
|
? FieldType.number
|
||||||
: id === ReducerID.allIsNull || id === ReducerID.allIsZero
|
: id === ReducerID.allIsNull || id === ReducerID.allIsZero
|
||||||
? FieldType.boolean
|
? FieldType.boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user