Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Jun 24, 2016

What changes were proposed in this pull request?

This removes a check that partition names match from the Hive write path, which was added as a sanity check in SPARK-14459. The sanity check is incorrect because partitionBy could be used to explicitly set columns with names that don't match.

This is also no longer exercised because of changes in SPARK-16032. Now, Hive's partition metadata is derived from the table partitions during the analysis phase and will always match.

@SparkQA
Copy link

SparkQA commented Jun 24, 2016

Test build #61139 has finished for PR 13880 at commit 919f520.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

|Requested partitions: ${partition.keys.mkString(",")}
|Table partitions: ${table.partitionKeys.map(_.name).mkString(",")}""".stripMargin)
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user is using SQL, he/she can specify the partition columns. So, this check is still useful (considering that we do not allow to use DataFrameWriter's partitionBy and insertInto together)?

@rdblue rdblue closed this Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants