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

Hudson commented on TAJO-1277:
------------------------------

SUCCESS: Integrated in Tajo-master-build #585 (See 
[https://builds.apache.org/job/Tajo-master-build/585/])
TAJO-1277: GreedyHeuristicJoinOrderAlgorithm sometimes wrongly assumes 
associativity of joins. (Keuntae Park via jihoon) (jihoonson: rev 
95d9cc455dd7d25da6dd0df709084d7346efb410)
* 
tajo-core/src/test/resources/queries/TestJoinQuery/testJoinWithMultipleJoinTypes.sql
* 
tajo-core/src/test/resources/results/TestJoinQuery/testJoinWithMultipleJoinTypes.result
* tajo-core/src/test/java/org/apache/tajo/engine/query/TestJoinQuery.java
* CHANGES
* 
tajo-plan/src/main/java/org/apache/tajo/plan/joinorder/GreedyHeuristicJoinOrderAlgorithm.java


> GreedyHeuristicJoinOrderAlgorithm sometimes wrongly assumes associativity of 
> joins
> ----------------------------------------------------------------------------------
>
>                 Key: TAJO-1277
>                 URL: https://issues.apache.org/jira/browse/TAJO-1277
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Keuntae Park
>            Assignee: Keuntae Park
>
> It looks like GreedyHeuristicJoinOrderAlgorithm always assumes every joins 
> are associative.
> Following query returns in inaccurate result:
> {code}
> select * FROM
> customer c 
> right outer join nation n on c.c_custkey = n.n_nationkey
> join region r on c.c_custkey = r.r_regionkey;
> {code}
> because GreedyHeuristicJoinOrderAlgorithm changes join order as
> {code}
> select * FROM
> customer c 
> join region r on c.c_custkey = r.r_regionkey
> right outer join nation n on c.c_custkey = n.n_nationkey;
> {code}
> I think getBestPair() should be fixed to avoid wrong join ordering. 



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

Reply via email to