HyukjinKwon commented on a change in pull request #27331:
URL: https://github.com/apache/spark/pull/27331#discussion_r445269268
##########
File path: python/pyspark/sql/functions.py
##########
@@ -3300,6 +3300,88 @@ def map_zip_with(col1, col2, f):
return _invoke_higher_order_function("MapZipWith", [col1, col2], [f])
+# ---------------------- Partition transform functions
--------------------------------
+
+@since(3.1)
+def years(col):
+ """
+ Partition transform function: A transform for timestamps and dates
Review comment:
Let's also clarify this expression should only with `partitionedBy` in
DSv2 APIs.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]