You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/12/07 18:04:00 UTC

[jira] [Commented] (SPARK-26307) Fix CTAS when INSERT a partitioned table using Hive serde

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