stuhood commented on code in PR #23184:
URL: https://github.com/apache/datafusion/pull/23184#discussion_r3532046330


##########
datafusion/physical-optimizer/src/ensure_requirements/enforce_distribution.rs:
##########
@@ -942,8 +943,11 @@ struct RepartitionRequirementStatus {
     /// Designates whether round robin partitioning is beneficial according to
     /// the statistical information we have on the number of rows.
     roundrobin_beneficial_stats: bool,
-    /// Designates whether hash partitioning is necessary.
-    hash_necessary: bool,
+    /// Designates whether hash repartitioning is required.
+    hash_repartition_required: bool,

Review Comment:
   Since you're renaming this, why isn't this `repartition_required` or 
`aligned_repartition_required`? Or is the idea that this flag would be set in 
cases where `Hash` in particular would be beneficial (to balance out skew, for 
example), and then you'd eventually have another flag for `Range`?



-- 
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]

Reply via email to