Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
jdbc-3.0.0, jdbc-3.1.0
-
None
-
All current versions of flinks-jdbc-connector
Description
create oracle table contain float field and execute sql occurred error.
java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Float
Locate the cause of the error:
org/apache/flink/connector/jdbc/converter/AbstractJdbcRowConverter.java
Object field = resultSet.getObject(pos + 1);
this method for oracle jdbc produce bug.
expect:float value
actual: bigdecimal value
Suggest this modification:
Object field =
resultSet.getObject(pos + 1, rowType.getTypeAt(pos).getDefaultConversion());
Specify the type explicitly according to the schema.but mock test case is error.Let's talk about it and see what we can do about it.
Attachments
Attachments
Issue Links
- links to