4paradigm / 4paradigm/OpenMLDB

`LongWindowOptimized` pass should select the best pre-aggr table if there are multiple

Aperta
#2,461 0 commenti 0 reazioni 1 assegnatario Rivendicata da @zhanghaohit Vedi su GitHub
bug execute-engine
Lingua principale
C++
Stelle
1.7k
Fork
331
Merge medio
12g 12h
PR unite (30g)
1

Descrizione

**Bug Description**
Currently the `LongWindowOptimized` pass just select the first one pre-aggr table and use it.

**Expected Behavior**
Two possible solutions:
- only create one pre-aggr table if all the meta is same expect the bucket size
- select the best pre-aggr if there are multiple pre-aggr tables exists for the same meta

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Look for the LongWindowOptimized pass in the codebase, likely in a query optimizer or planner module. Identify where pre-aggregation tables are selected. Examine the metadata comparison logic to understand how to choose the 'best' table based on bucket size or other criteria. Running existing tests related to window optimization will help verify the fix.

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

Valutazione

Ambito
databases
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.