HyukjinKwon opened a new pull request, #44252: URL: https://github.com/apache/spark/pull/44252
### What changes were proposed in this pull request? This PR proposes to fix `current_timestamp()` to `now()` in its output name when you invoke `pyspark.sql.functions.now`. ### Why are the changes needed? To show the correct name of the functions being used. ### Does this PR introduce _any_ user-facing change? Yes. ```python from pyspark.sql import functions as sf df.select(sf.now()).show(truncate=False) ``` Before: ``` +--------------------------+ |current_timestamp() | +--------------------------+ |2023-12-08 15:15:58.767781| +--------------------------+ ``` After: ``` +--------------------------+ |now() | +--------------------------+ |2023-12-08 15:18:18.482269| +--------------------------+ ``` ### How was this patch tested? Manually tested, and unittests were added. ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
