Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jirislav opened this issue Nov 7, 2024 · 1 comment
Open

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

jirislav opened this issue Nov 7, 2024 · 1 comment
Labels
datasource/ClickHouse type/bug Something isn't working

Comments

@jirislav
Copy link

jirislav commented Nov 7, 2024

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 jirislav added datasource/ClickHouse type/bug Something isn't working labels Nov 7, 2024
@SpencerTorres
Copy link
Collaborator

Thanks for submitting this issue. It's possible the tuple is being interpreted as JSON and failing to convert in the Go backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/ClickHouse type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants