[ https://issues.apache.org/jira/browse/SPARK-28521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated SPARK-28521: ------------------------------ Priority: Minor (was: Major) Issue Type: Improvement (was: Bug) > Fix error message for built-in functions > ---------------------------------------- > > Key: SPARK-28521 > URL: https://issues.apache.org/jira/browse/SPARK-28521 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.4.3 > Reporter: Yuming Wang > Assignee: Yuming Wang > Priority: Minor > Fix For: 3.0.0 > > > {noformat} > spark-sql> select cast(1); > 19/07/26 00:54:17 ERROR SparkSQLDriver: Failed in [select cast(1)] > java.lang.UnsupportedOperationException: empty.init > at > scala.collection.TraversableLike$class.init(TraversableLike.scala:451) > at > scala.collection.mutable.ArrayOps$ofInt.scala$collection$IndexedSeqOptimized$$super$init(ArrayOps.scala:234) > at > scala.collection.IndexedSeqOptimized$class.init(IndexedSeqOptimized.scala:135) > at scala.collection.mutable.ArrayOps$ofInt.init(ArrayOps.scala:234) > at > org.apache.spark.sql.catalyst.analysis.FunctionRegistry$$anonfun$7$$anonfun$11.apply(FunctionRegistry.scala:565) > at > org.apache.spark.sql.catalyst.analysis.FunctionRegistry$$anonfun$7$$anonfun$11.apply(FunctionRegistry.scala:558) > at scala.Option.getOrElse(Option.scala:121) > {noformat} -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org