You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/08/09 09:19:00 UTC

[jira] [Resolved] (SPARK-36271) Hive SerDe and V1 Insert data to parquet/orc/avro need to check schema too

     [ https://issues.apache.org/jira/browse/SPARK-36271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-36271.
---------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

Issue resolved by pull request 33566
[https://github.com/apache/spark/pull/33566]

> Hive SerDe and V1 Insert data to parquet/orc/avro need to check schema too
> --------------------------------------------------------------------------
>
>                 Key: SPARK-36271
>                 URL: https://issues.apache.org/jira/browse/SPARK-36271
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: angerszhu
>            Assignee: angerszhu
>            Priority: Major
>             Fix For: 3.2.0
>
>         Attachments: screenshot-1.png
>
>
> {code:java}
> withTempPath { path =>
>         spark.sql(
>           s"""
>              |SELECT
>              |NAMED_STRUCT('ID', ID, 'IF(ID=1,ID,0)', IF(ID=1,ID,0), 'B', ABS(ID)) AS col1
>              |FROM v
>                """.stripMargin).write.mode(SaveMode.Overwrite).parquet(path.getCanonicalPath)
>       }
> {code}
> !screenshot-1.png|width=1302,height=176!



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