feat(writer): write vortex.union (declared in Rust's unstable2026.10.0 edition)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
Rechercherichtung
Read #442 for the union wire layout, then inspect UnionEncodingEncoder registration in writer.encode and the cascade logic in vortex-compressor/src/compressor/cascade.rs. Check edition-family handling against ADR 0023 and the unstable declarations in vortex/editions/unstable/unstable2026.10.0.toml. Done means writing and cascading unions with unstable-edition gating, correcting docs/compatibility.md, and adding cross-language coverage; the issue lists a Rust-native harness as the first testing option.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Write side of #442. #442 deferred the writer because vortex.union was in no Rust edition ("Revisit when an edition declares it"). That is no longer true: Rust's unstable2026.10.0 edition (vortex/editions/unstable/unstable2026.10.0.toml, vortex-edition/src/declarations/unstable/mod.rs) lists vortex.union. docs/compatibility.md (lines 39, 150) still says "in no edition" and needs correcting as part of this.
Scope
UnionEncodingEncoderinwriter.encode, registered inWriteRegistry.Builder#registerDefaults(): type ids (U8, nullable iff the union is) + one row-aligned child per variant, no metadata, no buffers (Rust rejects either). Layout per #442.- Cascading: compress
type_idsand each child independently and rebuild the union, asvortex-compressor/src/compressor/cascade.rsdoes. - Edition gating: Rust now has an
unstablefamily;EditionFamilyisCORE/PREVIEW/ZSTD. Decide whether to add it (ADR 0023 says closed enum mirroring Rust's families, so probably yes) and make a default write never emitvortex.union. - Update
docs/compatibility.md, AGENTS.md if the edition family changes, CHANGELOG.
Testing (vortex-jni cannot help: vortex-arrow bails on DataType::Union)
Ideas, cheapest first:
- Rust-native cargo harness (as for the Pco encoder): a small Rust program linking
vortex-array/vortex-filethat (a) reads a Java-written file and dumps the array tree + values, and (b) builds aUnionArrayand writes it with the unstable edition, so Java reads real Rust output. This also gives the #442 decoder its first real-producer coverage. - Rust-side
vtx/vortex-tuibrowse on a Java-written file, as a quick manual smoke check. - Byte-compare node trees: write the same logical union through the Rust harness and Java, diff the
ArrayNodetrees (the replicate-JNI-on-size-gaps approach). - Reuse Rust's own test vectors in
vortex-array/src/arrays/union/testsas unit fixtures. - Keep the hand-built reader tests from #442; add random unions via a seeded
@MethodSource(variant counts 1..256, non-consecutive type ids, null tags, nested union children).
Open question: is the unstable edition's vortex.union wire layout final? It makes no stability promise, so changes may follow.
- Vorherrschende Sprache
- Java
- Sterne
- 3
- Forks
- 2
- Ø Merge
- 10 Std. 41 Min.
- Gemergte PRs (30 T.)
- 136
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine 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 dfa1/vortex-java
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
dfa1/vortex-java#666 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
dfa1/vortex-java#664 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
dfa1/vortex-java#663 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
dfa1/vortex-java#662 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
dfa1/vortex-java#657 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in dfa1/vortex-java
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
[Bug]: NetworkPolicyOperator removes finalizers added by the EKS network policy controller, which adds them backEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offenbug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
strimzi/strimzi-kafka-operator#13360 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
NationalSecurityAgency/ghidra#10149 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100
yegor256/antlr2ebnf-maven-plugin#155 ·
Maintainer antworten meist innerhalb von 1 Tag