[ https://issues.apache.org/jira/browse/SPARK-34856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311508#comment-17311508 ]
Apache Spark commented on SPARK-34856: -------------------------------------- User 'gengliangwang' has created a pull request for this issue: https://github.com/apache/spark/pull/32004 > 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 > Priority: Major > Fix For: 3.2.0 > > > 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