uros-b opened a new pull request, #58653:
URL: https://github.com/apache/spark/pull/58653

   ### What changes were proposed in this pull request?
   
   `ResolveDataSource` contained an identical ~25-line `TableProvider` 
resolution block in two `resolveOperatorsUp` cases -- the 
`NamedStreamingRelation`-wrapped case and the no-name streaming 
`UnresolvedDataSource` case. This extracts that block into a single private 
helper, `resolveV2StreamingRelation`, and calls it from both sites.
   
   The helper builds a `StreamingRelationV2` when the provider's table supports 
micro-batch or continuous reads, and otherwise falls back to a v1 
`StreamingRelation` -- exactly as the inline code did.
   
   ### Why are the changes needed?
   
   The two blocks were byte-for-byte identical; extracting them keeps the 
v2-provider streaming-resolution logic in one place. Behavior is unchanged -- 
the helper body is the original code verbatim, and both call sites pass the 
same values.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Existing tests; `build/sbt sql/compile` passes. This is a 
behavior-preserving refactor (verbatim extraction of an identical block).
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8)
   


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