@@ -19,9 +19,7 @@ use pyo3::{prelude::*, wrap_pyfunction};
1919
2020use  datafusion:: logical_plan; 
2121
22- use  datafusion:: physical_plan:: { 
23-     aggregates:: AggregateFunction ,  functions:: BuiltinScalarFunction , 
24- } ; 
22+ use  datafusion:: physical_plan:: { aggregates:: AggregateFunction ,  functions:: BuiltinScalarFunction } ; 
2523
2624use  crate :: errors; 
2725use  crate :: expression:: PyExpr ; 
@@ -88,11 +86,7 @@ fn concat_ws(sep: String, args: Vec<PyExpr>) -> PyResult<PyExpr> {
8886
8987/// Creates a new Sort expression 
9088#[ pyfunction]  
91- fn  order_by ( 
92-     expr :  PyExpr , 
93-     asc :  Option < bool > , 
94-     nulls_first :  Option < bool > , 
95- )  -> PyResult < PyExpr >  { 
89+ fn  order_by ( expr :  PyExpr ,  asc :  Option < bool > ,  nulls_first :  Option < bool > )  -> PyResult < PyExpr >  { 
9690    Ok ( PyExpr  { 
9791        expr :  datafusion:: logical_plan:: Expr :: Sort  { 
9892            expr :  Box :: new ( expr. expr ) , 
@@ -106,10 +100,7 @@ fn order_by(
106100#[ pyfunction]  
107101fn  alias ( expr :  PyExpr ,  name :  & str )  -> PyResult < PyExpr >  { 
108102    Ok ( PyExpr  { 
109-         expr :  datafusion:: logical_plan:: Expr :: Alias ( 
110-             Box :: new ( expr. expr ) , 
111-             String :: from ( name) , 
112-         ) , 
103+         expr :  datafusion:: logical_plan:: Expr :: Alias ( Box :: new ( expr. expr ) ,  String :: from ( name) ) , 
113104    } ) 
114105} 
115106
@@ -244,7 +235,11 @@ scalar_function!(sha384, SHA384);
244235scalar_function ! ( sha512,  SHA512 ) ; 
245236scalar_function ! ( signum,  Signum ) ; 
246237scalar_function ! ( sin,  Sin ) ; 
247- scalar_function ! ( split_part,  SplitPart ,  "Splits string at occurrences of delimiter and returns the n'th field (counting from one)." ) ; 
238+ scalar_function ! ( 
239+     split_part, 
240+     SplitPart , 
241+     "Splits string at occurrences of delimiter and returns the n'th field (counting from one)." 
242+ ) ; 
248243scalar_function ! ( sqrt,  Sqrt ) ; 
249244scalar_function ! ( 
250245    starts_with, 
0 commit comments