You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/06/21 07:15:00 UTC

[jira] [Assigned] (SPARK-32042) Support UTF8String literals

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

Apache Spark reassigned SPARK-32042:
------------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>            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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org