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


##########
datafusion/sqllogictest/test_files/piecewise_merge_join_matrix.slt:
##########
@@ -589,6 +589,371 @@ SELECT l.lid, l.lv, r.rid, r.rv FROM cj_lsl l FULL JOIN 
cj_lsr r ON l.lv >= r.rv
 NULL NULL 5 [{x: 7, y: NULL}]
 NULL NULL 6 NULL
 
+# ------------------------------------------------------------------
+# Embedded projection: each classic join type under each select list shape --
+# partial (some columns of both sides, reordered, with same-typed `p`/`q` so a
+# swapped column is wrong rather than an error), one side only (the other side 
is
+# narrowed to zero columns), and none (`count(*)`, both sides narrowed to 
zero).
+# pj_r is inserted as three batches, the first with no matchable row, so it is 
settled
+# whole; NULL keys on both sides leave unmatched rows for the outer joins.

Review Comment:
   Addressed in 
https://github.com/apache/datafusion/commit/d05143b5cabf3c155cb82dd956715f7f65a94e5d



##########
datafusion/physical-plan/src/joins/piecewise_merge_join/classic_join.rs:
##########
@@ -140,24 +143,35 @@ impl ClassicPWMJStream {
         join_type: JoinType,
         operator: Operator,
         streamed: SendableRecordBatchStream,
+        streamed_projection: Option<(Vec<usize>, SchemaRef)>,
+        output_reorder: Option<Vec<usize>>,

Review Comment:
   Addressed in 
https://github.com/apache/datafusion/commit/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