Skip to content

rust: validate dataset display names before linking #977

Closed

Description

@athvin

Evidence

resolve_inputs accepts repeated and empty --dataset NAME=REF names. The core writes each name as source_dataset, which participates in composite record IDs; repeated names with overlapping source IDs collapse distinct records into one identity. Names are also inserted as SQL string literals without quote escaping, so an apostrophe breaks the generated UNION. Source.

Change

Reject empty and duplicate dataset names at the CLI boundary and render accepted names safely as SQL values in the core generator.

Done when

  • Duplicate names with overlapping source IDs fail before linking.
  • Empty names fail with a useful input error.
  • A name containing an apostrophe produces valid SQL and the expected source_dataset value.
  • Distinct ordinary names preserve current IDs.

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