Skip to content

Commit 66ae588

Browse files
committed
fix cargo check: cargo check --profile ci --workspace --all-targets --features integration-tests --locked
1 parent 930608a commit 66ae588

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

datafusion-examples/examples/planner_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
use datafusion::error::Result;
1919
use datafusion::logical_expr::LogicalPlan;
20-
use datafusion::physical_plan::displayable;
20+
use datafusion::physical_plan::{displayable, ExecutionPlan};
2121
use datafusion::physical_planner::DefaultPhysicalPlanner;
2222
use datafusion::prelude::*;
2323

datafusion/core/tests/fuzz_cases/sort_fuzz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl SortTest {
224224
/// Sort the input using SortExec and ensure the results are
225225
/// correct according to `Vec::sort` both with and without spilling
226226
async fn run(&self) -> (Vec<Vec<RecordBatch>>, Vec<RecordBatch>) {
227-
let input = Arc::clone(self.input());
227+
let input = self.input.clone();
228228
let first_batch = input
229229
.iter()
230230
.flat_map(|p| p.iter())

datafusion/core/tests/physical_optimizer/enforce_distribution.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3603,18 +3603,19 @@ fn test_replace_order_preserving_variants_with_fetch() -> Result<()> {
36033603
);
36043604

36053605
// Apply the function
3606-
let result = replace_order_preserving_variants(dist_context)?;
3606+
let result = replace_order_preserving_variants(dist_context, false)?;
36073607

36083608
// Verify the plan was transformed to CoalescePartitionsExec
36093609
result
3610+
.0
36103611
.plan
36113612
.as_any()
36123613
.downcast_ref::<CoalescePartitionsExec>()
36133614
.expect("Expected CoalescePartitionsExec");
36143615

36153616
// Verify fetch was preserved
36163617
assert_eq!(
3617-
result.plan.fetch(),
3618+
result.0.plan.fetch(),
36183619
Some(5),
36193620
"Fetch value was not preserved after transformation"
36203621
);

datafusion/physical-optimizer/src/enforce_distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ fn remove_dist_changing_operators(
10341034
/// " RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=2",
10351035
/// " DataSourceExec: file_groups={2 groups: \[\[x], \[y]]}, projection=\[a, b, c, d, e], output_ordering=\[a@0 ASC], file_type=parquet",
10361036
/// ```
1037-
fn replace_order_preserving_variants(
1037+
pub fn replace_order_preserving_variants(
10381038
mut context: DistributionContext,
10391039
ordering_satisfied: bool,
10401040
) -> Result<(DistributionContext, Option<usize>)> {

0 commit comments

Comments
 (0)