File tree 1 file changed +3
-1
lines changed
datafusion/core/tests/expr_api
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ use arrow::array::{
22
22
use arrow:: datatypes:: { DataType , Field } ;
23
23
use arrow:: util:: pretty:: { pretty_format_batches, pretty_format_columns} ;
24
24
use datafusion:: prelude:: * ;
25
+ use datafusion_common:: config:: ConfigOptions ;
25
26
use datafusion_common:: { DFSchema , ScalarValue } ;
26
27
use datafusion_expr:: execution_props:: ExecutionProps ;
27
28
use datafusion_expr:: simplify:: SimplifyContext ;
@@ -404,7 +405,8 @@ fn create_simplified_expr_test(expr: Expr, expected_expr: &str) {
404
405
// Simplify the expression first
405
406
let props = ExecutionProps :: new ( ) ;
406
407
let simplify_context =
407
- SimplifyContext :: new ( & props) . with_schema ( df_schema. clone ( ) . into ( ) ) ;
408
+ SimplifyContext :: new ( & props, ConfigOptions :: default_singleton_arc ( ) )
409
+ . with_schema ( df_schema. clone ( ) . into ( ) ) ;
408
410
let simplifier = ExprSimplifier :: new ( simplify_context) . with_max_cycles ( 10 ) ;
409
411
let simplified = simplifier. simplify ( expr) . unwrap ( ) ;
410
412
create_expr_test ( simplified, expected_expr) ;
You can’t perform that action at this time.
0 commit comments