[ 
https://issues.apache.org/jira/browse/CALCITE-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359705#comment-17359705
 ] 

Sean Broeder commented on CALCITE-4633:
---------------------------------------

I don't envision a new rule for this, instead I would follow existing rules for 
trimming and the flow would be similar to how union all works.  You have give 
two great queries on the dev list indicating what should be returned as a 
result and I have verified that my proposed change returns what you've 
indicated is a correct result.  If you have any additional queries or rules 
where you think we cannot trim or that you think would expose incorrect 
results, please let me know.  I have not found an incorrect result so far.

> Enable RelFieldTrimmer to trim fields on a distinct UNION
> ---------------------------------------------------------
>
>                 Key: CALCITE-4633
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4633
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.26.0
>            Reporter: Sean Broeder
>            Assignee: Sean Broeder
>            Priority: Major
>             Fix For: 1.28.0
>
>
> Should be able to push a project to trim fields on top of distinct union 
> without changing results.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to