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

   ### What changes were proposed in this pull request?
   
   This PR fixes the `try_to_date` Python docstring to reflect the actual 
version in which the function became available.
   
   I think this change needs to land in the branch-4.1 branch as well as the 
master branch.
   
   ### Why are the changes needed?
   
   See https://github.com/apache/spark/issues/56672.
   
   Current docstring says that `pyspark.sql.functions.try_to_date` is "New in 
version 4.0.0", but the function is not available in PySpark 4.0.x. The 
docstring is misleading. 
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   I confirmed the issue by comparing Spark 4.0 and Spark 4.1 source and the 
actual runtime behavior of Pyspark.
   
   ### 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]

Reply via email to