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


##########
datafusion/physical-plan/src/joins/piecewise_merge_join/exec.rs:
##########
@@ -406,6 +419,72 @@ impl PiecewiseMergeJoinExec {
         &self.sort_options
     }
 
+    /// The embedded projection, as indices into the unprojected join schema
+    pub fn projection(&self) -> Option<&ProjectionRef> {
+        self.projection.as_ref().map(|p| &p.indices)
+    }
+
+    pub fn contains_projection(&self) -> bool {

Review Comment:
   Optional cleanup: this new public method has no rustdoc. One line keeps 
`cargo doc` readers from having to open the source to tell it apart from 
`projection()`:
   
   ```suggestion
       /// Whether a parent projection has been embedded into this join.
       pub fn contains_projection(&self) -> bool {
   ```



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