Skip to content

Commit 2be45eb

Browse files
update concat and concat_ws to use datafusion_functions
Moved in apache/datafusion#10089
1 parent f266cd3 commit 2be45eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn digest(value: PyExpr, method: PyExpr) -> PyExpr {
134134
#[pyo3(signature = (*args))]
135135
fn concat(args: Vec<PyExpr>) -> PyResult<PyExpr> {
136136
let args = args.into_iter().map(|e| e.expr).collect::<Vec<_>>();
137-
Ok(datafusion_expr::concat(&args).into())
137+
Ok(functions::string::expr_fn::concat(args).into())
138138
}
139139

140140
/// Concatenates all but the first argument, with separators.
@@ -144,7 +144,7 @@ fn concat(args: Vec<PyExpr>) -> PyResult<PyExpr> {
144144
#[pyo3(signature = (sep, *args))]
145145
fn concat_ws(sep: String, args: Vec<PyExpr>) -> PyResult<PyExpr> {
146146
let args = args.into_iter().map(|e| e.expr).collect::<Vec<_>>();
147-
Ok(datafusion_expr::concat_ws(lit(sep), args).into())
147+
Ok(functions::string::expr_fn::concat_ws(lit(sep), args).into())
148148
}
149149

150150
/// Creates a new Sort Expr

0 commit comments

Comments
 (0)