Skip to content

Commit 49f9015

Browse files
committed
feat: update array_to_string function to cast delimiter to string
1 parent c8250d9 commit 49f9015

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/datafusion/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def decode(expr: Expr, encoding: Expr) -> Expr:
317317

318318
def array_to_string(expr: Expr, delimiter: Expr) -> Expr:
319319
"""Converts each element to its text representation."""
320-
return Expr(f.array_to_string(expr.expr, delimiter.expr.cast(pa.string())))
320+
return Expr(f.array_to_string(expr.expr, delimiter.cast(str).expr))
321321

322322

323323
def array_join(expr: Expr, delimiter: Expr) -> Expr:

0 commit comments

Comments
 (0)