Skip to content

Conversation

@gatorsmile
Copy link
Member

@gatorsmile gatorsmile commented Mar 30, 2017

What changes were proposed in this pull request?

ParquetConversions and OrcConversions should be treated as regular Analyzer rules. It is not reasonable to be part of HiveSessionCatalog. This PR also combines two rules ParquetConversions and OrcConversions to build a new rule RelationConversions .

After moving these two rules out of HiveSessionCatalog, the next step is to clean up, rename and move HiveMetastoreCatalog because it is not related to the hive package any more.

How was this patch tested?

The existing test cases

@gatorsmile
Copy link
Member Author

cc @cloud-fan @hvanhovell

* When scanning or writing to non-partitioned Metastore Parquet tables, convert them to Parquet
* data source relations for better performance.
*/
case class ParquetConversions(sparkSession: SparkSession) extends Rule[LogicalPlan] {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we pass the conf & the HiveSessionCatalog as parameters? This should be doable with the builder, and saves you from doing casting later-on

Copy link
Contributor

Choose a reason for hiding this comment

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

It might also be worth out while to create a common ancestor for these two classes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great! Let me combine them. :)

@SparkQA
Copy link

SparkQA commented Mar 30, 2017

Test build #75397 has finished for PR 17484 at commit 17b4be4.

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

@SparkQA
Copy link

SparkQA commented Mar 30, 2017

Test build #75401 has finished for PR 17484 at commit a9a388e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class RelationConversions(

@cloud-fan
Copy link
Contributor

LGTM, merging to master!

@asfgit asfgit closed this in b2349e6 Mar 31, 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