Skip to content

Binding: item collection metrics of BatchWriteItem and TransactWriteItems are dropped #95

Closed

Description

@fctl-sh

Priority: medium. Both methods accept return_item_collection_metrics=True, the core asks for and parses the metrics (backend/aws/mod.rs), and the in-memory backend computes them, but the binding builds the output dicts without item_collection_metrics (crates/dynamoxy-py/src/client.rs, batch_write_item and transact_write_items), and the stub's TypedDicts leave the key out (_core.pyi). On a table with a local secondary index, put_item returns the metrics, while batch_write_item returns {"unprocessed_items": {}, "consumed_capacity": []} and transact_write_items {"consumed_capacity": []}. client.call(...) is the documented way to reach these parameters.

Found in a review of the library for bugs (fctl session); the fixes that fit in its ten pull requests are #61 to #65, #67 to #70 and #72.

Activity

  1. added
    bug
    rust
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
    2e8fa64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions