Make filters and ordering follow PostgreSQL comparison semantics

Aperta
#38 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
postgresql, rust
Ambito
backend, databases

Direzione di ricerca

Start by locating the engine’s filter comparison and ORDER BY code, then read how it represents PostgreSQL types, collations, enums, and NULL values. Add cases that compare engine results with PostgreSQL for each listed behavior, including NaN, empty NOT IN, and LIMIT ordering. Done means all acceptance criteria pass; the issue does not name specific files or tests.

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

Descrizione

Problem

Some filters and ordering operations do not match PostgreSQL:

  • Types not modeled by the engine (including interval, inet, cidr, macaddr, timetz, and ranges) are compared as text.
  • citext, char(n), and text using nondeterministic collations are compared byte by byte.
  • Text range filters and ORDER BY use byte order even when the column’s collation sorts differently (for example, en_US).
  • Enum range filters and ORDER BY sort labels as text instead of following enum declaration order.
  • Float NaN never matches a range condition.
  • x NOT IN () omits rows where x is NULL, though PostgreSQL returns every row for an empty list.
  • With ORDER BY … LIMIT, rows with NULL sort values can be excluded from the limited window even when PostgreSQL would include them.

Expected behavior

Filters and ordering should produce results consistent with PostgreSQL for these types, collations, NULL values, and edge cases.

Acceptance criteria

  • Comparisons for the listed types match PostgreSQL semantics, or unsupported types are handled explicitly rather than silently compared as text.
  • Text comparison and ordering respect the column’s collation and type.
  • Enum comparisons and ordering respect declaration order.
  • NaN, empty NOT IN lists, and NULL ordering with LIMIT match PostgreSQL.
  • Tests compare engine results with PostgreSQL results for the cases above.
Lingua principale
Rust
Stelle
129
Fork
7
Merge medio
1g 19h
PR unite (30g)
5

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 juspay/streamgres

Tutte le issue di juspay/streamgres

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.