Skip to content

rust: reject duplicate CSV headers before landing #958

Closed

Description

@athvin

Evidence

CSV headers are accepted as a list, then each row is inserted into a BTreeMap. A repeated header overwrites its earlier field, silently changing the payload and content hash. Source.

Change

Validate header uniqueness before processing the first row and return a named input error for a duplicate.

Done when

  • A CSV with repeated mapped or unmapped headers fails before any append.
  • A regression test shows distinct headers still land unchanged.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
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

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions