You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2019/08/01 23:04:00 UTC

[jira] [Resolved] (SPARK-28521) Fix error message for built-in functions

     [ https://issues.apache.org/jira/browse/SPARK-28521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-28521.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 25261
[https://github.com/apache/spark/pull/25261]

> Fix error message for built-in functions
> ----------------------------------------
>
>                 Key: SPARK-28521
>                 URL: https://issues.apache.org/jira/browse/SPARK-28521
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.3
>            Reporter: Yuming Wang
>            Assignee: Yuming Wang
>            Priority: Major
>             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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org