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: add aggregation-related intermediate AST conversions #32

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

iajoiner
Copy link
Contributor

@iajoiner iajoiner commented Jun 27, 2024

Rationale for this change

This is the first PR in generalization of GroupByExpr. Following conventions from datafusion we allow AggregateExpr so that provable aggregations can be expressed in ProvableExprPlan and provide relevant conversion.

What changes are included in this PR?

  • add AggregateExpr which allows expressions such as sum(a+b) to become ProvableExprPlan
  • allow Expression -> ProvableExprPlan for aggregations

Are these changes tested?

Existing tests should pass.

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 pretty good.

@iajoiner iajoiner force-pushed the feat/aggregate branch 4 times, most recently from c0a364a to 22d4c40 Compare June 27, 2024 18:52
- add `AggregateExpr` which allows expressions such as `sum(a+b)` to become `ProvableExprPlan`
- allow `Expression` -> `ProvableExprPlan` for aggregations
@iajoiner iajoiner merged commit 73db57e into main Jun 28, 2024
8 checks passed
@iajoiner iajoiner deleted the feat/aggregate branch June 28, 2024 18:03
Copy link

🎉 This PR is included in version 0.3.5 🎉

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