alamb commented on code in PR #25304:
URL: https://github.com/apache/datafusion/pull/25304#discussion_r4686625315


##########
datafusion/physical-optimizer/src/join_selection.rs:
##########
@@ -196,6 +201,10 @@ pub(crate) fn try_collect_left(
     ignore_threshold: bool,
     context: &dyn PhysicalOptimizerContext,
 ) -> Result<Option<Arc<dyn ExecutionPlan>>> {
+    if hash_join.inputs_satisfy_partitioned_requirements()? {
+        return Ok(None);
+    }
+

Review Comment:
   > This can drop rows with preserve_file_partitions=1: Hive scans advertise 
Hash([k], n), but different value sets can place matching keys in different 
partitions (#23436).
   
   I agree if hive scans advertise something different that what actually comes 
out that is the bug



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