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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org