Make filters and ordering follow PostgreSQL comparison semantics

Offen
#38 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
postgresql, rust
Bereich
backend, databases

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Rust
Sterne
129
Forks
7
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus juspay/streamgres

Alle Issues in juspay/streamgres

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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