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

Aperta Adatta ai principianti
#1,213 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
77/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, rust, sqlite
Ambito
backend, testing

Direzione di ricerca

Leggi RETURN_VALUES_BARE_CLAUSE in crates/engine/src/lib.rs e i tre test per entrambi i target in tests/test_wording_parity_validation.py. Aggiorna il testo DynamoDB previsto per l’enum e gli errori di validazione di PutItem e DeleteItem, quindi esegui questi test con ExtendDB e DynamoDB. Il lavoro è completato quando entrambe le implementazioni producono i testi attuali riportati nell’issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
5g 1h
PR unite (30g)
132

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.