deepyaman commented on a change in pull request #27295: [MINOR][DOCS] Fix 
src/dest type documentation for `to_timestamp`
URL: https://github.com/apache/spark/pull/27295#discussion_r370064954
 
 

 ##########
 File path: python/pyspark/sql/functions.py
 ##########
 @@ -1161,7 +1161,7 @@ def to_date(col, format=None):
 @since(2.2)
 def to_timestamp(col, format=None):
     """Converts a :class:`Column` of :class:`pyspark.sql.types.StringType` or
-    :class:`pyspark.sql.types.TimestampType` into 
:class:`pyspark.sql.types.DateType`
+    :class:`pyspark.sql.types.DateType` into 
:class:`pyspark.sql.types.TimestampType`
 
 Review comment:
   Thank you for the feedback. I've more-or-less taken @HyukjinKwon's 
suggestion (the comment already mentions that it's equivalent to cast, so I 
just made that line more obvious/not seem like just a parenthetical comment on 
the last sentence).

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to