@@ -141,8 +141,8 @@ fn run_optimizer(plan: &LogicalPlan, ctx: &OptimizerContext) -> LogicalPlan {
141141fn bench_merge ( c : & mut Criterion ) {
142142 let mut options = ConfigOptions :: default ( ) ;
143143 options. optimizer . enable_unions_to_filter = true ;
144- let ctx = OptimizerContext :: new_with_config_options ( Arc :: new ( options ) )
145- . with_max_passes ( 1 ) ;
144+ let ctx =
145+ OptimizerContext :: new_with_config_options ( Arc :: new ( options ) ) . with_max_passes ( 1 ) ;
146146
147147 let mut group = c. benchmark_group ( "unions_to_filter/merge" ) ;
148148 for n in [ 2 , 8 , 32 , 128 ] {
@@ -157,8 +157,8 @@ fn bench_merge(c: &mut Criterion) {
157157fn bench_no_merge ( c : & mut Criterion ) {
158158 let mut options = ConfigOptions :: default ( ) ;
159159 options. optimizer . enable_unions_to_filter = true ;
160- let ctx = OptimizerContext :: new_with_config_options ( Arc :: new ( options ) )
161- . with_max_passes ( 1 ) ;
160+ let ctx =
161+ OptimizerContext :: new_with_config_options ( Arc :: new ( options ) ) . with_max_passes ( 1 ) ;
162162
163163 let mut group = c. benchmark_group ( "unions_to_filter/no_merge" ) ;
164164 for n in [ 2 , 8 , 32 , 128 ] {
@@ -173,8 +173,8 @@ fn bench_no_merge(c: &mut Criterion) {
173173fn bench_merge_with_projection ( c : & mut Criterion ) {
174174 let mut options = ConfigOptions :: default ( ) ;
175175 options. optimizer . enable_unions_to_filter = true ;
176- let ctx = OptimizerContext :: new_with_config_options ( Arc :: new ( options ) )
177- . with_max_passes ( 1 ) ;
176+ let ctx =
177+ OptimizerContext :: new_with_config_options ( Arc :: new ( options ) ) . with_max_passes ( 1 ) ;
178178
179179 let mut group = c. benchmark_group ( "unions_to_filter/merge_with_projection" ) ;
180180 for n in [ 2 , 8 , 32 , 128 ] {
@@ -186,5 +186,10 @@ fn bench_merge_with_projection(c: &mut Criterion) {
186186 group. finish ( ) ;
187187}
188188
189- criterion_group ! ( benches, bench_merge, bench_no_merge, bench_merge_with_projection) ;
189+ criterion_group ! (
190+ benches,
191+ bench_merge,
192+ bench_no_merge,
193+ bench_merge_with_projection
194+ ) ;
190195criterion_main ! ( benches) ;
0 commit comments