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

James Taylor commented on PHOENIX-1580:
---------------------------------------

No, that's not correct. The inner query plans should not be instances of 
UnionPlan. Are they?

The query plan should look like this:
{code}
UNION ALL OVER 2 QUERIES
CLIENT PARALLEL 1-WAY FULL SCAN OVER TEST_TABLE
    SERVER TOP 1 ROW SORTED BY [COL1]
CLIENT MERGE SORT
CLIENT PARALLEL 1-WAY FULL SCAN OVER B_TABLE
    SERVER TOP 1 ROW SORTED BY [COL1]
CLIENT MERGE SORT
CLIENT MERGE SORT
{code}

It'd be better if it indented the inner steps, though, like this:
{code}
UNION ALL OVER 2 QUERIES
    CLIENT PARALLEL 1-WAY FULL SCAN OVER TEST_TABLE
        SERVER TOP 1 ROW SORTED BY [COL1]
    CLIENT MERGE SORT
    CLIENT PARALLEL 1-WAY FULL SCAN OVER B_TABLE
        SERVER TOP 1 ROW SORTED BY [COL1]
    CLIENT MERGE SORT
CLIENT MERGE SORT
{code}


> Support UNION ALL
> -----------------
>
>                 Key: PHOENIX-1580
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1580
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Alicia Ying Shu
>            Assignee: Alicia Ying Shu
>         Attachments: PHOENIX-1580-grammar.patch, Phoenix-1580-v1.patch, 
> Phoenix-1580-v2.patch, Phoenix-1580-v3.patch, Phoenix-1580-v4.patch, 
> Phoenix-1580-v5.patch, Phoenix-1580-v6.patch, Phoenix-1580-v7.patch, 
> Phoenix-1580-v8.patch, phoenix-1580-v1-wipe.patch, phoenix-1580.patch, 
> unionall-wipe.patch
>
>
> Select * from T1
> UNION ALL
> Select * from T2



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

Reply via email to