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

Hudson commented on TAJO-1275:
------------------------------

SUCCESS: Integrated in Tajo-master-build #529 (See 
[https://builds.apache.org/job/Tajo-master-build/529/])
TAJO-1275: Optimizer pushs down non-equi filter as theta join qualifier 
(sirpkt: rev 9e329a5509b71fa412299169dd3c866e54f46c77)
* 
tajo-core/src/test/resources/results/TestJoinQuery/testRightOuterJoinWithThetaJoinConditionInWhere.result
* 
tajo-core/src/test/resources/results/TestJoinQuery/testInnerJoinWithThetaJoinConditionInWhere.result
* CHANGES
* 
tajo-core/src/test/resources/queries/TestJoinQuery/testCrossJoinWithThetaJoinConditionInWhere.sql
* 
tajo-core/src/test/resources/queries/TestJoinQuery/testLeftOuterJoinWithThetaJoinConditionInWhere.sql
* tajo-core/src/test/java/org/apache/tajo/engine/query/TestJoinQuery.java
* 
tajo-core/src/test/resources/queries/TestJoinQuery/testRightOuterJoinWithThetaJoinConditionInWhere.sql
* 
tajo-core/src/test/resources/queries/TestJoinQuery/testInnerJoinWithThetaJoinConditionInWhere.sql
* 
tajo-plan/src/main/java/org/apache/tajo/plan/rewrite/rules/FilterPushDownRule.java
* 
tajo-core/src/test/resources/results/TestJoinQuery/testLeftOuterJoinWithThetaJoinConditionInWhere.result
* 
tajo-core/src/test/resources/results/TestJoinQuery/testCrossJoinWithThetaJoinConditionInWhere.result
* tajo-core/src/test/java/org/apache/tajo/engine/planner/TestLogicalPlanner.java


> Optimizer pushs down non-equi filter as theta join qualifier
> ------------------------------------------------------------
>
>                 Key: TAJO-1275
>                 URL: https://issues.apache.org/jira/browse/TAJO-1275
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Keuntae Park
>            Assignee: Keuntae Park
>            Priority: Minor
>
> Plan rewriter pushes down filters to leaf node as possible and changes filter 
> condition to join qualifier if possible.
> Even though Tajo does not support theta-join completely, however,
> it pushes down non-equi compare and makes it as join qualifier sometimes.
> For example,
> {code}
> select * from (select a.r_name as a_name, b.c_name as c_name from region a, 
> customer b) xx where a_name < c_name
> {code}
> is rewritten as
> {code}
> select a.r_name as a_name, b.c_name as c_name from region a join customer b 
> on a.r_name < b.c_name
> {code}
> And 
> {code}
> select * from region a join customer b on a.r_regionkey = b.c_custkey where 
> a.r_name < c.c_name
> {code}
> is rewritten as
> {code}
> select * from region a join customer b on a.r_regionkey = b.c_custkey and 
> a.r_name < c.c_name
> {code}
> Until TAJO-742 is resolved (that means theta join is supported),
> I think it should not be allowed to rewrite non-equi filter condition as join 
> qualifier.



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

Reply via email to