Skip to content

Commit 4453842

Browse files
lint
1 parent 33ca780 commit 4453842

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

src/flight_service/do_get.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use crate::flight_service::trailing_flight_data_stream::TrailingFlightDataStream
77
use crate::metrics::TaskMetricsCollector;
88
use crate::metrics::proto::df_metrics_set_to_proto;
99
use crate::protobuf::{
10-
datafusion_error_to_tonic_status, stage_from_proto, AppMetadata, DistributedCodec, FlightAppMetadata, MetricsCollection, StageKey, TaskMetrics
10+
AppMetadata, DistributedCodec, FlightAppMetadata, MetricsCollection, StageKey, TaskMetrics,
11+
datafusion_error_to_tonic_status, stage_from_proto,
1112
};
1213
use arrow::array::RecordBatch;
1314
use arrow::datatypes::SchemaRef;

src/test_utils/plans.rs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ use datafusion::{
66
};
77

88
use crate::{
9-
execution_plans::{InputStage, NetworkCoalesceExec, NetworkShuffleExec}, protobuf::{stage_from_proto, StageKey}, StageExec
9+
StageExec,
10+
execution_plans::{InputStage, NetworkCoalesceExec, NetworkShuffleExec},
11+
protobuf::StageKey,
1012
};
1113

1214
/// count_plan_nodes counts the number of execution plan nodes in a plan using BFS traversal.
@@ -58,14 +60,16 @@ pub fn get_stages_and_stage_keys(
5860
}
5961

6062
// Add any child stages
61-
queue.extend(stage.input_stages_iter().map(|input_stage| {
62-
match input_stage {
63-
InputStage::Decoded(plan) => StageExec::from_dyn(plan),
64-
InputStage::Encoded { .. } => {
65-
unimplemented!();
66-
}
67-
}
68-
}));
63+
queue.extend(
64+
stage
65+
.input_stages_iter()
66+
.map(|input_stage| match input_stage {
67+
InputStage::Decoded(plan) => StageExec::from_dyn(plan),
68+
InputStage::Encoded { .. } => {
69+
unimplemented!();
70+
}
71+
}),
72+
);
6973
}
7074
(stages_map, stage_keys)
7175
}

0 commit comments

Comments
 (0)