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-51192][CONNECT] Expose processWithoutResponseObserverForTesting in SparkConnectPlanner #49921

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vicennial
Copy link
Contributor

What changes were proposed in this pull request?

Adds a new processWithoutResponseObserverForTesting private-package method scoped to planner. This method is called by SparkConnectPlannerTestUtils#transform.

Why are the changes needed?

#47816 attempted to move MockObserver into source code to address compilation errors when open-source libraries attempt to test their command plugin extensions via the SparkConnectPlannerUtils.

However, this isn't enough as the error java.lang.NoSuchMethodError: 'void org.apache.spark.sql.connect.planner.SparkConnectPlanner.process(org.apache.spark.connect.proto.Command, io.grpc.stub.StreamObserver continues to be seen.

To address this shading issue, we move the creation of the MockObserver to the source code.

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.

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