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

   ### What changes were proposed in this pull request?
   
   This is a followup to #52402 that addresses backward compatibility concerns:
   
   1. Keep the original `implicit SQLContext` factory methods for full backward 
compatibility
   2. Add new overloads with explicit `SparkSession` parameter for new code
   3. Fix `TestGraphRegistrationContext` to provide implicit `spark` and 
`sqlContext` to avoid name shadowing issues in nested classes
   4. Remove redundant `implicit val sparkSession` declarations from pipeline 
tests that are no longer needed with the fix
   
   ### Why are the changes needed?
   
   PR #52402 changed the MemoryStream API to use `implicit SparkSession` which 
broke backward compatibility for code that only has `implicit SQLContext` 
available. This followup ensures:
   
   - Old code continues to work without modification
   - New code can use SparkSession with explicit parameters
   - Internal implementation uses SparkSession (modernization from #52402)
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This maintains full backward compatibility while adding new API options.
   
   ### How was this patch tested?
   
   Existing tests pass. The API changes are additive.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Yes
   
   Made with [Cursor](https://cursor.com)


-- 
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