[ https://issues.apache.org/jira/browse/SPARK-36005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-36005: ------------------------------------ Assignee: Apache Spark > in spark3.1.2 version The canCast method of type of char/varchar needs to be > consistent with StringType > ------------------------------------------------------------------------------------------------------- > > Key: SPARK-36005 > URL: https://issues.apache.org/jira/browse/SPARK-36005 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.1.2 > Reporter: Sun BiaoBiao > Assignee: Apache Spark > Priority: Major > Fix For: 3.1.3 > > > In https://github.com/apache/spark/pull/32109 this pr, we introduced the > char/varchar type, > As described in this issue: > To be safe, this PR doesn't add char/varchar type to the query > engine(expression input check, internal row framework, codegen framework, > etc.). We will replace char/varchar type by string type with metadata > (Attribute.metadata or StructField.metadata) that includes the original type > string before it goes into the query engine. That said, the existing code > will not see char/varchar type but only string type. > so The canCast method of type of char/varchar needs to be consistent with > StringType -- 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