fallintoplace opened a new pull request, #55964: URL: https://github.com/apache/spark/pull/55964
### What changes were proposed in this pull request? This PR adds PySpark SQL function coverage for `try_mod` in `test_functions.py`. The test covers column-name operands, `Column` plus literal operands, and division by zero returning null. ### Why are the changes needed? SPARK-54476 tracks adding `try_mod` coverage in `test_functions.py`. This adds direct coverage for the PySpark function wrapper. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? ``` env JAVA_HOME=/opt/homebrew/opt/openjdk PATH=/opt/homebrew/opt/openjdk/bin:$PATH ./build/mvn -DskipTests package env JAVA_HOME=/opt/homebrew/opt/openjdk PATH=/opt/homebrew/opt/openjdk/bin:$PATH OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES python3 python/run-tests.py --testnames "pyspark.sql.tests.test_functions FunctionsTests.test_try_mod_function" --python-executables python3 git diff --check python3 -m py_compile python/pyspark/sql/tests/test_functions.py ``` ### Was this patch authored or co-authored using generative AI tooling? Generated-by: GPT-5.5 xhigh -- 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]
