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

feat: generalize sum_expr in GroupByExpr #36

Merged
merged 1 commit into from
Jul 1, 2024
Merged

feat: generalize sum_expr in GroupByExpr #36

merged 1 commit into from
Jul 1, 2024

Conversation

iajoiner
Copy link
Contributor

@iajoiner iajoiner commented Jun 27, 2024

Rationale for this change

This PR generalizes GroupByExpr by relaxing the requirement of expr in SUM(expr) to arbitrary ProvableExprPlan outside aggregation.

What changes are included in this PR?

Generalize sum_expr in GroupByExpr

Are these changes tested?

Old tests all pass. We need to get new ones with nontrivial sum_expr to pass as well.

@iajoiner iajoiner force-pushed the feat/sum-gen branch 5 times, most recently from 29c6b02 to b3ffe28 Compare June 28, 2024 18:08
@iajoiner iajoiner requested a review from JayWhite2357 June 28, 2024 18:13
Copy link
Contributor

@JayWhite2357 JayWhite2357 left a comment

Choose a reason for hiding this comment

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

Looks good. I believe changing the following should fix the failing tests

fn count(&self, _builder: &mut CountBuilder) -> Result<(), ProofError> {
Ok(())

It should be

    fn count(&self, builder: &mut CountBuilder) -> Result<(), ProofError> {
        self.expr.count(builder)

@iajoiner iajoiner marked this pull request as ready for review June 30, 2024 04:57
@iajoiner iajoiner force-pushed the feat/sum-gen branch 2 times, most recently from 3c6e43c to de436f9 Compare June 30, 2024 05:23
@iajoiner iajoiner requested a review from JayWhite2357 June 30, 2024 05:27
@iajoiner iajoiner force-pushed the feat/sum-gen branch 3 times, most recently from e48f938 to a819735 Compare June 30, 2024 18:52
- fix bug in `AggregateExpr`
@iajoiner iajoiner merged commit 2dbd966 into main Jul 1, 2024
8 checks passed
@iajoiner iajoiner deleted the feat/sum-gen branch July 1, 2024 16:25
Copy link

github-actions bot commented Jul 1, 2024

🎉 This PR is included in version 0.3.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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