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

   ### What changes were proposed in this pull request?
   
   This draft changes the `StringIndexerModel` `handleInvalid = "skip"` path to 
produce a nullable index in the existing indexing UDF, then drop rows with null 
generated indexes. It removes the separate membership-filter UDF.
   
   ### Why are the changes needed?
   
   Previously, every valid label was probed once by `OpenHashMap.contains` 
during filtering and again by `OpenHashMap.get` during indexing. The new plan 
evaluates one lookup per input label while preserving the existing skip 
behavior.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added multi-column coverage for unseen and null labels with `handleInvalid = 
"skip"`. `build/sbt mllib/Test/compile` completed successfully. The test suite 
was not run.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: 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