regression in optimizing filter push down of CAST + BETWEEN
- Lingua principale
- Rust
- Stelle
- 9.3k
- Fork
- 2.4k
- Merge medio
- 3g 11h
- PR unite (30g)
- 360
Descrizione
**Describe the bug**
There has been a regression (since a92119a0584322234a9005dc0897e94026464cad) in pushing BETWEEN expressions down to table scans.
## before
Table scan filter: CAST(col1 AS Int64) BETWEEN Int64(4) AND Int64(4) + Int64(3)
## after
Table scan filter: CAST(col1 AS Int64) >= Int64(4), CAST(col1 AS Int64) <= Int64(7)
Performing the CAST twice is not efficient.
**To Reproduce**
Steps to reproduce the behavior:
**Expected behavior**
A clear and concise description of what you expected to happen.
**Additional context**
Add any other context about the problem here.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina il commit di regressione a92119a0584322234a9005dc0897e94026464cad e traccia il percorso di filter-pushdown per CAST combinato con BETWEEN. Riproduci la modifica segnalata del filtro di table-scan e conferma che il risultato ottimizzato evita di valutare CAST due volte, preservando i limiti di BETWEEN.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- databases
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100