CreateTable accepts an empty GlobalSecondaryIndexes or LocalSecondaryIndexes list, and DynamoDB refuses it
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 87/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
crates/core/src/validation/mod.rs の validate_create_table から始め、GSI と LSI の検証に対して validate_attribute_definitions がどの順序で実行されるかを確認してください。両方のリストが空の場合も含め、issue に記載されたエラー文言と優先順位で、空リストのチェックを追加してください。空リストの場合に、属性定義エラーより先に該当する DynamoDB の ValidationException が返されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Amazon DynamoDB refuses a CreateTable whose GlobalSecondaryIndexes or LocalSecondaryIndexes member is an empty list. It answers One or more parameter values were invalid: List of GlobalSecondaryIndexes is empty, or the same text with LocalSecondaryIndexes, and creates no table. It reports the empty list before an attribute definition that no key uses. ExtendDB has no check for an empty list. When the request also defines an attribute that no key uses, ExtendDB answers the attribute definition count text instead.
Measured in us-east-1 on 2026-11-14. Each request went out twice and got the same answer both times. Every request is PAY_PER_REQUEST with the key pk S HASH and sk S RANGE. AttributeDefinitions names pk, sk, label and stamp, all S, except in the last row. The GSI is {IndexName: "by-label", KeySchema: [label HASH], Projection: ALL}, and the LSI is {IndexName: "by-stamp", KeySchema: [pk HASH, stamp RANGE], Projection: ALL}. DynamoDB answers each row with ValidationException, and a DescribeTable after it answers ResourceNotFoundException Requested resource not found: Table: <table> not found.
| Index members of the request | DynamoDB |
|---|---|
GlobalSecondaryIndexes: [] |
One or more parameter values were invalid: List of GlobalSecondaryIndexes is empty |
LocalSecondaryIndexes: [] |
One or more parameter values were invalid: List of LocalSecondaryIndexes is empty |
GlobalSecondaryIndexes: [] and LocalSecondaryIndexes: [] |
One or more parameter values were invalid: List of LocalSecondaryIndexes is empty |
GlobalSecondaryIndexes: [] and the LSI |
One or more parameter values were invalid: List of GlobalSecondaryIndexes is empty |
the GSI and LocalSecondaryIndexes: [] |
One or more parameter values were invalid: List of LocalSecondaryIndexes is empty |
GlobalSecondaryIndexes: [], with pk and sk the only definitions |
One or more parameter values were invalid: List of GlobalSecondaryIndexes is empty |
ExtendDB at origin/main 95425f5e8 answers the first five rows with ValidationException Number of attributes in KeySchema does not exactly match number of attributes defined in AttributeDefinitions: <table>, on SQLite, SQLite in dev mode, PostgreSQL, MongoDB and Cassandra. The DescribeTable after it answers ResourceNotFoundException on both sides. The last row has no ExtendDB measurement. In that request a key uses every definition, and no check in validate_create_table refuses it.
validate_create_table (crates/core/src/validation/mod.rs, line 111) has no check of an empty index list. validate_gsi_key_schemas (line 815) and validate_lsi_key_schemas (line 840) loop over the list, so an empty list passes them. validate_attribute_definitions (line 882) then refuses a definition that no key uses (lines 977 to 985) with the AttrDefNotInKey text of crates/core/src/error/messages.rs (lines 96 to 101).
Proposed change: in validate_create_table, before validate_attribute_definitions, refuse an empty GlobalSecondaryIndexes or LocalSecondaryIndexes list with One or more parameter values were invalid: List of <member> is empty. When both lists are empty, name LocalSecondaryIndexes, as DynamoDB does.
- 主要言語
- Rust
- スター
- 517
- フォーク
- 60
- 平均マージ
- 5日 14時間
- マージ済み PR(30日)
- 124
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ExtendDB/extenddb のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
ExtendDB/extenddb の issue をすべて見る
似ている issue
-
bug studies ui
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
userFRM/egui-charts#3308 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meerkat-lang/meerkat#279 ·
メンテナーはふだん 1 日以内に返信
-
a launchd removal test races the fake's refusal against bootout under load対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
nledford/Ladderback#907 ·
メンテナーはふだん 1 日以内に返信