feat(writer): write vortex.union (declared in Rust's unstable2026.10.0 edition)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 3
- Forks
- 2
- Merge medio
- 10 h 41 min
- PR fusionados (30 d)
- 136
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dfa1/vortex-java
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dfa1/vortex-java#666 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
dfa1/vortex-java#664 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
dfa1/vortex-java#663 ·
Los mantenedores suelen responder en 1 día
-
Canonical Decimal encodingAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
dfa1/vortex-java#662 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
dfa1/vortex-java#657 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de dfa1/vortex-java
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Dans-Plugins/Medieval-Roleplay-Engine#400 ·
Los mantenedores suelen responder en 1 día
-
good first issue runtime
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
JackFurton/who-would-build-a-kernel-in-java#250 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Vakore/ZappierGames#262 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
scylladb/scylla-cdc-source-connector#402 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día