Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.2.2
-
None
Description
Run this sql in spark-sql: select round(1.233, -1);
Error: org.apache.spark.sql.AnalysisException: Negative scale is not allowed: -1. You can use spark.sql.legacy.allowNegativeScaleOfDecimal=true to enable legacy mode to allow it.;
But the document of round function implies that negative scale argument is allowed.