nd: replace the per-operator optimizer rules with one boundary rule

Aperta
#447 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
46/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reading the implementations of NdFilterPushdown and NdProjectionPushdown and the plan node definitions they match; the issue does not name file paths or tests. Implement and exercise the shared boundary rule, including both mixed-plan orderings, then verify that EXPLAIN shows the nd region and both pushdowns still work.

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

Descrizione

effort-M enhancement nd-pipeline phase-2-optimizer shape-grid shape-profile

Part of #442. Phase 2. Shape: both. Effort: M.
Depends on: #444.

Why

NdFilterPushdown and NdProjectionPushdown each match one plan shape.
Twelve new nodes would need twelve rules plus a rule order.

What

Write one rule. The rule raises the nd region boundary.

Loop:
  find the top of each nd region (the NdBroadcastExec)
  ask the node above the boundary: does the node operate on grids?
  yes -> sink the node below the boundary
  no  -> stop

  FilterExec                 NdBroadcastExec
    NdBroadcastExec    =>      NdFilterExec
      nd child                   nd child

Each node kind supplies one sink check.
A new node then adds one function, not one rule.

Tasks

  • Write the boundary rule.
  • Port the filter pushdown and the projection pushdown onto the rule.
  • Show the nd region in EXPLAIN.
  • Test a mixed plan: a sinkable node above an unsinkable node, and the reverse.
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.