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:
Yuri Tseretyan
2023-01-20 09:53:03 -05:00
committed by GitHub
parent d0cf7ff8e9
commit c0913ce718
5 changed files with 141 additions and 1 deletions
+4
View File
@@ -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?
}