Vitalii Diravka created CALCITE-2410:
----------------------------------------
Summary: Enable ProjectSetOpTransposeRule for UNION (distinct)
SetOp operator
Key: CALCITE-2410
URL: https://issues.apache.org/jira/browse/CALCITE-2410
Project: Calcite
Issue Type: Improvement
Components: core
Affects Versions: 1.16.0
Reporter: Vitalii Diravka
Assignee: Vitalii Diravka
Fix For: 1.17.0
Currently {{ProjectSetOpTransposeRule}} rule can transpose UnionAll SetOp and
Project RelNodes. It disabled for Union (distinct) SetOp operator.
{code}
// cannot push project past a distinct
if (!setOp.all) {
return;
}
{code}
After removing this check the rule works fine and transposes Union (distinct)
SetOp and Project RelNodes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)