Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Druid adapter wrongly returns all numeric values as int or float. If the JDBC driver is expecting long or double, gets a ClassCastException:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long at org.apache.calcite.avatica.util.AbstractCursor$LongAccessor.getLong(AbstractCursor.java:539) at org.apache.calcite.avatica.util.AbstractCursor$AccessorImpl.getInt(AbstractCursor.java:304) at org.apache.calcite.avatica.AvaticaResultSet.getInt(AvaticaResultSet.java:252) at org.apache.calcite.test.DruidAdapterIT$2.apply(DruidAdapterIT.java:210)