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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to