You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Introduce Deduplicator trait to unify mutable and immutable deduplication (delta-io#1537)
## What changes are proposed in this pull request?
<!--
Please clarify what changes you are proposing and why the changes are
needed.
The purpose of this section is to outline the changes, why they are
needed, and how this PR fixes the issue.
If the reason for the change is already explained clearly in an issue,
then it does not need to be restated here.
1. If you propose a new API or feature, clarify the use case for a new
API or feature.
2. If you fix a bug, you can clarify why it is a bug.
-->
This PR introduces the `Deduplicator` trait which will unify Commit and
Checkpoint deduplication under a single API. This is done to move the
`&mut HashSet<..>` out of `AddRemoveDedup` and behind the `Deduplicator`
trait. That way, we can reuse `AddRemoveDedupVisitor` in an immutable
scenario.
<!--
Uncomment this section if there are any changes affecting public APIs:
### This PR affects the following public APIs
If there are breaking changes, please ensure the `breaking-changes`
label gets added by CI, and describe why the changes are needed.
Note that _new_ public APIs are not considered breaking.
-->
## How was this change tested?
<!--
Please make sure to add test cases that check the changes thoroughly
including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please
clarify how you tested, ideally via a reproducible test documented in
the PR description.
-->
---------
Co-authored-by: Nick Lanham <nicklan@users.noreply.github.com>
0 commit comments