andygrove commented on code in PR #56:
URL: https://github.com/apache/datafusion-ray/pull/56#discussion_r1885772366
##########
src/query_stage.rs:
##########
@@ -99,14 +100,23 @@ impl QueryStage {
/// Get the input partition count. This is the same as the number of
concurrent tasks
/// when we schedule this query stage for execution
pub fn get_input_partition_count(&self) -> usize {
- if self.plan.children().is_empty() {
- // leaf node (file scan)
- self.plan.output_partitioning().partition_count()
- } else {
- self.plan.children()[0]
- .output_partitioning()
- .partition_count()
+ let mut output_partition_counts = HashSet::new();
Review Comment:
PR https://github.com/apache/datafusion-ray/pull/54 no longer looks at the
plan's children in this section of code, so perhaps this check (which is a good
check) should move somewhere else. I'd suggest adding it in `QueryStage::new`
and have it return `Result<Self>`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]