Anton Antonenko created CALCITE-4589: ----------------------------------------
Summary: 'Infinity' float values fails with java.lang.ClassCastException Key: CALCITE-4589 URL: https://issues.apache.org/jira/browse/CALCITE-4589 Project: Calcite Issue Type: Bug Components: jdbc-driver Affects Versions: 1.17.0 Reporter: Anton Antonenko We're using avatica JDBC driver for obtaining data from Apache Druid. We have a float column that has an 'Infinity' value. {{{"Right":"Infinity"} }}{{{"Right":0} \{"Right":0.02} \{"Right":0.031} \{"Right":0.051} \{"Right":0.053} \{"Right":0.054} \{"Right":0.058} \{"Right":0.063} \{"Right":0.066}}} {{It fails with the following exception:}} {{ Caused by: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap')Caused by: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap') at org.apache.calcite.avatica.util.AbstractCursor$NumberAccessor.getNumber(AbstractCursor.java:722) ~[avatica-1.17.0.jar:1.17.0] at org.apache.calcite.avatica.util.AbstractCursor$BigNumberAccessor.getFloat(AbstractCursor.java:653) ~[avatica-1.17.0.jar:1.17.0] at org.apache.calcite.avatica.AvaticaResultSet.getFloat(AvaticaResultSet.java:263) ~[avatica-1.17.0.jar:1.17.0]}} -- This message was sent by Atlassian Jira (v8.3.4#803005)