Spark has the following check:
if (scale > precision) { throw new AnalysisException( s"Decimal scale ($scale) cannot be greater than precision ($precision).") }
In these cases set the precision to the same value as the scale.
- duplicates
-
SPARK-142 0.00000 is not saved right as NumberDecimal. Decimal scale (12) cannot be greater than precision (1).;
- Closed