Skip to content

Commit f8aada1

Browse files
committed
fix lints, msrv
1 parent 5a1b3cf commit f8aada1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

datafusion/core/tests/memory_limit/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async fn sort_preserving_merge() {
255255
"| plan_type | plan |",
256256
"+---------------+--------------------------------------------------------------------------------------------------------------------------+",
257257
"| logical_plan | Sort: t.a ASC NULLS LAST, t.b ASC NULLS LAST, fetch=10 |",
258-
"| | TableScan: t projection=[a, b] |",
258+
"| | TableScan: t projection=[a, b] preferred_ordering=[t.a ASC NULLS LAST, t.b ASC NULLS LAST] |",
259259
"| physical_plan | SortPreservingMergeExec: [a@0 ASC NULLS LAST, b@1 ASC NULLS LAST], fetch=10 |",
260260
"| | DataSourceExec: partitions=2, partition_sizes=[5, 5], fetch=10, output_ordering=a@0 ASC NULLS LAST, b@1 ASC NULLS LAST |",
261261
"| | |",
@@ -303,7 +303,7 @@ async fn sort_spill_reservation() {
303303
"| plan_type | plan |",
304304
"+---------------+-------------------------------------------------------------------------------------------------------------+",
305305
"| logical_plan | Sort: t.a ASC NULLS LAST, t.b DESC NULLS FIRST |",
306-
"| | TableScan: t projection=[a, b] |",
306+
"| | TableScan: t projection=[a, b] preferred_ordering=[t.a ASC NULLS LAST, t.b DESC NULLS FIRST] |",
307307
"| physical_plan | SortExec: expr=[a@0 ASC NULLS LAST, b@1 DESC], preserve_partitioning=[false] |",
308308
"| | DataSourceExec: partitions=1, partition_sizes=[5], output_ordering=a@0 ASC NULLS LAST, b@1 ASC NULLS LAST |",
309309
"| | |",

datafusion/optimizer/src/push_down_sort.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ impl OptimizerRule for PushDownSort {
284284
}
285285
}
286286
})
287-
.map(|transformed_ctx| transformed_ctx.map_data(|ctx| Ok(ctx.plan)))
288-
.flatten()
287+
.and_then(|transformed_ctx| transformed_ctx.map_data(|ctx| Ok(ctx.plan)))
289288
}
290289

291290
fn name(&self) -> &str {

0 commit comments

Comments
 (0)