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)