File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ workspace = true
36
36
37
37
[features ]
38
38
force_hash_collisions = []
39
- bench = []
40
39
41
40
[lib ]
42
41
name = " datafusion_physical_plan"
@@ -91,4 +90,3 @@ name = "spill_io"
91
90
[[bench ]]
92
91
harness = false
93
92
name = " sort_preserving_merge"
94
- required-features = [" bench" ]
Original file line number Diff line number Diff line change @@ -115,18 +115,13 @@ fn get_bench_data() -> Vec<BenchData> {
115
115
let mut push_bench_data = |bench_name : & str , partitions : Vec < Vec < RecordBatch > > | {
116
116
let schema = partitions[ 0 ] [ 0 ] . schema ( ) ;
117
117
// Define sort order (col1 ASC, col2 ASC, col3 ASC)
118
- let sort_order = LexOrdering :: new (
119
- schema
120
- . fields ( )
121
- . iter ( )
122
- . map ( |field| {
123
- PhysicalSortExpr :: new (
124
- col ( field. name ( ) , & schema) . unwrap ( ) ,
125
- SortOptions :: default ( ) ,
126
- )
127
- } )
128
- . collect ( ) ,
129
- ) ;
118
+ let sort_order = LexOrdering :: new ( schema. fields ( ) . iter ( ) . map ( |field| {
119
+ PhysicalSortExpr :: new (
120
+ col ( field. name ( ) , & schema) . unwrap ( ) ,
121
+ SortOptions :: default ( ) ,
122
+ )
123
+ } ) )
124
+ . unwrap ( ) ;
130
125
ret. push ( BenchData {
131
126
bench_name : bench_name. to_string ( ) ,
132
127
partitions,
@@ -173,7 +168,7 @@ fn bench_merge_sorted_preserving(c: &mut Criterion) {
173
168
sort_order,
174
169
} = data;
175
170
c. bench_function (
176
- & format ! ( "bench_merge_sorted_preserving/{}" , bench_name ) ,
171
+ & format ! ( "bench_merge_sorted_preserving/{bench_name}" ) ,
177
172
|b| {
178
173
b. iter_batched (
179
174
|| {
You can’t perform that action at this time.
0 commit comments