apache / apache/paimon

[Feature] Support writing to branch during CDC

Open
#4,771 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Motivation

Some time, user want to sync data batchly when CDC task running. And no data overwriting is expected, which means even for the same record (identified by the PK). The late arrived CDC data could not overwrite the offline data.

### Solution

Use a dedicated fallback realtime branch for the CDC sinking.
The branch name could be provided with the following option:
```shell
--table-branch tablename=branch_name
```

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests; start by locating the CDC sink and the parser for the `--table-branch` option. Done means CDC writes each configured table to its dedicated fallback branch without overwriting offline data, including records with the same primary key.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering, stream-processing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.