Skip to content

[ClickHouse Compatibility] +/-Infinity values parsing #1185

@MaceWindu

Description

@MaceWindu

ClickHouse supports NaN, Infinity and -Infinity values for float/double types, which cannot be parsed by MySqlConnector here:

  • NaN value sent as"nan" and parsed successfully
  • Infinity and -Infinity sent as "inf" and "-inf" and result in FormatException

Describe the solution you'd like

Would be nice to support those two values (always or using some ClickHouse compatibility switch/connection string parameter).

I cannot find any information on float/double encoding in spec, probably looking at wrong place as I'm not familiar with it at all (https://dev.mysql.com/doc/internals/en/string.html)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions