[ https://issues.apache.org/jira/browse/SPARK-41047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen updated SPARK-41047: --------------------------------- Priority: Trivial (was: Major) > Remove legacy example of round function with negative scale > ------------------------------------------------------------ > > Key: SPARK-41047 > URL: https://issues.apache.org/jira/browse/SPARK-41047 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 3.2.2 > Reporter: liyang > Assignee: BingKun Pan > Priority: Trivial > Fix For: 3.4.0 > > Attachments: image-2023-01-11-19-51-17-312.png > > > 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. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org