Vitalii Diravka created CALCITE-2410:

             Summary: Enable ProjectSetOpTransposeRule for UNION (distinct) 
SetOp operator
                 Key: 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.

// cannot push project past a distinct
if (!setOp.all) {


After removing this check the rule works fine and transposes Union (distinct) 
SetOp and Project RelNodes. 

This message was sent by Atlassian JIRA

Reply via email to