The ReturnValues refusal texts on PutItem, DeleteItem and UpdateItem differ from DynamoDB's current texts
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
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
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ExtendDB/extenddb
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
-
test_backup_job.py: the store outage test lists the restore spool before the job removes its entryAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
Tutte le issue di ExtendDB/extenddb
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
5 advisory ignore entries no longer match anything in `Cargo.lock`Forse già presa @zyl71 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno