SSE: Fix math expression to support NoData results (#61721)
* update perFloat to support NoData * update union to correctly handle no-data
This commit is contained in:
@@ -229,6 +229,8 @@ func perFloat(e *State, val Value, floatF func(x float64) float64) (Value, error
|
||||
newSeries.SetPoint(i, t, &nF)
|
||||
}
|
||||
newVal = newSeries
|
||||
case parse.TypeNoData:
|
||||
newVal = NewNoData()
|
||||
default:
|
||||
// TODO: Should we deal with TypeString, TypeVariantSet?
|
||||
}
|
||||
@@ -258,6 +260,8 @@ func perNullableFloat(e *State, val Value, floatF func(x *float64) *float64) (Va
|
||||
newSeries.SetPoint(i, t, floatF(f))
|
||||
}
|
||||
newVal = newSeries
|
||||
case parse.TypeNoData:
|
||||
newVal = NewNoData()
|
||||
default:
|
||||
// TODO: Should we deal with TypeString, TypeVariantSet?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user