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

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

{quote}I would like to know the currentRel’s type (whether it is Sort or not) 
which is wrapped in HepRelVertex. That is the reason why I do a cast. I know 
this will only work for HepPlanner. Could you please let me know what should I 
do to extend this to work for VolcanoPlanner? If there is any example rules 
that apply to VolcanoPlanner, could you point me there and let me take a 
look?{quote}

I don't think you need to look for a Sort explicitly. You should look for an 
input where you don't need to push down. What [~jcamachorodriguez] did in 
SortJoinTransposeRule CALCITE-892 was to look for inputs whose estimated row 
count is less than the limit. Such inputs have probably had the rule applied 
already. I think you could do the same.

> 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