[Feature] Support changelog production
まだ誰も着手していません。
評価
この issue はまだ評価されていません。
説明
Search before asking
- I searched in the issues and found nothing similar.
Motivation
Java Paimon supports producing changelog files for primary-key tables through the
changelog-producer option, including input, lookup, and full-compaction
modes.
Paimon C++ already contains part of the required infrastructure, such as:
- Parsing the
changelog-produceroption. - Changelog file metadata in
DataIncrementandCompactIncrement. - Changelog manifest and snapshot commit support.
- Lookup changelog merge functions and changelog compaction rewriters.
- Streaming changelog scans and the
audit_logandbinlogsystem tables.
However, schema validation currently rejects every value except none, and the
writer does not produce changelog files. As a result, primary-key tables written
by Paimon C++ cannot provide the same changelog behavior as tables written by
Java Paimon.
Supporting Java-compatible changelog production would enable incremental
downstream consumption and improve interoperability between Java Paimon and
Paimon C++.
Solution
Implement changelog production for Paimon C++ primary-key table writes, aligned
with Java Paimon semantics and storage format.
The implementation should cover the following producer modes:
-
input- Preserve input row kinds and double-write input changes to changelog files.
- Attach generated changelog files to the corresponding data increment.
-
lookup- Look up the previous value of each primary key when necessary.
- Produce the correct
INSERT,UPDATE_BEFORE,UPDATE_AFTER, andDELETE
records. - Generate changelog files while compacting level-0 data.
-
full-compaction- Produce changelog files during full compaction by comparing the compacted
result with the previous table state.
- Produce changelog files during full compaction by comparing the compacted
The generated changelog files should:
- Use the same file schema, row-kind encoding, metadata, and directory layout as
Java Paimon. - Be committed through changelog manifests and referenced by the snapshot.
- Be readable through streaming scans,
audit_log, andbinlog. - Work correctly with supported merge engines, sequence fields, partitions, and
bucket modes. - Either support deletion vectors consistently with Java Paimon or reject
unsupported combinations with a clear validation error. - Be included in commit metrics, expiration, rollback, and orphan-file cleanup.
The feature can be delivered incrementally, with separate pull requests for each
changelog producer mode.
Anything else?
No response
Are you willing to submit a PR?
- I'm willing to submit a PR!
- 主要言語
- C++
- スター
- 65
- フォーク
- 29
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 78
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/paimon-cpp のほかの issue
-
enhancement
apache/paimon-cpp#381 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
apache/paimon-cpp#375 · 担当者 1 名 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
apache/paimon-cpp#361 · 担当者 1 名 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
apache/paimon-cpp#325 · 担当者 1 名 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/paimon-cpp#319 · リアクション 1 件 · 担当者 1 名 ·
apache/paimon-cpp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
objectionary/eo-graphs#74 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
QuantStack/git2cpp#187 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100