Make filters and ordering follow PostgreSQL comparison semantics
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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 BYuse byte order even when the column’s collation sorts differently (for example,en_US). - Enum range filters and
ORDER BYsort labels as text instead of following enum declaration order. - Float
NaNnever matches a range condition. x NOT IN ()omits rows wherexisNULL, though PostgreSQL returns every row for an empty list.- With
ORDER BY … LIMIT, rows withNULLsort 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, emptyNOT INlists, andNULLordering withLIMITmatch PostgreSQL. - Tests compare engine results with PostgreSQL results for the cases above.
- Dominant language
- Rust
- Stars
- 129
- Forks
- 7
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from juspay/streamgres
-
Make the top-L client diff cost depend on what changed, not on the limitPossibly taken @SahilKhan101 claimed this 2 days ago. Openenhancement
juspay/streamgres#64 · 1 assignee ·
Maintainers usually reply within 1 day
-
Query optimisation: share initial snapshots across LIMIT variants of the same query (donor windows)Possibly taken @sprihaanand-juspay claimed this 3 days ago. Open
juspay/streamgres#58 · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 Over a week Newbie friendliness 38/100
juspay/streamgres#56 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
juspay/streamgres#55 ·
Maintainers usually reply within 1 day
-
PgBouncer transaction pooling: `prepare` runs outside the read transaction and can land on another backendPossibly taken @sprihaanand-juspay claimed this 6 days ago. Open
juspay/streamgres#53 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in juspay/streamgres
Similar issues
-
Test connection's password prompt says the password is never saved, also for a keychain profileOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
area: settings bug Haiku review: no-score ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainers usually reply within 1 day
-
Make the HTTP server's keep-alive and headers timeouts configurablePossibly taken @mattgodbolt claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day