phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maryann Xue (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PHOENIX-2274) Sort-merge join could not optimize out the sort on the right table
Date Mon, 21 Sep 2015 14:26:04 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Maryann Xue resolved PHOENIX-2274.
----------------------------------
    Resolution: Fixed

> Sort-merge join could not optimize out the sort on the right table
> ------------------------------------------------------------------
>
>                 Key: PHOENIX-2274
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2274
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.5.2
>            Reporter: Maryann Xue
>            Assignee: Maryann Xue
>            Priority: Minor
>         Attachments: PHOENIX-2274.patch
>
>
> {code}
> CREATE TABLE t (
>     mypk VARCHAR(100) NOT NULL PRIMARY KEY,
>     mycol VARCHAR(200));
> SELECT * FROM t t1 JOIN t t2 ON t1.mypk = t2.mypk;
> {code}
> would produce a plan like:
> {code}
> SORT-MERGE-JOIN (INNER) TABLES
>     CLIENT PARALLEL 1-WAY FULL SCAN OVER T
> AND
>     CLIENT PARALLEL 1-WAY FULL SCAN OVER T
>         SERVER SORTED BY [MYPK]
>     CLIENT MERGE SORT
> {code}
> , while it should have generated a plan like:
> {code}
> SORT-MERGE-JOIN (INNER) TABLES
>     CLIENT PARALLEL 1-WAY FULL SCAN OVER T
> AND
>     CLIENT PARALLEL 1-WAY FULL SCAN OVER T
> {code}



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

Mime
View raw message