[ https://issues.apache.org/jira/browse/SPARK-20951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuming Wang resolved SPARK-20951. --------------------------------- Resolution: Won't Fix > Built-in SQL Function FormatNumber should validate input value > -------------------------------------------------------------- > > Key: SPARK-20951 > URL: https://issues.apache.org/jira/browse/SPARK-20951 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 2.2.0 > Reporter: Yuming Wang > > Built-in SQL Function {{FormatNumber}} should validate input value, same as > Hive: > {code:sql} > hive> select format_number(12332.123456, -4); > FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments '4': > org.apache.hadoop.hive.ql.metadata.HiveException: Argument 2 of function > FORMAT_NUMBER must be >= 0, but "-4" was found > hive> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org