-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a rare privacy bug in DistinctPerKey in Privacy on Beam. (#84)
The bug occurred when there are outlier users in the input that contribute to many partitions and/or to many values AND the values contributed are the same as values from other users (the second part is critical, if the contributed values only come from a single user then the bug does not occur). Then, the output might not have be DP due to incorrect contribution bounding. See the comments in the newly added tests for concrete examples of when/how the bug used to occur. This is cherry-picked from the main branch commit e149618. This commit includes a minor change compared to the one on the main branch: It removes the error output for kv.Codec.Encode/Decode functions used in aggregations.go since the error output for these functions weren't implemented in v1.0.0.
- Loading branch information
1 parent
68bdbb2
commit 4d91d7c
Showing
6 changed files
with
261 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.