nd: replace the cell selection with a four-state selection lattice

Aperta
#443 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with nd/batch.rs and read how with_selection, num_rows, and materialize handle the current selection. Then trace the BroadcastMap gather path and the filter and consumer entry points to see how selection states flow through the batch. Done means tests cover each state and transitions, and a one-axis filter returns AxisIndices so the batch reports itself as a rectangle.

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

Descrizione

effort-L enhancement nd-pipeline phase-1-foundations shape-grid shape-profile

Part of #442. Phase 1. Shape: both. Effort: L (3 to 4 weeks).
Keystone: most other sub-issues depend on this issue.

Why

NdRecordBatch::selection holds one flat list of kept cell indices.
After a filter, the batch is not a rectangle.
Only NdBroadcastExec can consume this form.
No reduce, sink, or coarsen node can follow a filter.

What

Add a selection type with four states. Order the states from coarse to fine.

Full          keep all cells
AxisIndices   keep an index set for each axis; the result is a rectangle
Ragged        keep a valid length for each outer index; profile files need this state
CellMask      keep an explicit cell set; only a broadcast consumes this state

A filter returns the coarsest state that holds its result.
Each consumer declares the finest state that it accepts.

Tasks

  • Add the selection enum to nd/batch.rs.
  • Port with_selection, num_rows, and materialize to the new type.
  • Fuse AxisIndices into the BroadcastMap gather.
  • Keep the current gather path for CellMask.
  • Test each state and each state change.

Done when

A one-axis filter returns AxisIndices.
The batch after the filter reports itself as a rectangle.

Lingua principale
Rust
Stelle
16
Fork
4
Merge medio
19h 58m
PR unite (30g)
39

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 maris-development/beacon

Tutte le issue di maris-development/beacon

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.