feat(writer): write vortex.union (declared in Rust's unstable2026.10.0 edition)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 3
- フォーク
- 2
- 平均マージ
- 10時間 41分
- マージ済み PR(30日)
- 136
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dfa1/vortex-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dfa1/vortex-java#666 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
dfa1/vortex-java#664 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
dfa1/vortex-java#663 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
dfa1/vortex-java#662 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dfa1/vortex-java#657 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
dfa1/vortex-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
scylladb/scylla-cdc-source-connector#402 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ahmedmmordi/store-app#8 ·
-
jhipster heroku fails on heroku git:remote when reusing an existing app outside a git repositoryオープンarea: triage theme: undefined
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jhipster/generator-jhipster#36018 ·
メンテナーはふだん 1 日以内に返信