Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR proposes to use SparkSession at SQLImplicits.

Why are the changes needed?

To use SparkSsession that is encouraged over SQLContext.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI in this PR should test them out.

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

No.

@github-actions github-actions bot added the SQL label Jul 2, 2024
@github-actions github-actions bot added the MLLIB label Jul 2, 2024
@github-actions github-actions bot added the BUILD label Jul 2, 2024
@HyukjinKwon HyukjinKwon changed the title [MINOR][SQL] Use SparkSession in SQLImplicits [SPARK-48774][SQL] Use SparkSession in SQLImplicits Jul 2, 2024
@pan3793
Copy link
Member

pan3793 commented Jul 2, 2024

What do you think about this one? #45727 (comment)

@HyukjinKwon
Copy link
Member Author

I think we can add a new API, and deprecate old ones

@pan3793
Copy link
Member

pan3793 commented Jul 2, 2024

I think we can add a new API, and deprecate old ones

To clarify, SPARK-46575 applies to 4.0, so it can be changed directly.

@HyukjinKwon
Copy link
Member Author

API seems from 3.5.2 #45727? I think it's safer to just deprecate and add a new one in 4.0

@pan3793
Copy link
Member

pan3793 commented Jul 2, 2024

API seems from 3.5.2 #45727? I think it's safer to just deprecate and add a new one in 4.0

Only 4.0.0, see #45737

@HyukjinKwon
Copy link
Member Author

We could add. What I am not sure is that this is matched with exiting API startWithContext, and this adds an overloaded one. Why don't we just add a new one?

@HyukjinKwon HyukjinKwon force-pushed the minor-implicit-session branch from f761b39 to 84cb6f5 Compare July 2, 2024 10:23
@pan3793
Copy link
Member

pan3793 commented Jul 2, 2024

For STS SQLContext replacement, I opened #47176, let's discuss there.

Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants