timsaucer commented on code in PR #1467:
URL: 
https://github.com/apache/datafusion-python/pull/1467#discussion_r3029905116


##########
python/datafusion/functions.py:
##########
@@ -1970,6 +1982,15 @@ def to_char(arg: Expr, formatter: Expr) -> Expr:
     return Expr(f.to_char(arg.expr, formatter.expr))
 
 
+def date_format(arg: Expr, formatter: Expr) -> Expr:
+    """Returns a string representation of a date, time, timestamp or duration.
+
+    See Also:
+        This is an alias for :py:func:`to_char`.
+    """
+    return to_char(arg, formatter)
+
+

Review Comment:
   I think this is okay for aliases. If you think it's a blocker we can open an 
issue to try to overcome this.



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