Skip to content

Conversation

@hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

Commit ea36116 moved most of the logic from the SessionState classes into an accompanying builder. This makes the existence of the HiveSessionState redundant. This PR removes the HiveSessionState.

How was this patch tested?

Existing tests.

@hvanhovell
Copy link
Contributor Author

cc @cloud-fan @gatorsmile

@cloud-fan
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Mar 28, 2017

Test build #75311 has finished for PR 17457 at commit aa56ff7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class SessionResourceLoader(session: SparkSession) extends FunctionResourceLoader
  • class HiveSessionResourceLoader(

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in f82461f Mar 28, 2017
*
* Note: this method seems not access any session state, but the subclass `HiveSessionState` needs
* to add the jar to its hive client for the current session. Hence, it still needs to be in
* [[SessionState]].
Copy link
Member

Choose a reason for hiding this comment

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

This comment needs an update.

@gatorsmile
Copy link
Member

A late LGTM. : )

@gatorsmile
Copy link
Member

Maybe it is time to clean up HiveMetastoreCatalog? Are you working on it?

""".stripMargin)

val expectedPath =
sessionState.catalog.hiveDefaultTableFilePath(TableIdentifier("ctasJsonTable"))
Copy link
Member

Choose a reason for hiding this comment

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

The function hiveDefaultTableFilePath can be removed.

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