xuzifu666 commented on code in PR #5425: URL: https://github.com/apache/calcite/pull/5425#discussion_r4601544822
########## core/src/test/resources/sql/sub-query.iq: ########## @@ -11243,6 +11243,38 @@ order by e.ename; !ok +# [CALCITE-2136] SubQueryRemoveRule.Project generated error plan +# Correlated scalar sub-query with an aggregate in the SELECT list, with +# expand=false. Previously the rewritten plan referenced the correlation +# variable outside the join that defines it, and execution failed with +# "Correlation variable $cor0 should be defined". Each ENAME occurs +# exactly once in EMP, so the count is always 1. Review Comment: Validated in postgresql: https://onecompiler.com/postgresql/459ftcn4e -- 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]
