cloud-fan commented on a change in pull request #28593:
URL: https://github.com/apache/spark/pull/28593#discussion_r433293207



##########
File path: python/pyspark/sql/functions.py
##########
@@ -1211,8 +1211,8 @@ def to_date(col, format=None):
     >>> df.select(to_date(df.t).alias('date')).collect()
     [Row(date=datetime.date(1997, 2, 28))]
 
-    >>> df = spark.createDataFrame([('1997-02-28 10:30:00',)], ['t'])
-    >>> df.select(to_date(df.t, 'yyyy-MM-dd HH:mm:ss').alias('date')).collect()
+    # >>> df = spark.createDataFrame([('1997-02-28 10:30:00',)], ['t'])
+    # >>> df.select(to_date(df.t, 'yyyy-MM-dd 
HH:mm:ss').alias('date')).collect()

Review comment:
       this is not acceptable. I see no reason that `to_date` shall be 
forbidden. Please fix it.




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

Reply via email to