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

Julian Hyde commented on CALCITE-889:
-------------------------------------

Further comments:
* Replace "SortProjectTransposeRule" comment.
* It is not valid to apply the rule if Union.all is false.
* It is not valid to apply the rule if Sort.offset is not null.
* If is valid to apply the rule if Sort.fetch is null, but pointless, given 
that union does not in general propagate sort order. Therefore I would apply 
the rule only if Sort.fetch is not null.
* We want this to be a general-purpose rule that can run in the VolcanoPlanner 
was well as HepPlanner, therefore the rule must not cast its inputs to 
HepRelVertex.

> Implement SortUnionTransposeRule
> --------------------------------
>
>                 Key: CALCITE-889
>                 URL: https://issues.apache.org/jira/browse/CALCITE-889
>             Project: Calcite
>          Issue Type: Sub-task
>            Reporter: Pengcheng Xiong
>            Assignee: Julian Hyde
>         Attachments: CALCITE-889.01.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to