rubenada opened a new pull request, #4511:
URL: https://github.com/apache/calcite/pull/4511

   See https://issues.apache.org/jira/browse/CALCITE-7135
   
   Basically when creating the RelRoot of the subquery, we must not use 
`relRoot.rel`, but rather `relRoot.project()` which adds a Project on top if it 
is necessary to remove some fields (e.g. the ORDER BY field that is not part of 
the final projection).


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