Gengliang Wang created SPARK-34856:
--------------------------------------

             Summary: ANSI mode: Allow casting complex types as string type
                 Key: SPARK-34856
                 URL: https://issues.apache.org/jira/browse/SPARK-34856
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: Gengliang Wang
            Assignee: Gengliang Wang


Currently, complex types are not allowed to cast as string type. This breaks 
the Dataset.show() API. E.g

{code:java}
scala> sql(“select array(1, 2, 2)“).show(false)
org.apache.spark.sql.AnalysisException: cannot resolve ‘CAST(`array(1, 2, 2)` 
AS STRING)’ due to data type mismatch:
 cannot cast array<int> to string with ANSI mode on.
{code}




--
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

Reply via email to