You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2016/06/18 17:43:05 UTC

[jira] [Resolved] (SPARK-16034) Checks the partition columns when calling dataFrame.write.mode("append").saveAsTable

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

Yin Huai resolved SPARK-16034.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

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

> Checks the partition columns when calling dataFrame.write.mode("append").saveAsTable
> ------------------------------------------------------------------------------------
>
>                 Key: SPARK-16034
>                 URL: https://issues.apache.org/jira/browse/SPARK-16034
>             Project: Spark
>          Issue Type: Sub-task
>            Reporter: Sean Zhong
>            Assignee: Sean Zhong
>             Fix For: 2.0.0
>
>
> Suppose we have defined a partitioned table:
> {code}
> CREATE TABLE src (a INT, b INT, c INT)
> USING PARQUET
> PARTITIONED BY (a, b);
> {code}
> We should check the partition columns when appending DataFrame data to existing table: 
> {code}
> val df = Seq((1, 2, 3)).toDF("a", "b", "c")
> df.write.partitionBy("b", "a").mode("append").saveAsTable("src")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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