@@ -7,16 +7,16 @@ use arrow_schema::{DataType, Schema};
77use datafusion_expr:: Operator as DFOperator ;
88use datafusion_functions:: core:: getfield:: GetFieldFunc ;
99use datafusion_physical_expr:: { PhysicalExpr , ScalarFunctionExpr } ;
10- use datafusion_physical_expr_common:: physical_expr:: { is_dynamic_physical_expr , PhysicalExprRef } ;
10+ use datafusion_physical_expr_common:: physical_expr:: { PhysicalExprRef , is_dynamic_physical_expr } ;
1111use datafusion_physical_plan:: expressions as df_expr;
1212use itertools:: Itertools ;
1313use vortex:: compute:: LikeOptions ;
1414use vortex:: dtype:: arrow:: FromArrowType ;
1515use vortex:: dtype:: { DType , Nullability } ;
16- use vortex:: error:: { vortex_bail , vortex_err , VortexResult } ;
16+ use vortex:: error:: { VortexResult , vortex_bail , vortex_err } ;
1717use vortex:: expr:: {
18- and , cast , get_item , is_null , list_contains , lit , not , root , Binary , Expression ,
19- Like , Operator , VTableExt ,
18+ Binary , Expression , Like , Operator , VTableExt , and , cast , get_item , is_null , list_contains ,
19+ lit , not , root ,
2020} ;
2121use vortex:: scalar:: Scalar ;
2222
@@ -43,7 +43,7 @@ impl TryFromDataFusion<dyn PhysicalExpr> for Expression {
4343 let right = Expression :: try_from_df ( binary_expr. right ( ) . as_ref ( ) ) ?;
4444 let operator = Operator :: try_from_df ( binary_expr. op ( ) ) ?;
4545
46- return Ok ( Binary . new ( operator, [ left, right] ) ) ;
46+ return Ok ( Binary . new_expr ( operator, [ left, right] ) ) ;
4747 }
4848
4949 if let Some ( col_expr) = df. as_any ( ) . downcast_ref :: < df_expr:: Column > ( ) {
@@ -53,7 +53,7 @@ impl TryFromDataFusion<dyn PhysicalExpr> for Expression {
5353 if let Some ( like) = df. as_any ( ) . downcast_ref :: < df_expr:: LikeExpr > ( ) {
5454 let child = Expression :: try_from_df ( like. expr ( ) . as_ref ( ) ) ?;
5555 let pattern = Expression :: try_from_df ( like. pattern ( ) . as_ref ( ) ) ?;
56- return Ok ( Like . new (
56+ return Ok ( Like . new_expr (
5757 LikeOptions {
5858 negated : like. negated ( ) ,
5959 case_insensitive : like. case_insensitive ( ) ,
@@ -283,8 +283,8 @@ mod tests {
283283
284284 use arrow_schema:: { DataType , Field , Fields , Schema , TimeUnit as ArrowTimeUnit } ;
285285 use datafusion:: functions:: core:: getfield:: GetFieldFunc ;
286- use datafusion_common:: config:: ConfigOptions ;
287286 use datafusion_common:: ScalarValue ;
287+ use datafusion_common:: config:: ConfigOptions ;
288288 use datafusion_expr:: { Operator as DFOperator , ScalarUDF } ;
289289 use datafusion_physical_expr:: PhysicalExpr ;
290290 use datafusion_physical_plan:: expressions as df_expr;
@@ -404,7 +404,7 @@ mod tests {
404404 assert_snapshot ! ( result. display_tree( ) . to_string( ) , @r#"
405405 vortex.binary =
406406 ├── lhs: vortex.get_item "left"
407- │ └── input: vortex.root
407+ │ └── input: vortex.root
408408 └── rhs: vortex.literal 42i32
409409 "# ) ;
410410 }
@@ -427,7 +427,7 @@ mod tests {
427427 assert_snapshot!( result. display_tree( ) . to_string( ) , @r#"
428428 vortex.like LikeOptions { negated: false, case_insensitive: false }
429429 ├── child: vortex.get_item "text_col"
430- │ └── input: vortex.root
430+ │ └── input: vortex.root
431431 └── pattern: vortex.literal "test%"
432432 "# ) ;
433433 }
0 commit comments