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-50557][CONNECT][SQL] Support RuntimeConfig.contains(..) in Scala SQL Interface #49836

Closed
wants to merge 1 commit into from

Conversation

hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

This PR restores support for the contains(..) method in the org.apache.spark.sql.RuntimeConfig interface.

Why are the changes needed?

This method was used quite a lot in 3rd party libraries. We are adding it back to reduce friction.

Does this PR introduce any user-facing change?

No, technically this is an internal method :)...

How was this patch tested?

I added a test for Connect to the SessionE2ETestSuite

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

No.

@@ -99,6 +99,11 @@ abstract class RuntimeConfig {
*/
private[sql] def get[T](entry: ConfigEntry[T], default: T): T

/**
* Returns whether a particular key is set.
Copy link
Member

Choose a reason for hiding this comment

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

I think we should probably write a little bit more, e.g., if the configurations are known with default values, it will return true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am pretty sure it does not.

@hvanhovell
Copy link
Contributor Author

Merging to master/branch-4.0

@asfgit asfgit closed this in c9720af Feb 11, 2025
asfgit pushed a commit that referenced this pull request Feb 11, 2025
…la SQL Interface

### What changes were proposed in this pull request?
This PR restores support for the `contains(..)` method in the `org.apache.spark.sql.RuntimeConfig` interface.

### Why are the changes needed?
This method was used quite a lot in 3rd party libraries. We are adding it back to reduce friction.

### Does this PR introduce _any_ user-facing change?
No, technically this is an internal method :)...

### How was this patch tested?
I added a test for Connect to the `SessionE2ETestSuite`

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

Closes #49836 from hvanhovell/SPARK-50557.

Authored-by: Herman van Hovell <[email protected]>
Signed-off-by: Herman van Hovell <[email protected]>
(cherry picked from commit c9720af)
Signed-off-by: Herman van Hovell <[email protected]>
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