Skip to content

Commit 198895d

Browse files
committed
Function rename and doc correction
1 parent f9a2fa0 commit 198895d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oracle-plugin/src/main/java/io/cdap/plugin/oracle/OracleSourceDBRecord.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,16 @@ private void handleOracleSpecificType(ResultSet resultSet, StructuredRecord.Buil
218218
// scale set in the logical schema. For example for value '77.12' if the scale set in the logical schema is
219219
// set to 4 then the number will change to '77.1200'. Also if the value is '22.1274' and the logical schema
220220
// scale is set to 2 then the decimal value used will be '22.13' after rounding.
221-
BigDecimal decimal = resultSet.getBigDecimal(columnIndex, getSchemaScale(field.getSchema()));
221+
BigDecimal decimal = resultSet.getBigDecimal(columnIndex, getScale(field.getSchema()));
222222
recordBuilder.setDecimal(field.getName(), decimal);
223223
}
224224
}
225225
}
226226

227227
/**
228-
* Get the schema scale set in Non-nullable schema associated with the schema
228+
* Get the scale set in Non-nullable schema associated with the schema
229229
* */
230-
private int getSchemaScale(Schema schema) {
230+
private int getScale(Schema schema) {
231231
return schema.isNullable() ? schema.getNonNullable().getScale() : schema.getScale();
232232
}
233233

0 commit comments

Comments
 (0)