[Feature] Support changelog production
Dieses Issue hat noch niemand übernommen.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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!
- Vorherrschende Sprache
- C++
- Sterne
- 65
- Forks
- 29
- Ø Merge
- 2 T. 30 Min.
- Gemergte PRs (30 T.)
- 77
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus apache/paimon-cpp
-
enhancement
apache/paimon-cpp#381 · 1 zugewiesene Person ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
apache/paimon-cpp#375 · 1 zugewiesene Person ·
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
apache/paimon-cpp#369 · 1 zugewiesene Person ·
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
apache/paimon-cpp#361 · 1 zugewiesene Person ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
apache/paimon-cpp#347 · 1 zugewiesene Person ·
Alle Issues in apache/paimon-cpp
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
AXERA-TECH/ax-llm#77 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
games-on-whales/wolf#509 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
-
bug-unconfirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
NVIDIA/cuda-samples#453 ·