Skip to content

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Oct 10, 2018

What changes were proposed in this pull request?

This is a follow-up pr of #18536 and #22545 to update the migration guide.

How was this patch tested?

Build and check the doc locally.

@ueshin
Copy link
Member Author

ueshin commented Oct 10, 2018

cc @gatorsmile @HyukjinKwon

@SparkQA
Copy link

SparkQA commented Oct 10, 2018

Test build #97186 has finished for PR 22682 at commit 3bf42af.

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


## Upgrading From Spark SQL 2.4 to 3.0

- In PySpark, when creating a `SparkSession` with `SparkSession.builder.getOrCreate()`, if there is an existing `SparkContext`, the builder was trying to update the `SparkConf` of the existing `SparkContext` with configurations specified to the builder, but the `SparkContext` is shared by all `SparkSession`s, so we should not update them. Since 3.0, the builder come to not update the configurations. If you want to update them, you need to update them prior to creating a `SparkSession`.
Copy link
Contributor

Choose a reason for hiding this comment

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

let's also mention that, this is already the behavior for Spark java/scala APIs.

@SparkQA
Copy link

SparkQA commented Oct 10, 2018

Test build #97190 has finished for PR 22682 at commit dafbd2e.

  • 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 3caab87 Oct 10, 2018
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## What changes were proposed in this pull request?

This is a follow-up pr of apache#18536 and apache#22545 to update the migration guide.

## How was this patch tested?

Build and check the doc locally.

Closes apache#22682 from ueshin/issues/SPARK-20946_25525/migration_guide.

Authored-by: Takuya UESHIN <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
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.

3 participants