diff --git a/oracle-plugin/src/main/java/io/cdap/plugin/oracle/OracleSourceDBRecord.java b/oracle-plugin/src/main/java/io/cdap/plugin/oracle/OracleSourceDBRecord.java index 8748af5fb..1520ac394 100644 --- a/oracle-plugin/src/main/java/io/cdap/plugin/oracle/OracleSourceDBRecord.java +++ b/oracle-plugin/src/main/java/io/cdap/plugin/oracle/OracleSourceDBRecord.java @@ -212,7 +212,7 @@ private void handleOracleSpecificType(ResultSet resultSet, StructuredRecord.Buil // This is the only way to differentiate FLOAT/REAL columns from other numeric columns, that based on NUMBER. // Since FLOAT is a subtype of the NUMBER data type, 'getColumnType' and 'getColumnTypeName' can not be used. if (Double.class.getTypeName().equals(resultSet.getMetaData().getColumnClassName(columnIndex))) { - recordBuilder.setDecimal(field.getName(), BigDecimal.valueOf(resultSet.getDouble(columnIndex))); + recordBuilder.set(field.getName(), resultSet.getDouble(columnIndex)); } else { // For a Number type without specified precision and scale, precision will be 0 and scale will be -127 if (precision == 0) {