We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe403a commit ff277deCopy full SHA for ff277de
src/query_stage.rs
@@ -99,10 +99,11 @@ impl QueryStage {
99
/// Get the input partition count. This is the same as the number of concurrent tasks
100
/// when we schedule this query stage for execution
101
pub fn get_input_partition_count(&self) -> usize {
102
- self.plan.children()[0].output_partitioning().partition_count()
103
if self.plan.as_any().is::<ShuffleWriterExec>() {
104
// most query stages represent a shuffle write
105
+ self.plan.children()[0]
+ .output_partitioning()
106
+ .partition_count()
107
} else {
108
// probably the final query stage
109
self.plan.output_partitioning().partition_count()
0 commit comments