HyukjinKwon commented on a change in pull request #27295: Fix src/dest type 
documentation for `to_timestamp`
URL: https://github.com/apache/spark/pull/27295#discussion_r368791254
 
 

 ##########
 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:
   I think easier way might be 2. I would just do as below
   
   ```
   Converts a :class:`Column` into :class:`pyspark.sql.types.TimestampType`.
   It works as a synonym of ``CAST(col AS TIMESTAMP)``.
   ```

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