Skip to content

Commit bca6fa6

Browse files
committed
Resolve errors in doc building
1 parent fcb5f96 commit bca6fa6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

python/datafusion/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ def to_timestamp(arg: Expr, *formatters: Expr) -> Expr:
924924
return f.to_timestamp(arg.expr)
925925

926926
formatters = [f.expr for f in formatters]
927-
return Expr(f.to_timestamp(arg.expr.cast(pa.string()), *formatters))
927+
return Expr(f.to_timestamp(arg.expr, *formatters))
928928

929929

930930
def to_timestamp_millis(arg: Expr, *formatters: Expr) -> Expr:

python/datafusion/udf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def udaf(
229229
which this UDAF is used. The following examples are all valid.
230230
231231
.. code-block:: python
232+
232233
import pyarrow as pa
233234
import pyarrow.compute as pc
234235

0 commit comments

Comments
 (0)