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-49418][CONNECT][SQL] Shared Session Thread Locals #48374

Closed
wants to merge 5 commits into from

Conversation

hvanhovell
Copy link
Contributor

@hvanhovell hvanhovell commented Oct 7, 2024

What changes were proposed in this pull request?

This PR adds interfaces for SparkSession Thread Locals.

Why are the changes needed?

We are creating a unified Spark SQL Scala interface. This is part of that effort.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

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

No.

@@ -113,7 +114,7 @@ class SparkSessionSuite extends ConnectFunSuite {
SparkSession.clearActiveSession()
assert(SparkSession.getDefaultSession.isEmpty)
assert(SparkSession.getActiveSession.isEmpty)
intercept[IllegalStateException](SparkSession.active)
intercept[SparkException](SparkSession.active)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is technically a behavior change.

@hvanhovell
Copy link
Contributor Author

Merging to master

@asfgit asfgit closed this in b565a8d Oct 9, 2024
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### What changes were proposed in this pull request?
This PR adds interfaces for SparkSession Thread Locals.

### Why are the changes needed?
We are creating a unified Spark SQL Scala interface. This is part of that effort.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing tests.

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

Closes apache#48374 from hvanhovell/SPARK-49418.

Authored-by: Herman van Hovell <herman@databricks.com>
Signed-off-by: Herman van Hovell <herman@databricks.com>
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.

2 participants