Make filters and ordering follow PostgreSQL comparison semantics

未关闭
#38 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
postgresql, rust
领域
backend, databases

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
Rust
星标
129
派生
7
平均合并
1 天 19 小时
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

juspay/streamgres 的其他 Issue

查看 juspay/streamgres 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。