Open kgpai opened 7 months ago
Shall we just throw exception if input contains NaN? There is no well defined order for NaN so there is no way to get a percentile that makes sense if input contains NaN.
Another way is implicitly treat NaN same as NULL. But I feel it should be left to user to do the conversion explicitly.
A third way is returning NaN in this case. We can check if Presto Java is taking this path.
@Yuhta I will validate against Presto behavior and let you know
I think this is another NaN behavior problem, CC: @bikramSingh91
Description
When running with Nan/Inf support in fuzzer approx_percentile seems to fail with following error . PR : https://github.com/facebookincubator/velox/pull/8732 .
Error Reproduction
Try seed : 46435304 in Aggregation fuzzer against the linked PR above.
Relevant logs