Skip to content

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