Rong Rong created CALCITE-2862:
----------------------------------
Summary: Deprecated ExprSimplifier causes some operands not being
simplified
Key: CALCITE-2862
URL: https://issues.apache.org/jira/browse/CALCITE-2862
Project: Calcite
Issue Type: Bug
Components: core
Reporter: Rong Rong
This might not be a bug or the original intention of CALCITE-2726 since it is
not part of the [PR|https://github.com/apache/calcite/pull/956/files].
The reduction of ExprSimplifier (RexShuttle) actually causes some of the
chained operations not being simplified. For example:
{code:java}
AS(
+(
someAggFunc($2, $0),
CAST(1):BIGINT NOT NULL
),
someName'
)
{code}
Somehow did not get simplified. My initial feeling is that {{AS}} is not one of
the kinds in the case-switch code in RexSimplify.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)