clickhouse-datasource icon indicating copy to clipboard operation
clickhouse-datasource copied to clipboard

Unable to render Tuple(Float64) if holding NaN or Inf

Open jirislav opened this issue 1 year ago • 1 comments

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

jirislav avatar Nov 07 '24 11:11 jirislav