[Feature] Support changelog production
还没有人认领这个 Issue。
评估
这个 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 天 30 分钟
- 30 天内合并 PR
- 77
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 30/100
apache/paimon-cpp#369 · 已指派 1 人 ·
-
enhancement
难度 5/5 一周以上 新手友好度 45/100
apache/paimon-cpp#361 · 已指派 1 人 ·
-
bug
难度 4/5 3-5 天 新手友好度 68/100
apache/paimon-cpp#347 · 已指派 1 人 ·
查看 apache/paimon-cpp 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
games-on-whales/wolf#509 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 74/100
NVIDIA/cuda-samples#453 ·