Steven Talbot created CALCITE-6085:
--------------------------------------
Summary: RelBuilder.aggregate_ "pruneInputOfAggregate" logic needs
to discard unused top of stack
Key: CALCITE-6085
URL: https://issues.apache.org/jira/browse/CALCITE-6085
Project: Calcite
Issue Type: Bug
Reporter: Steven Talbot
Minor edge case one that can be turned off with config, but this code
[https://github.com/apache/calcite/blob/379f41d3be465992328d5659ea62b8355e0399d1/core/src/main/java/org/apache/calcite/tools/RelBuilder.java#L2355-L2368]
needs to discard the top of the stack. Otherwise, if you're e.g. trying to
build things for a UNION, you end up with an unwanted extra frame on the stack
that causes all kinds of problems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)