Skip to content

[MINOR][DOCS] Use SparkSession.builder.getOrCreate() over the deprecated build()#47781

Closed
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:replace-deprecated-method
Closed

[MINOR][DOCS] Use SparkSession.builder.getOrCreate() over the deprecated build()#47781
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:replace-deprecated-method

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR replaces SparkSession.builder.build() with SparkSession.builder.getOrCreate()in Spark Connect overview documentation.

Why are the changes needed?

To avoid encouraging users to use deprecated methods.

Does this PR introduce any user-facing change?

Yes, it guides users to use non-deprecated method.

How was this patch tested?

Manually checked via Markdown editor.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the DOCS label Aug 16, 2024
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@HyukjinKwon
Copy link
Member Author

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants