File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -384,12 +384,11 @@ macro_rules! expr_fn {
384384 ( $FUNC: ident, $( $arg: ident) * , $DOC: expr) => {
385385 #[ doc = $DOC]
386386 #[ pyfunction]
387- fn $FUNC( $( $arg: PyExpr ) ,* ) -> PyExpr {
388- functions:: expr_fn:: $FUNC( $( $arg. into( ) ) ,* ) . into( )
387+ fn $FUNC( $( $arg: PyExpr ) ,* , data_type : & str ) -> PyExpr {
388+ functions:: expr_fn:: $FUNC( $( $arg. into( ) ) ,* , data_type . to_string ( ) ) . into( )
389389 }
390390 } ;
391391}
392-
393392/// Generates a [pyo3] wrapper for [datafusion::functions::expr_fn]
394393///
395394/// These functions take a single `Vec<PyExpr>` argument using `pyo3(signature = (*args))`.
@@ -564,6 +563,7 @@ expr_fn_vec!(r#struct); // Use raw identifier since struct is a keyword
564563expr_fn_vec ! ( named_struct) ;
565564expr_fn ! ( from_unixtime, unixtime) ;
566565expr_fn ! ( arrow_typeof, arg_1) ;
566+ expr_fn ! ( arrow_cast, expr data_type) ;
567567expr_fn ! ( random) ;
568568
569569// Array Functions
You can’t perform that action at this time.
0 commit comments