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

Remove Accumulator::update and Accumulator::merge #1582

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

jimexist
Copy link
Member

Which issue does this PR close?

Closes #1549

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Jan 16, 2022
@jimexist jimexist force-pushed the remove-update-merge branch 2 times, most recently from a5c1c70 to 2e2da40 Compare January 16, 2022 10:23
@alamb
Copy link
Contributor

alamb commented Jan 16, 2022

Nice @jimexist -- you beat me to it :) There are a few more instances that need updating -- will see if I can try and help fix it

@jimexist jimexist force-pushed the remove-update-merge branch from 2e2da40 to 2835eb2 Compare January 16, 2022 12:54
@jimexist jimexist marked this pull request as ready for review January 16, 2022 12:54
@jimexist jimexist force-pushed the remove-update-merge branch from cdb36a9 to 603fe41 Compare January 16, 2022 12:58
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 16, 2022
@jimexist jimexist force-pushed the remove-update-merge branch from 603fe41 to f9f6fe1 Compare January 16, 2022 12:58
@jimexist jimexist force-pushed the remove-update-merge branch 3 times, most recently from 88797ea to 0f39d02 Compare January 16, 2022 15:11
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Nice work @jimexist

}

impl Accumulator for ArrayAggAccumulator {
fn update_batch(&mut self, values: &[ArrayRef]) -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be a good idea as a follow on PR to update these implementations to avoid the use of ScalarValue.

I'll try find some time this week to do it (I need some coding time :) -- lots of reviewing so far)

Copy link
Member Author

Choose a reason for hiding this comment

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

let's track this in a GitHub issue

@jimexist jimexist force-pushed the remove-update-merge branch from 0f39d02 to 80d5969 Compare January 17, 2022 14:35
@jimexist jimexist merged commit 82e8003 into master Jan 18, 2022
@jimexist jimexist deleted the remove-update-merge branch January 18, 2022 08:46
@alamb
Copy link
Contributor

alamb commented Jan 18, 2022

Thanks @jimexist -- this is a great piece of work

@alamb alamb added api change Changes the API exposed to users of the crate and removed documentation Improvements or additions to documentation labels Feb 10, 2022
@alamb alamb changed the title remove update and merge from accumulator Remove Accumulator::update and Accumulator::merge Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api change Changes the API exposed to users of the crate datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Remove Accumulator::update and Accumulator::merge
2 participants