Skip to content

Copying a Python tuple shares mutable field storage #8270

Description

@carloea2

Feature Summary

Constructing a Tuple from another Tuple reuses the same internal ordered dictionary. Assigning a field on either tuple therefore changes the other tuple as well. An operator that creates and edits a derived tuple can silently mutate its input row.

Before: copied tuples share field storage and leak assignments in both directions.

Expected: a tuple copy starts with the same fields but has independent field mapping storage.

Reproduction evidence:

  1. Create original = Tuple({"x": 1}).
  2. Create copied = Tuple(original).
  3. Assign copied["x"] = 2 and observe that original["x"] also becomes 2.

Version and commit evidence:

1.3.0-incubating-SNAPSHOT on main

Commit Hash (Optional)
50321e4

Relevant log output

original_x=2 derived_x=2 same_storage=True

Proposed Solution or Design

Expected: a tuple copy starts with the same fields but has independent field mapping storage.

Affected Area

Workflow Engine (Amber)

Activity

  1. added theissue type on Aug 31, 2026
  2. changed the issue type fromtoon Aug 31, 2026
  3. carloea2 commented on Sep 5, 2026

    @carloea2
    ContributorAuthor

    /take

  4. added a commit that references this issue on Nov 16, 2026
    103a0eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions