Naresh P R created HIVE-27069:
---------------------------------

             Summary: Incorrect results with bucket map join
                 Key: HIVE-27069
                 URL: https://issues.apache.org/jira/browse/HIVE-27069
             Project: Hive
          Issue Type: Bug
            Reporter: Naresh P R
         Attachments: test.q

Attaching test.q file for repro.

Following query in testcase is expected to produce 9 records, but it is 
producing 5 records.
{code:java}
select * from DUP_TEST_TARGET T join (SELECT id , in_date , sample FROM (SELECT 
id , in_date , sample ,ROW_NUMBER()
OVER(PARTITION BY id ORDER BY in_date DESC ) AS ROW_NUMB  FROM DUP_TEST) 
OUTQUERY WHERE ROW_NUMB =1) as S ON T.id = S.id;{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to