feature: support string and binary view types in schema serialization

Aperta
#10,997 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, databases

Direzione di ricerca

Start with rust/lance-namespace/src/schema.rs and rust/lance/src/arrow/json.rs, then inspect the existing schema conversion and Arrow JSON tests. Check how nested fields, nullability, field and schema metadata, and extension metadata are handled. Add focused coverage for namespace value-schema conversion and Arrow JSON round trips; done means both support view types while preserving their distinct contracts.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature

String/binary View arrays are supported in parts of Lance, but schema serialization still has gaps: the namespace schema converter explicitly rejects Utf8View/BinaryView, and Lance Arrow JSON does not include these representations in its primitive type mapping.

Acceptance:

  • Support Utf8View and BinaryView in namespace schema conversion according to its value-schema contract (mapping to utf8/binary where appropriate).
  • Support explicit string_view/binary_view representations in Lance Arrow JSON serialization and deserialization so this interface can round-trip the Arrow representation.
  • Preserve nested fields, nullability, and field/schema metadata, including extension metadata.
  • Keep the two serializers' contracts distinct; do not claim namespace value-schema normalization preserves the original Arrow layout.
  • Add focused schema conversion/round-trip coverage. No canonical decimal model, dataset migration, or new table format flag is required.

Source references: namespace schema conversion, Lance Arrow JSON. Source inspection only.

Extracted from #9496 while closing #9570. Related to the View support tracked in #7069, but independently useful to schema consumers.

Lingua principale
Rust
Stelle
7.3k
Fork
929
Merge medio
2g 22h
PR unite (30g)
572

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lance-format/lance

Tutte le issue di lance-format/lance

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.