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

   ### What changes were proposed in this pull request?
   
   This PR follows up on #58626 by moving the `VectorDotProduct` implementation 
to the static
   `MLExpressionUtils.dotProduct` method. Both interpreted evaluation and 
generated code invoke the
   shared method.
   
   ### Why are the changes needed?
   
   The expression currently maintains separate Scala and generated Java 
implementations of the same
   dense and sparse vector dot-product logic. A shared static method removes 
this duplication and
   reduces the amount of generated code while retaining code-generated 
evaluation.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   ```text
   ./build/sbt 'catalyst/testOnly *VectorDotProductSuite'
   ./dev/lint-java
   ./dev/lint-scala
   ```
   
   ### 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