[ 
https://issues.apache.org/jira/browse/SPARK-26307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16713140#comment-16713140
 ] 

Apache Spark commented on SPARK-26307:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/23255

> Fix CTAS when INSERT a partitioned table using Hive serde
> ---------------------------------------------------------
>
>                 Key: SPARK-26307
>                 URL: https://issues.apache.org/jira/browse/SPARK-26307
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.2, 2.4.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>            Priority: Major
>
> {code:java}
>     withTable("hive_test") {
>       withSQLConf(
>           "hive.exec.dynamic.partition.mode" -> "nonstrict") {
>         val df = Seq(("a", 100)).toDF("part", "id")
>         df.write.format("hive").partitionBy("part")
>           .mode("overwrite").saveAsTable("hive_test")
>         df.write.format("hive").partitionBy("part")
>           .mode("append").saveAsTable("hive_test")
>       }
>     }{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to