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

ASF GitHub Bot commented on TAJO-2135:
--------------------------------------

Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/1009#discussion_r61831279
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/engine/planner/physical/CommonJoinExec.java
 ---
    @@ -145,7 +145,7 @@ public JoinNode getPlan() {
        * @return True if an input tuple is matched to the left join filter
        */
       protected boolean leftFiltered(Tuple left) {
    -    return leftJoinFilter != null && !leftJoinFilter.eval(left).asBool();
    +    return leftJoinFilter != null && !leftJoinFilter.eval(left).isTrue();
    --- End diff --
    
    No, asBool() incurs an invalid cast exception. Please refer to 
https://en.wikipedia.org/wiki/Three-valued_logic.


> Invalid join result when join key columns contain nulls
> -------------------------------------------------------
>
>                 Key: TAJO-2135
>                 URL: https://issues.apache.org/jira/browse/TAJO-2135
>             Project: Tajo
>          Issue Type: Bug
>    Affects Versions: 0.11.0
>            Reporter: Jihoon Son
>            Assignee: Jihoon Son
>            Priority: Critical
>             Fix For: 0.12.0
>
>
> You can simply reproduce this bug as follows. The correct answer of the below 
> query is 20965674.
> {noformat}
> tpcds100> select count(*) from store_sales, store_returns 
> where 
> ss_customer_sk = sr_customer_sk 
> and ss_item_sk = sr_item_sk 
> ;
> [=========================================>] 100%  33.315 sec
> ?count
> -------------------------------
> 101145653
> (1 rows, 33.315 sec, 16 B selected)
> {noformat}



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

Reply via email to