From cec320f4c6fbe3226435fabf182545caf88971c9 Mon Sep 17 00:00:00 2001 From: Timothy Brown Date: Mon, 6 Jan 2025 16:56:57 -0600 Subject: [PATCH] spotless --- .../main/java/org/apache/xtable/delta/DeltaValueConverter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xtable-core/src/main/java/org/apache/xtable/delta/DeltaValueConverter.java b/xtable-core/src/main/java/org/apache/xtable/delta/DeltaValueConverter.java index 10378860..5eea1faa 100644 --- a/xtable-core/src/main/java/org/apache/xtable/delta/DeltaValueConverter.java +++ b/xtable-core/src/main/java/org/apache/xtable/delta/DeltaValueConverter.java @@ -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))