Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
the-other-tim-brown committed Jan 6, 2025
1 parent 02842b1 commit cec320f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ private static Object castObjectToInternalType(Object value, InternalSchema sche
}

private static BigDecimal numberTypeToBigDecimal(Object value, InternalSchema schema) {
// BigDecimal is parsed by converting the value to a string and setting the proper scale and precision.
// BigDecimal is parsed by converting the value to a string and setting the proper scale and
// precision.
int precision = (int) schema.getMetadata().get(InternalSchema.MetadataKey.DECIMAL_PRECISION);
int scale = (int) schema.getMetadata().get(InternalSchema.MetadataKey.DECIMAL_SCALE);
return new BigDecimal(String.valueOf(value), new MathContext(precision))
Expand Down

0 comments on commit cec320f

Please sign in to comment.