[Feature] Support File Index V2 and streaming index writes
Maintainer antworten meist innerhalb von 3 Tagen
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Start by reading the existing File Index container and write path, then compare the V2 layout with the Java reference PR #10101 and the related work in #173. The issue names no source files or tests, so locate the container, writer, plugin interfaces, and spillable output stream before estimating the changes. Done means V1 compatibility remains, V2 reads and writes Java-compatible bytes, and the listed payload, empty-index, and spill-threshold cases are covered; an open linked PR #446 is already working on it.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Search before asking
- I searched in the issues and found no existing issue specifically tracking File Index V2.
Motivation
The V1 File Index container uses 32-bit payload offsets and lengths. The existing write path also materializes serialized index payloads and the complete container in memory before deciding whether to embed the index or write an external file. These limitations make it difficult to support large index artifacts, especially vector indexes.
Java Paimon introduced a V2 container with 64-bit payload ranges and a streaming write interface. Paimon C++ should support the same format while retaining V1 compatibility.
Solution
- Add V2 container reading and writing, with int64 payload offsets and lengths and a footer/trailer layout aligned with Java Paimon.
- Support
file-index.format-versionvalues1and2, keeping V1 as the default. - Add
FileIndexWriter::WriteTo()so plugins can write payloads directly to a caller-owned stream. Keep a default implementation based onSerializedBytes()and implement direct streaming output for Lumina. - Widen plugin reader offsets and lengths to int64, with plugin-specific size limits checked inside the affected plugins.
- Integrate a spillable output stream into the data-file index write path, embedding small containers and spilling larger ones to external files without buffering the complete V2 container.
- Add focused coverage for V1 compatibility, Java-generated V2 golden bytes, large payload ranges, empty indexes, and spill thresholds.
The V2 container's 64-bit ranges do not imply that every index plugin supports payloads larger than 2 GiB; individual plugin serialization formats may retain their own limits.
Anything else?
Java reference: https://github.com/apache/paimon/pull/10101
Related to File Index writing in #173.
Are you willing to submit a PR?
- I'm willing to submit a PR!
- Vorherrschende Sprache
- C++
- Sterne
- 68
- Forks
- 34
- Ø Merge
- 4 T. 37 Min.
- Gemergte PRs (30 T.)
- 35
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
apache/paimon-cpp#435 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
apache/paimon-cpp#410 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
apache/paimon-cpp#409 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
apache/paimon-cpp#408 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
apache/paimon-cpp#407 ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in apache/paimon-cpp
Ähnliche Issues
-
(S1 - Need confirmation)
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
CleverRaven/Cataclysm-DDA#89194 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
moonshine-ai/moonshine#231 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue M7: multi-node no hardware needed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
GageLawton/noise-cancellation#299 ·
Maintainer antworten meist innerhalb von 1 Tag