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 dec07e7 commit 5cc0442Copy full SHA for 5cc0442
docs/source/user-guide/common-operations/functions.rst
@@ -78,6 +78,14 @@ Convert to timestamps using :py:func:`~datafusion.functions.to_timestamp`
78
79
df.select(f.to_timestamp(col('"Total"')).alias("timestamp"))
80
81
+Extracting parts of a date using :py:func:`~datafusion.functions.date_part` (alias :py:func:`~datafusion.functions.extract`)
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
+ )
89
String
90
------
91
0 commit comments