You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "cloud-fan (via GitHub)" <gi...@apache.org> on 2026/08/07 11:28:42 UTC

[PR] [MINOR][SQL][TESTS] Add sql shorthand to SparkSessionProvider [spark]

cloud-fan opened a new pull request, #57849:
URL: https://github.com/apache/spark/pull/57849

   ### What changes were proposed in this pull request?
   
   Add an `sql` shorthand to `SparkSessionProvider`, with narrowed overrides for classic and
   Connect sessions. Move the classic override from `SparkSessionBinder` to
   `classic.SparkSessionProvider`, and remove redundant suite-local shorthands and imports.
   
   ### Why are the changes needed?
   
   Test suites that provide a Spark session should expose the same convenient `sql(...)` helper
   without defining or importing it separately. Keeping the helper on the provider also preserves
   the concrete classic or Connect `DataFrame` type where needed.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Not run. This is a test-infrastructure-only refactor.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [MINOR][SQL][TESTS] Add sql shorthand to SparkSessionProvider [spark]

Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #57849:
URL: https://github.com/apache/spark/pull/57849#issuecomment-5217498336

   sorry created by accident... the change is already in the codebase


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [MINOR][SQL][TESTS] Add sql shorthand to SparkSessionProvider [spark]

Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan closed pull request #57849: [MINOR][SQL][TESTS] Add sql shorthand to SparkSessionProvider
URL: https://github.com/apache/spark/pull/57849


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org