[BUG] Filtering on built-in columns (createdAt, updatedAt) silently returns zero rows
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
Start with the v1 tables rows endpoint and its filter handling, then compare built-in-column filtering with the sort builder behavior described in the issue. Reproduce the createdAt range query and verify that filters on createdAt, updatedAt, and id return matching rows rather than an empty result.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
The docs state that createdAt, updatedAt, and id are built-in columns that "you can still filter and sort on". Sorting on these works. Filtering on them does not. Any filter referencing a built-in column silently matches nothing and returns an empty result set.
To Reproduce
Via the v1 API:
GET /api/v1/tables/{tableId}/rows?workspaceId={wsId}&filter={"createdAt":{"$gte":"2026-07-24T03:00:00.000Z","$lte":"2026-07-25T02:59:59.999Z"}}
With a string value, returns 400 Bad Request:
{
"error": "Range operator on column \"createdAt\" (number) requires a number, got string"
}
With a numeric value (Unix timestamp)
{ "rows": [], "rowCount": 0, "totalCount": 0 }
Passes validation, but returns empty results. No error, no warning, just zero rows regardless of how many rows match the range.
Expected behavior
Filters on createdAt / updatedAt / id compare against the top-level row columns (user_table_rows.createdAt, etc.) and return matching rows, mirroring the behavior the sort builder already provides.
Additional context
I think I can open a PR to solve this, if this intend to work the way I've described it.
- 主要语言
- TypeScript
- 星标
- 29.8k
- 派生
- 3.9k
- 平均合并
- 1 小时 44 分钟
- 30 天内合并 PR
- 841
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
simstudioai/sim 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
simstudioai/sim#9831 ·
维护者通常 1 天内回复
-
v2 API rate limits self-hosted installs by IP even with billing disabled可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 75/100
simstudioai/sim#8452 ·
维护者通常 1 天内回复
-
Railway template generates invalid ENCRYPTION_KEY (should be 64-char hex string)可能重新可做 @sahooarnav2007-gif 于 15 天前认领,目前没有进行中的 PR。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
simstudioai/sim#6246 · 3 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
simstudioai/sim#1204 · 8 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
simstudioai/sim#9734 ·
维护者通常 1 天内回复
相似的 Issue
-
Bug: Cloudflare Pages static _redirects identity rule causes RSC Flight to reload as HTML可能已有人在做 @Donvero 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Mantitup-Org/vista#210 ·
-
status: waiting for maintainer
难度 2/5 1-3 小时 新手友好度 88/100
mui/material-ui#49751 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
diplodoc-platform/transform#1184 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
JonasKruckenberg/imagetools#973 ·
维护者通常 1 天内回复