You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Ethan Guo (Jira)" <ji...@apache.org> on 2024/09/23 17:20:00 UTC

[jira] [Reopened] (HUDI-6909) Handle `_hoodie_operation` field in the new HoodieFileGroupReader

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

Ethan Guo reopened HUDI-6909:
-----------------------------

[~linliu] Have you verified the following case: write a table using Flink with CDC and `_hoodie_operation` meta field enabled, that contains inserts, updates, and deletes, using MOR; query the table in Flink and Spark (with and without file group reader) so the results are the same, ensuring the `_hoodie_operation` is handled correctly?

> Handle `_hoodie_operation` field in the new HoodieFileGroupReader
> -----------------------------------------------------------------
>
>                 Key: HUDI-6909
>                 URL: https://issues.apache.org/jira/browse/HUDI-6909
>             Project: Apache Hudi
>          Issue Type: Task
>            Reporter: Ethan Guo
>            Assignee: Lin Liu
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>
> Goal: The meta field `_hoodie_operation` should be properly handled in the HoodieFileGroupReader for CDC use cases:
>  # the record needs to be ignored for snapshot queries.
>  # for streaming queries, we should emit it out for downstream operators to do retractions.
> Spark integration with NewHoodieParquetFileFormat and HoodieFileGroupReader should handle `_hoodie_operation` correctly.
>  
> Currently, only Flink reader fully supports `_hoodie_operation`.  By supporting `_hoodie_operation` in HoodieFileGroupReader, all engines can handle `_hoodie_operation` properly.  
>  
> See the following for more context:
> [https://github.com/apache/hudi/pull/8721]
> [https://github.com/apache/hudi/pull/9624#discussion_r1340788640] 
>  



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