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

pengzhiwei edited comment on HUDI-1550 at 1/27/21, 4:08 PM:
------------------------------------------------------------

Thanks [~shivnarayan] for your attention. I have noticed that 
DefaultHoodieRecordPayload has been introduced in the latest release. However 
it only work for write but not for merge on read. Because the follow code doest 
pass the PRECOMBINE FILED to the *combineAndGetUpdateValue* method.

!截屏2021-01-28 上午12.02.43.png!

And I also have a suggestion that we should make the 
*DefaultHoodieRecordPayload* as the  default payload class. It can reduce the 
use cost for user and ensure the correctness of the data.


was (Author: pzw2018):
Thanks [~shivnarayan] for your attention. I have noticed that 
DefaultHoodieRecordPayload has been introduced in the latest release. However 
it only work for write but not for merge on read. Because the follow code doest 
pass the PRECOMBINE FILED to the *combineAndGetUpdateValue* method.

!截屏2021-01-28 上午12.02.43.png!

And I also have a suggestion that we should make the 
*DefaultHoodieRecordPayload* as ** the  default payload class. It can reduce 
the use cost for user and ensure the correctness of the data.

> Incorrect query result for MOR table when merge base data with log
> ------------------------------------------------------------------
>
>                 Key: HUDI-1550
>                 URL: https://issues.apache.org/jira/browse/HUDI-1550
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: Spark Integration
>            Reporter: pengzhiwei
>            Assignee: pengzhiwei
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.8.0
>
>         Attachments: 截屏2021-01-28 上午12.02.43.png
>
>
> Table A is (id: int, value: string, ts: long), where "id" is the record key, 
> "ts" is the precombine key. Update table A with  the follow data:
> {code:java}
> (1, '10', 12)
> (1,'11', 10){code}
>  
> The result of  "select * from A where id = 1" should be *(1, '10', 12)*. 
> However hoodie currently return *(1, '11', 10)* which is not the right answer.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to