The ReturnValues refusal texts on PutItem, DeleteItem and UpdateItem differ from DynamoDB's current texts

オープン 初心者向け
#1,213 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, rust, sqlite
領域
backend, testing

調査の方向性

crates/engine/src/lib.rs の RETURN_VALUES_BARE_CLAUSE と、tests/test_wording_parity_validation.py にある両方のターゲットを対象とする3つのテストを読みます。enum と PutItem および DeleteItem の検証エラーについて、期待される DynamoDB の文言を更新し、その後 ExtendDB と DynamoDB に対してこれらのテストを実行します。両方の実装が issue に記載された現在のテキストを出力すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

ExtendDB answers a ReturnValues outside its set with Member must satisfy enum value set: [ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATE_NEW, NONE]. DynamoDB now lists UPDATED_NEW in that text on PutItem, DeleteItem and UpdateItem. For a ReturnValues that PutItem or DeleteItem does not allow, DynamoDB now starts ReturnValues can only be ALL_OLD or NONE with 1 validation error detected: , and ExtendDB sends the text without it.

Measured in us-east-1 on 2026-11-20 at 02:12:52 UTC (the first row) and 02:53:58 UTC (the next three). Each request went out twice and got the same answer both times. The key is absent. The ExtendDB column is a SQLite server built from the head of #558 at b4260658d. A server built from main at deed34631 gives the same answer to the first row.

Request DynamoDB ExtendDB
UpdateItem, UpdateExpression SET #w = :v, ConditionExpression #v = :zz, ReturnValues BOGUS 1 validation error detected: Failed to satisfy constraint: Member must satisfy enum value set: [ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW, NONE] 1 validation error detected: Failed to satisfy constraint: Member must satisfy enum value set: [ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATE_NEW, NONE]
UpdateItem, UpdateExpression SET w = :v, ReturnValues BOGUS the UPDATED_NEW text of the first row the UPDATE_NEW text of the first row
PutItem, ReturnValues BOGUS the UPDATED_NEW text of the first row the UPDATE_NEW text of the first row
DeleteItem, ReturnValues BOGUS the UPDATED_NEW text of the first row the UPDATE_NEW text of the first row

Three dual-target tests in tests/test_wording_parity_validation.py assert the older texts. They pass on ExtendDB and failed against DynamoDB in two runs on 2026-11-20, from 03:25:44 to 03:26:28 UTC and from 03:26:50 to 03:27:31 UTC:

Test Request DynamoDB Test and ExtendDB
test_put_invalid_return_values_enum PutItem, ReturnValues GARBAGE the UPDATED_NEW text of the first row the UPDATE_NEW text of the first row
test_put_disallowed_return_values PutItem, ReturnValues UPDATED_OLD 1 validation error detected: ReturnValues can only be ALL_OLD or NONE ReturnValues can only be ALL_OLD or NONE
test_delete_disallowed_return_values DeleteItem, ReturnValues ALL_NEW 1 validation error detected: ReturnValues can only be ALL_OLD or NONE ReturnValues can only be ALL_OLD or NONE

RETURN_VALUES_BARE_CLAUSE in crates/engine/src/lib.rs holds the enum text for the three operations. Its doc says that the service wrote UPDATE_NEW in a measurement of 2026-08-24. The measurements above show the service's current texts.

主要言語
Rust
スター
517
フォーク
60
平均マージ
5日 1時間
マージ済み PR(30日)
132

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ExtendDB/extenddb のほかの issue

ExtendDB/extenddb の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。