UpdateItem: ADD through a missing parent map creates the map, and DynamoDB refuses the path
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 crates/core/src/expression/update_evaluator.rs,重点查看 navigate_to_parent_map_or_create 及其在 apply_add 中的用法。将当前行为与 issue 中列出的 DynamoDB 情况进行比较。当缺失的中间 map 元素导致文档路径被拒绝,同时最后两种情况仍然成功时,即为完成;为这些情况添加或运行针对性测试。
由索引模型根据 Issue 内容生成。
描述
DynamoDB refuses an ADD action whose path goes through a map that does not exist. ExtendDB creates the missing maps and applies the ADD.
Measured in us-east-1 on 2026-11-10 at 21:19 UTC, two sends of each request, with UpdateItem on a table whose key is pk:
| Item before the update | Update expression | DynamoDB |
|---|---|---|
| no item | ADD a.b.c :v, :v = 1 |
ValidationException, "The document path provided in the update expression is invalid for update". No item is created. |
an item without a |
ADD a.b.c :v, :v = 1 |
The same refusal. The item does not change. |
a = {} |
ADD a.b.c :v, :v = 1 |
The same refusal. The item does not change. |
a = {} |
ADD a.b.c :v, :v = the string set ["x"] |
The same refusal. The item does not change. |
a = {} |
ADD a.b :v, :v = 1 |
200. a is {b: 1}. |
a = {b: {}} |
ADD a.b.c :v, :v = 1 |
200. a is {b: {c: 1}}. |
In ExtendDB, apply_add finds the parent map of the last path element with navigate_to_parent_map_or_create (crates/core/src/expression/update_evaluator.rs, main 29e66ab85). That function inserts an empty map for each element of the path that does not exist. So ExtendDB applies the first four requests: it creates the missing maps and stores the number or the set at a.b.c (from the code). For the first request it also creates the item. The last two rows give the same answer on both.
Proposed fix: in navigate_to_parent_map_or_create, answer the document path refusal when an element before the last one does not exist.
- 主要语言
- Rust
- 星标
- 517
- 派生
- 60
- 平均合并
- 5 天 21 小时
- 30 天内合并 PR
- 110
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ExtendDB/extenddb 的其他 Issue
-
ci:stability
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 5 天内回复
-
docs: the TLS key troubleshooting entry quotes one warning and overstates who could read the key未关闭documentation
难度 1/5 1-3 小时 新手友好度 82/100
维护者通常 5 天内回复
-
backup: correct the target_not_empty rule, the store root ancestor rule and a remove-target pointer未关闭documentation
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 5 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 85/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 5 天内回复
查看 ExtendDB/extenddb 的全部 Issue
相似的 Issue
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:ui
难度 2/5 1-3 小时 新手友好度 78/100
openfootmanager/openfootmanager#1365 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 90/100
JackMechem/marbble#305 ·
维护者通常 1 天内回复
-
antora bug review-2026-11-11
难度 2/5 1-3 小时 新手友好度 78/100
bovinemagnet/AdocFoundry#546 ·
维护者通常 1 天内回复
-
agent-self
难度 2/5 1-3 小时 新手友好度 84/100
yologdev/yoyo-evolve#1176 ·