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-23826] [TEST] TestHiveSparkSession should set default session #20969

Closed
wants to merge 2 commits into from

Conversation

gatorsmile
Copy link
Member

What changes were proposed in this pull request?

In TestHive, the base spark session does this in getOrCreate(), we emulate that behavior for tests.

How was this patch tested?

N/A

@SparkQA
Copy link

SparkQA commented Apr 3, 2018

Test build #88852 has finished for PR 20969 at commit 228730b.

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

@gatorsmile
Copy link
Member Author

@jose-torres
Copy link
Contributor

lgtm

// The base spark session does this in getOrCreate(), here we emulate that behavior for tests.
if (SparkSession.getDefaultSession.isEmpty) {
SparkSession.setDefaultSession(this)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not needed after we merge #20927

@SparkQA
Copy link

SparkQA commented Apr 4, 2018

Test build #88872 has finished for PR 20969 at commit f7e0b03.

  • 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 16ef6ba Apr 4, 2018
robert3005 pushed a commit to palantir/spark that referenced this pull request Apr 4, 2018
## What changes were proposed in this pull request?
In TestHive, the base spark session does this in getOrCreate(), we emulate that behavior for tests.

## How was this patch tested?
N/A

Author: gatorsmile <[email protected]>

Closes apache#20969 from gatorsmile/setDefault.
mshtelma pushed a commit to mshtelma/spark that referenced this pull request Apr 5, 2018
## What changes were proposed in this pull request?
In TestHive, the base spark session does this in getOrCreate(), we emulate that behavior for tests.

## How was this patch tested?
N/A

Author: gatorsmile <[email protected]>

Closes apache#20969 from gatorsmile/setDefault.
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