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

Fixed DP compilation of Reduce that does not contain aggregations #225

Merged
merged 9 commits into from
Dec 18, 2023

Conversation

vserret
Copy link
Contributor

@vserret vserret commented Dec 18, 2023

No description provided.

@vserret vserret requested a review from ngrislain December 18, 2023 13:10
@@ -272,6 +276,9 @@ impl Reduce {
let delta = delta / (cmp::max(reduces.len(), 1) as f64);

// Rewritten into differential privacy each `Reduce` then join them.
if reduces.len() == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an assert with a message

@@ -236,6 +236,10 @@ impl PUPRelation {
(input_b, sums, output_b)
},
);
if named_sums.len() == 0 {
return Err(Error::DPCompilationError("Cannot dp compile aggregations if there is no aggregations".to_string()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an assert with a message.

victoria de sainte agathe added 3 commits December 18, 2023 15:31
@ngrislain ngrislain merged commit 9dc7f15 into main Dec 18, 2023
1 check passed
@ngrislain ngrislain deleted the tests_more_queries branch December 18, 2023 16:06
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.

2 participants