[ 
https://issues.apache.org/jira/browse/HUDI-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sagar Sumit closed HUDI-5155.
-----------------------------
    Fix Version/s: 0.13.0
       Resolution: Fixed

Fixed by 
[https://github.com/apache/hudi/commit/fe43e6f85d6d98db43b4fdc144654a07db032a28]

 

> hive reading rt table will get duplicate record
> -----------------------------------------------
>
>                 Key: HUDI-5155
>                 URL: https://issues.apache.org/jira/browse/HUDI-5155
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: hive
>    Affects Versions: 0.11.0
>            Reporter: wangwenli
>            Priority: Major
>             Fix For: 0.13.0
>
>
> hive read mor rt table, will get duplicated record in below case:
>  # using bucket index type
>  # say primary key 1 - 100,  set bucket number to 1
>  # insert 1 - 100 record ,compact it , one parquet file will be generated
>  # insert 1 - 100 record once again, but dont't compact it, so the data file 
> will contain 1 parquet file + 1 log file.
>  # select * from table where key=1,  you will get 2 record.
> the cause is  :
>   in HoodieMergeOnReadtableInputFormat ,the isSplitable will return true, it 
> will generate two map task, each task include the log file,  so each task 
> will return one record.
> pls refer this:
> https://github.com/apache/hudi/issues/4618



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

Reply via email to