Scan Select rules and the Query ALL_PROJECTED_ATTRIBUTES rule answer without the "1 validation error detected: " prefix
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
validate_select_projection を crates/core/src/validation/mod.rs で確認し、列挙された Select と projection の各ルールに照らして、Scan と Query のプレフィックス処理を比較してください。issue で測定されたリクエストケースを使って応答テキストを確認します。対象となる Scan と Query の応答が記載された DynamoDB の動作と一致し、すでに一致すると報告されたルールも正しい状態であれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Scan answers the three Select rules without the 1 validation error detected: prefix the service sends, and Query answers the ALL_PROJECTED_ATTRIBUTES rule without it.
Measured against Amazon DynamoDB in us-east-1 on 4 November 2026, each request twice, both answers identical, on tables created for the run (pk S HASH and sk S RANGE; the same with an LSI lsi1; pk N HASH). ExtendDB answers are from a SQLite server built from main 25ee109bf, each request twice, both answers identical.
| Request | Service | ExtendDB main 25ee109bf |
|---|---|---|
Scan, "Select": "SPECIFIC_ATTRIBUTES" and no AttributesToGet or ProjectionExpression |
1 validation error detected: Must specify the AttributesToGet or ProjectionExpression when choosing to get SPECIFIC_ATTRIBUTES |
Must specify the AttributesToGet or ProjectionExpression when choosing to get SPECIFIC_ATTRIBUTES |
Scan, "Select": "ALL_ATTRIBUTES" with a ProjectionExpression |
1 validation error detected: Cannot specify the ProjectionExpression when choosing to get ALL_ATTRIBUTES |
the same text without the prefix |
Scan, "Select": "COUNT" with a ProjectionExpression |
1 validation error detected: Cannot specify the ProjectionExpression when choosing to get only the Count |
the same text without the prefix |
Scan of the LSI table, "Select": "ALL_PROJECTED_ATTRIBUTES", "IndexName": "lsi1" and a ProjectionExpression |
1 validation error detected: Cannot specify the ProjectionExpression when choosing to get ALL_PROJECTED_ATTRIBUTES |
the same text without the prefix |
Scan, "Select": "ALL_PROJECTED_ATTRIBUTES" and no IndexName |
1 validation error detected: ALL_PROJECTED_ATTRIBUTES can be used only when Querying using an IndexName |
the same text without the prefix |
Query pk = :p, "Select": "ALL_PROJECTED_ATTRIBUTES" and no IndexName |
the same as the row above | the same text without the prefix |
The SPECIFIC_ATTRIBUTES row was also sent on Scan beside a valid ExclusiveStartKey, beside a malformed and a wrong-typed one, beside "Limit": 1, beside a FilterExpression, and on the N hash key table: the service sends the prefix in all six, and ExtendDB leaves it out in all six.
On Query the service and ExtendDB agree on the other rules: SPECIFIC_ATTRIBUTES alone and beside a valid ExclusiveStartKey, and ALL_ATTRIBUTES and COUNT with a ProjectionExpression, all with the prefix.
Where the answer comes from
validate_select_projection in crates/core/src/validation/mod.rs adds the prefix when is_query is set and leaves it out for Scan, for the SPECIFIC_ATTRIBUTES rule and the rule for a Select that cannot carry a ProjectionExpression. A comment there cites measurements of 24 August 2026 for the split. The ALL_PROJECTED_ATTRIBUTES rule returns its text without the prefix for both operations.
- 主要言語
- Rust
- スター
- 517
- フォーク
- 60
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ExtendDB/extenddb のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 4 日以内に返信
-
server: console user and role deletes leave the cached creation time対応中かも @LeeroyHannigan が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ExtendDB/extenddb#787 · 担当者 1 名 ·
メンテナーはふだん 4 日以内に返信
-
bug security
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 4 日以内に返信
ExtendDB/extenddb の issue をすべて見る
似ている issue
-
bug cluster redis-compat
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
tangency-labs/solidcore#2839 ·
メンテナーはふだん 1 日以内に返信
-
bug priority: low ui
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
storytold/gridcraft#3446 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
madeofpendletonwool/PinePods#1078 ·
メンテナーはふだん 1 日以内に返信