Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add tests for IN-list filter pruning and NOT filter behavior

Aperta
#124 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
47/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, rust
Ambito
databases, testing

Direzione di ricerca

Start by locating the TestFilterPushdown suite and the Rust in_list_excludes() method mentioned in the issue. Add regression coverage for IN-list partition pruning and both NOT comparison cases, using the four-partition example as a guide. Done means the tests verify that only partitions whose ranges may contain matching values are read.

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

Descrizione

enhancement

Problem

The TestFilterPushdown suite is missing coverage for two cases:

1. IN-list pruning

The Rust in_list_excludes() method is implemented but never exercised by tests. A test should verify that WHERE dim IN (v1, v2) prunes partitions where none of v1, v2 fall within the partition range.

Example: 4 time partitions, WHERE time IN ('2020-01-05', '2020-01-10') should read only partition 0.

2. NOT filter behavior

The Expr::Not arm previously had a correctness bug (now fixed). A regression test should verify:

  • NOT (col > X) correctly includes partitions containing values ≤ X
  • NOT (col < X) correctly includes partitions containing values ≥ X

Why now

Adding these tests serves as a regression guard to confirm that the Expr::Not fix remains correct and that IN-list pruning works as advertised. Without them, future changes to the pruning logic could silently regress.

Lingua principale
Python
Stelle
142
Fork
19
Merge medio
1g 9h
PR unite (30g)
9

Preparare l'ambiente

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 xqlsystems/xarray-sql

Tutte le issue di xqlsystems/xarray-sql

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.