Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add duplication checks #550

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

majosm
Copy link
Collaborator

@majosm majosm commented Sep 24, 2024

Adds two checks to CachedMapper-derived mapper class traversals:

  1. err_on_collision in CachedMapper, which checks for multiple distinct instances of input expressions that have the same key. These are duplicates in the incoming DAG.
  2. err_on_no_op_duplication in TransformMapper/TransformMapperWithExtraArgs, which checks for mappings between two distinct expression instances where both the input and the output have the same key. These are duplicates that are produced by the mapper (e.g., the current CopyMapper.map_* implementations that create new instances even if nothing has changed).

Depends on #531 and #549.

@majosm majosm force-pushed the add-duplication-checks branch 2 times, most recently from 63c29f3 to e165c55 Compare September 24, 2024 20:01
@majosm majosm mentioned this pull request Sep 25, 2024
@majosm majosm force-pushed the add-duplication-checks branch from e165c55 to 8b0b00c Compare December 20, 2024 23:22
@majosm majosm force-pushed the add-duplication-checks branch 3 times, most recently from f90083b to ddb9093 Compare January 10, 2025 19:23
@majosm majosm force-pushed the add-duplication-checks branch 2 times, most recently from 64dc616 to 6ac2ab3 Compare January 28, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant