Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calcite java.lang.Float cannot be cast to class java.lang.Double #93

Open
huukhuongnguyen opened this issue Feb 17, 2023 · 2 comments
Open

Comments

@huukhuongnguyen
Copy link

class java.lang.Float cannot be cast to class java.lang.Double (java.lang.Float and java.lang.Double are in module java.base of loader 'bootstrap')
at org.apache.calcite.avatica.util.AbstractCursor$DoubleAccessor.getDouble(AbstractCursor.java:634)
at org.apache.calcite.avatica.util.AbstractCursor$AccessorImpl.getFloat(AbstractCursor.java:325)
at org.apache.calcite.avatica.AvaticaResultSet.getFloat(AvaticaResultSet.java:265)

@twdsilva
Copy link
Contributor

Thanks for the JIRA @huukhuongnguyen, can you please post how to reproduce the exception you are seeing?

@huukhuongnguyen
Copy link
Author

Thanks for the JIRA @huukhuongnguyen, can you please post how to reproduce the exception you are seeing?

I encountered the above situation when used a simple select in a float variable in the kudu table., but change double variable it's ok. Maybe I used something wrong
String jdbcURL = String.format(JDBCUtil.CALCITE_MODEL_TEMPLATE,DefaultKuduSchemaFactory.class.getName(),stringurl);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants