Skip to content

Commit

Permalink
fix: use simple_python_wrapper macro for binary substr
Browse files Browse the repository at this point in the history
  • Loading branch information
f4t4nt committed Jan 8, 2025
1 parent a878746 commit 1c26a63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/daft-functions/src/python/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ pub fn binary_concat(left: PyExpr, right: PyExpr) -> PyResult<PyExpr> {
Ok(concat_fn(left.into(), right.into()).into())
}

#[pyfunction]
pub fn binary_substr(input: PyExpr, start: PyExpr, length: PyExpr) -> PyResult<PyExpr> {
Ok(crate::binary::substr::binary_substr(input.into(), start.into(), length.into()).into())
}
simple_python_wrapper!(binary_substr, crate::binary::substr::binary_substr, [input: PyExpr, start: PyExpr, length: PyExpr]);

0 comments on commit 1c26a63

Please sign in to comment.