[ 
https://issues.apache.org/jira/browse/SPARK-32042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17141327#comment-17141327
 ] 

Apache Spark commented on SPARK-32042:
--------------------------------------

User 'wangyum' has created a pull request for this issue:
https://github.com/apache/spark/pull/28883

> Support UTF8String literals
> ---------------------------
>
>                 Key: SPARK-32042
>                 URL: https://issues.apache.org/jira/browse/SPARK-32042
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> How to reproduce this issue:
> {code:scala}
> val min = spark.sql("select min(concat('a', id)) from 
> range(10)").queryExecution.executedPlan.executeCollect().head
> assert(Literal(min.get(0, StringType)) === Literal("a0"))
> {code}
> {noformat}
> Unsupported literal type class org.apache.spark.unsafe.types.UTF8String a0
> java.lang.RuntimeException: Unsupported literal type class 
> org.apache.spark.unsafe.types.UTF8String a0
>       at 
> org.apache.spark.sql.catalyst.expressions.Literal$.apply(literals.scala:89)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to