zhengruifeng opened a new pull request, #58452:
URL: https://github.com/apache/spark/pull/58452

   ### What changes were proposed in this pull request?
   
   This PR creates the `CountVectorizerModel` dictionary and its broadcast for 
each `transform` call
   instead of caching the broadcast on the model.
   
   ### Why are the changes needed?
   
   The dictionary broadcast is transformation-only execution state. Retaining 
it on the model keeps the
   broadcast alive for the model's lifetime and ties later transformations to 
the `SparkContext` used by
   the first transformation. A transform-scoped broadcast follows the lifecycle 
of the returned lazy
   DataFrame and matches the other explicit inference broadcasts in 
`org.apache.spark.ml`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   No tests were added because this is an internal broadcast lifecycle change 
and the transformation
   logic is unchanged. The patch was checked with `git diff --check` and source 
line-length and
   non-ASCII scans.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-5)
   


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