clickhouse-datasource
clickhouse-datasource copied to clipboard
Unable to render Tuple(Float64) if holding NaN or Inf
What happened:
When querying dataset containing column of Float64/32 type nested in a Tuple, the query fails in case the value is NaN/Inf with the error:
json: unsupported value: NaN: Could not process SQL results
json: unsupported value: +Inf: Could not process SQL results
How to reproduce it:
Reproducible query within the datasource:
SELECT tuple(NaN)
SELECT tuple(Inf)
SELECT tuple(-Inf)
It works as expected when not in a tuple:
SELECT NaN, Inf, -Inf