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

pengfei.zhan commented on KYLIN-5781:
-------------------------------------

h1. Description

When traversing the RelNode tree, subsequent traversal is used, and the stack 
is used to record some child nodes. The design is reasonable.

!KYLIN_5781.png!

 

For the RelNode tree shown above, the traversal process is:
Process a first and put it on the stack, then b and put it on the stack, then c 
and put it on the stack;
Process union 2, pop two nodes from the stack, namely c, b
The order of c, b does not match the original order.

 

> Adjust the query result order of sql with union
> -----------------------------------------------
>
>                 Key: KYLIN-5781
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5781
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Query Engine
>    Affects Versions: 5.0-beta
>            Reporter: pengfei.zhan
>            Assignee: pengfei.zhan
>            Priority: Major
>             Fix For: 5.0-beta
>
>         Attachments: KYLIN_5781.png
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to