Skip to content

Commit ff277de

Browse files
committed
fix
1 parent ebe403a commit ff277de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/query_stage.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,11 @@ impl QueryStage {
9999
/// Get the input partition count. This is the same as the number of concurrent tasks
100100
/// when we schedule this query stage for execution
101101
pub fn get_input_partition_count(&self) -> usize {
102-
self.plan.children()[0].output_partitioning().partition_count()
103102
if self.plan.as_any().is::<ShuffleWriterExec>() {
104103
// most query stages represent a shuffle write
105-
self.plan.children()[0].output_partitioning().partition_count()
104+
self.plan.children()[0]
105+
.output_partitioning()
106+
.partition_count()
106107
} else {
107108
// probably the final query stage
108109
self.plan.output_partitioning().partition_count()

0 commit comments

Comments
 (0)