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

Fix bug when using the same column in the GROUP BY and an Aggregate function #222

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

vserret
Copy link
Contributor

@vserret vserret commented Dec 15, 2023

No description provided.

victoria de sainte agathe added 4 commits December 15, 2023 15:58
@@ -166,31 +166,6 @@ impl Reduce {
self
}

/// Clip all sums in the `Reduce`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

legacy code. not used

@vserret vserret requested a review from ngrislain December 15, 2023 17:37
/// Field names of the output `Relation`:
/// - If the aggregation is `First`, the field name is the name of the column.
/// - If the aggregation is `Sum`, the field name is the first element of the corresponding tuple in the `values` parameter.
pub fn sums_by_group(self, groups: Vec<&str>, values: Vec<(&str, &str)>) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Vec -> &[]

@ngrislain ngrislain merged commit 7db78a3 into main Dec 15, 2023
1 check passed
@ngrislain ngrislain deleted the impl_specific_aggs branch December 15, 2023 18:03
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