4paradigm / 4paradigm/OpenMLDB

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

Offen
#2,461 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @zhanghaohit Auf GitHub ansehen
bug execute-engine
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

**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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.