[ 
https://issues.apache.org/jira/browse/HIVE-25721?focusedWorklogId=684523&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684523
 ]

ASF GitHub Bot logged work on HIVE-25721:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Nov/21 05:46
            Start Date: 22/Nov/21 05:46
    Worklog Time Spent: 10m 
      Work Description: SparksFyz commented on pull request #2798:
URL: https://github.com/apache/hive/pull/2798#issuecomment-975148856


   @kgyrtkirk Could you take a look? Thanks~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 684523)
    Time Spent: 0.5h  (was: 20m)

> Outer join result is wrong
> --------------------------
>
>                 Key: HIVE-25721
>                 URL: https://issues.apache.org/jira/browse/HIVE-25721
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: All Versions
>            Reporter: Yizhen Fan
>            Assignee: Yizhen Fan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-25721.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Outer Join results is wrong, here is a left join case.
> select b.fields from a left join b on a.key=b.key and a.filter=xxx
> there are some necessary condition to produce this problem:
>  # `select` clause only contains right table fields
>  # `on` clause contains left table condition, and this condition can filter 
> records 
> h3. cause:
> candidateStorage[tag].addRow(value); // CommonMergeJoinOperator.process
> row of left table cannot be add into row container because tblDesc of left 
> table is null, while left table data can not be ignored in this case.
> h3. Reproducible steps are mentioned below.
> --------------------------------------------
> set hive.auto.convert.join=false;
> create table t_smj_left (key string, value int);
> insert into t_smj_left values
> ('key1', 1),
> ('key1', 2);
> create table t_smj_right (key string, value int);
> insert into t_smj_right values
> ('key1', 1);
> select
> t2.value
> from t_smj_left t1
> left join t_smj_right t2 on t1.key=t2.key and t1.value=2;
>  
> Result:
> ----------------------------+
> NULL
> NULL
> ----------------------------+
> Expected Output:
> ----------------------------+
> 1
> NULL
> ----------------------------+



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to