HyukjinKwon commented on a change in pull request #35454:
URL: https://github.com/apache/spark/pull/35454#discussion_r805332791



##########
File path: python/pyspark/sql/functions.py
##########
@@ -2040,8 +2040,16 @@ def hour(col: "ColumnOrName") -> Column:
     Examples
     --------
     >>> df = spark.createDataFrame([('2015-04-08 13:08:15',)], ['ts'])

Review comment:
       Can we fix this example to use `datetime.datetime` instead?

##########
File path: python/pyspark/sql/functions.py
##########
@@ -2055,8 +2063,16 @@ def minute(col: "ColumnOrName") -> Column:
     Examples
     --------
     >>> df = spark.createDataFrame([('2015-04-08 13:08:15',)], ['ts'])

Review comment:
       ditto

##########
File path: python/pyspark/sql/functions.py
##########
@@ -2070,8 +2086,16 @@ def second(col: "ColumnOrName") -> Column:
     Examples
     --------
     >>> df = spark.createDataFrame([('2015-04-08 13:08:15',)], ['ts'])

Review comment:
       ditto




-- 
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