We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc0442 commit 164decdCopy full SHA for 164decd
docs/source/user-guide/common-operations/functions.rst
@@ -82,10 +82,11 @@ Extracting parts of a date using :py:func:`~datafusion.functions.date_part` (ali
82
83
.. ipython:: python
84
85
- df.select(
86
- f.date_part(literal("month"), col('"event_time"')).alias("month"),
87
- f.extract(literal("day"), col('"event_time"')).alias("day")
88
- )
+ df.select(
+ f.date_part(literal("month"), f.to_timestamp(col('"Total"'))).alias("month"),
+ f.extract(literal("day"), f.to_timestamp(col('"Total"'))).alias("day")
+ )
89
+
90
String
91
------
92
0 commit comments