zhengruifeng opened a new pull request, #58382: URL: https://github.com/apache/spark/pull/58382
### What changes were proposed in this pull request? Add ML test coverage for Scala UDFs applied to datasets containing dense, sparse, and null vectors. The test verifies constant-returning and null-checking UDF behavior, and verifies that dereferencing a null vector reports `FAILED_EXECUTE_UDF` with a `NullPointerException` cause. ### Why are the changes needed? The tests document the null-input behavior of Scala UDFs whose input is an ML `Vector`. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 build/sbt 'mllib/testOnly org.apache.spark.ml.util.MLTestSuite'` ### 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]
