SubhamSinghal commented on code in PR #27578:
URL: https://github.com/apache/datafusion/pull/27578#discussion_r4662433791


##########
datafusion/physical-plan/src/joins/piecewise_merge_join/exec.rs:
##########
@@ -1007,6 +1232,11 @@ async fn build_buffered_data(
     let buffered_values = on_buffered
         .evaluate(&single_batch)?
         .into_array(single_batch.num_rows())?;
+    // The key is stored apart from the batch, so the columns it was computed 
from can go.
+    let single_batch = match &projection {
+        Some(columns) => single_batch.project(columns)?,
+        None => single_batch,
+    };

Review Comment:
   Addressed in d05143b5cabf3c155cb82dd956715f7f65a94e5d



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