ericm-db opened a new pull request, #55651:
URL: https://github.com/apache/spark/pull/55651

   ### What changes were proposed in this pull request?
   
   Remove the `private[sql]` access modifier from `DataStreamReader.name` and 
add the method as a public abstract API to the `DataStreamReader` base class.
   
   - Added abstract `def name(sourceName: String): this.type` to the API base 
class (`sql/api/.../DataStreamReader.scala`)
   - Changed both classic and connect implementations from `private[sql] def 
name` to `override def name`
   - Moved Scaladoc to the base class; implementations use `@inheritdoc`
   
   ### Why are the changes needed?
   
   The `name` method was introduced in SPARK-56453 as `private[sql]` while the 
API was being finalized. Now that the feature is ready, making it public allows 
users to assign names to streaming sources for stable checkpoint metadata and 
source evolution.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. `DataStreamReader.name(sourceName)` is now a public `@Experimental` API 
available to all users. Previously it was package-private to 
`org.apache.spark.sql`.
   
   ### How was this patch tested?
   
   Existing tests cover the `name` functionality. This change only modifies the 
access level.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 4.6)


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