xinrong-meng opened a new pull request, #37888: URL: https://github.com/apache/spark/pull/37888
### What changes were proposed in this pull request? Consolidate `lit` function with NumPy scalar in sql and pandas module. Major changes: - More accurate types for `lit` in sql with NumPy scalar input - Replace `lit` in pandas with `lit` in sql ### Why are the changes needed? As part of [SPARK-39405](https://issues.apache.org/jira/browse/SPARK-39405) for NumPy support in SQL. That provides more precise and consistent Numpy support across PySpark moduels. ### Does this PR introduce _any_ user-facing change? Yes. More accurate types for `lit`. ### How was this patch tested? Unit tests. -- 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]
