Skip to content

Conversation

@gatorsmile
Copy link
Member

What changes were proposed in this pull request?

catalogTable is the native table metadata structure for Spark SQL. Thus, we should avoid using Hive's table metadata structure Table in our code base. This PR is to replace it.

How was this patch tested?

The existing test cases.

@SparkQA
Copy link

SparkQA commented Jan 28, 2017

Test build #72102 has started for PR 16726 at commit e9e7486.

@gatorsmile
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Jan 28, 2017

Test build #72108 has finished for PR 16726 at commit e9e7486.

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

@dongjoon-hyun
Copy link
Member

+1 for reducing the dependency!

@gatorsmile
Copy link
Member Author

cc @cloud-fan

Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove hiveQlTable now?

Copy link
Member Author

Choose a reason for hiding this comment

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

The whole test case for #14515 is not needed after the recent code refactoring.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me remove it.

@gatorsmile gatorsmile force-pushed the cleanupMetastoreRelation branch from e9e7486 to 75d8017 Compare February 20, 2017 07:20
case InsertIntoTable(r: MetastoreRelation, partition, query, overwrite, ifNotExists)
// Inserting into partitioned table is not supported in Parquet data source (yet).
if query.resolved && !r.hiveQlTable.isPartitioned && shouldConvertMetastoreParquet(r) =>
if query.resolved && !r.catalogTable.isPartitioned && shouldConvertToParquet(r) =>
Copy link
Member Author

Choose a reason for hiding this comment

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

Exceed 101 characters. Thus,,, rename it.

@SparkQA
Copy link

SparkQA commented Feb 20, 2017

Test build #73153 has started for PR 16726 at commit 75d8017.

@gatorsmile
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Feb 20, 2017

Test build #73179 has finished for PR 16726 at commit 75d8017.

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

@cloud-fan
Copy link
Contributor

can you hold it for a while? I'm removing the MetastoreRelation entirely.

@gatorsmile
Copy link
Member Author

Great!

@gatorsmile gatorsmile closed this Mar 6, 2017
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.

4 participants