Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-16389] [SQL] Remove MetastoreRelation from SparkHiveWriterContainer and SparkHiveDynamicPartitionWriterContainer #14062

Closed
wants to merge 1 commit into from

Conversation

gatorsmile
Copy link
Member

@gatorsmile gatorsmile commented Jul 6, 2016

What changes were proposed in this pull request?

  • Remove useless MetastoreRelation from the signature of SparkHiveWriterContainer and SparkHiveDynamicPartitionWriterContainer.
  • Avoid unnecessary metadata retrieval using Hive client in InsertIntoHiveTable.

How was this patch tested?

Existing test cases already cover it.

@@ -274,13 +270,13 @@ case class InsertIntoHiveTable(
// scalastyle:on
val oldPart =
client.getPartitionOption(
client.getTable(table.databaseName, table.tableName),
Copy link
Member Author

@gatorsmile gatorsmile Jul 6, 2016

Choose a reason for hiding this comment

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

This is the unnecessary getTable call

@SparkQA
Copy link

SparkQA commented Jul 6, 2016

Test build #61803 has finished for PR 14062 at commit ccc26c9.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in ec18cd0 Jul 6, 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