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

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

Yuming Wang created SPARK-32042:
-----------------------------------

             Summary: Support UTF8String literals
                 Key: SPARK-32042
                 URL: https://issues.apache.org/jira/browse/SPARK-32042
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.1.0
            Reporter: Yuming Wang


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