Sean Zhong created SPARK-16034:
----------------------------------

             Summary: 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: Bug
            Reporter: Sean Zhong


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

Reply via email to