You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sun BiaoBiao (Jira)" <ji...@apache.org> on 2021/07/03 03:42:00 UTC

[jira] [Created] (SPARK-36005) in spark3.1.2 version The canCast method of type of char/varchar needs to be consistent with StringType

Sun BiaoBiao created SPARK-36005:
------------------------------------

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