@Override protected Object convertDecimal(Column column, Field fieldDefn, Object data) { if (data instanceof NUMBER) { try { data = ((NUMBER)data).bigDecimalValue(); } catch (SQLException e) { throw new RuntimeException("Couldn't convert value for column " + column.name(), e); } } // adjust scale to column's scale if the column's scale is larger than the one from // the value (e.g. 4.4444 -> 4.444400) if (data instanceof BigDecimal) { data = withScaleAdjustedIfNeeded(column, (BigDecimal) data); } return super.convertDecimal(column, fieldDefn, data); }