nd: route filter conjuncts by footprint in NdFilterExec

Aperta
#448 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Start by reading NdFilterExec and the work in dependency #443 to understand how filter conjuncts and footprints are represented. Then trace how the current full-grid CellMask is built. Done means routing conjuncts to AxisIndices, Ragged, a spatial box, or residual CellMask as described, and removing the full-grid mask allocation.

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

Descrizione

effort-M enhancement nd-pipeline phase-3-structure shape-grid shape-profile

Part of #442. Phase 3. Shape: both. Effort: M.
Depends on: #443.

Why

The current filter builds a mask over the full grid for each conjunct.
A one-axis predicate then costs the full cell product.
The result is always a CellMask, so the rectangle dies.

What

Route each conjunct by its footprint.
The footprint is the axis set of the input columns of the conjunct.

WHERE lat BETWEEN 40 AND 50       footprint {lat}      -> narrow the lat axis
WHERE LATITUDE BETWEEN 40 AND 50  footprint {N_PROF}   -> narrow the N_PROF axis
WHERE st_within(lon, lat, poly)   box                  -> narrow lon and lat, then mask the rest
WHERE PRES < 100                  monotone inner axis  -> Ragged prefix
WHERE sst > 5                     full rank            -> CellMask

The axis result:

Before:                       After lat BETWEEN 15 AND 35:
  lat:  [0 10 20 30 40]         lat:  [20 30]
  time: [t0 t1 t2]              time: [t0 t1 t2]
  sst:  5 x 3 cells             sst:  2 x 3 cells (a rectangle)

Apply the one-axis conjuncts first.
A residual mask then covers the small grid only.

Tasks

  • Classify each conjunct by footprint.
  • Emit AxisIndices for a one-axis conjunct.
  • Emit Ragged for a monotone inner-axis predicate.
  • Extract the box from st_within and st_intersects.
  • Emit CellMask for the rest.
  • Remove the full-grid mask allocation.
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.