Skip to content

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

@jirislav

Description

@jirislav

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Incoming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions