korlov42 commented on PR #4437:
URL: https://github.com/apache/calcite/pull/4437#issuecomment-3000489754

   @suibianwanwank thanks! The only thing I'm a little bit concerned about is 
that `LogicalProject` now exposes `variablesSet` in certain cases. But as far 
as I see this is valid approach to force `RelBuilder` not to merge projections:
   
   ```
   // org.apache.calcite.tools.RelBuilder#project_:
       <...>
       
       // Do not merge projection when top projection has correlation variables
       bloat:
       if (frame.rel instanceof Project
           && config.bloat() >= 0
           && variables.isEmpty()) {
   ```


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

Reply via email to