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

Đang mở Phù hợp với người mới
#1,213 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
77/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, rust, sqlite
Lĩnh vực
backend, testing

Hướng nghiên cứu

Đọc RETURN_VALUES_BARE_CLAUSE trong crates/engine/src/lib.rs và ba bài kiểm thử cho cả hai mục tiêu trong tests/test_wording_parity_validation.py. Cập nhật câu chữ DynamoDB mong đợi cho enum và các lỗi xác thực của PutItem và DeleteItem, sau đó chạy các bài kiểm thử này với ExtendDB và DynamoDB. Hoàn thành khi cả hai phần triển khai tạo ra các văn bản hiện tại được nêu trong issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
517
Fork
60
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
132

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ExtendDB/extenddb

Tất cả issue của ExtendDB/extenddb

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.