MaxGekk commented on code in PR #43442:
URL: https://github.com/apache/spark/pull/43442#discussion_r1366658227


##########
python/pyspark/sql/functions.py:
##########
@@ -6784,7 +6784,7 @@ def date_format(date: "ColumnOrName", format: str) -> 
Column:
     Examples
     --------
     >>> df = spark.createDataFrame([('2015-04-08',)], ['dt'])
-    >>> df.select(date_format('dt', 'MM/dd/yyy').alias('date')).collect()
+    >>> df.select(date_format('dt', 'MM/dd/yyyy').alias('date')).collect()

Review Comment:
   This might be a typo but not a bug because 3-y means minimum number not 
exact number.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to