Skip to content

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

Merged
jimexist merged 1 commit into
masterfrom
remove-update-merge
Jan 18, 2022
Merged

Remove Accumulator::update and Accumulator::merge#1582
jimexist merged 1 commit into
masterfrom
remove-update-merge

Conversation

@jimexist

Copy link
Copy Markdown
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?

@jimexist
jimexistforce-pushed the remove-update-merge branch 2 times, most recently from a5c1c70 to 2e2da40CompareJanuary 16, 2022 10:23
@alamb

Copy link
Copy Markdown
Contributor

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 marked this pull request as ready for review January 16, 2022 12:54
Comment threaddatafusion/src/datasource/file_format/parquet.rs Outdated
@github-actionsgithub-actionsBot added the documentation Improvements or additions to documentation label Jan 16, 2022
Comment threaddatafusion-examples/examples/simple_udaf.rs Outdated
Comment threaddatafusion-examples/examples/simple_udaf.rs Outdated
@jimexist
jimexistforce-pushed the remove-update-merge branch 3 times, most recently from 88797ea to 0f39d02CompareJanuary 16, 2022 15:11

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
MemberAuthor

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 merged commit 82e8003 into masterJan 18, 2022
@jimexist
jimexist deleted the remove-update-merge branch January 18, 2022 08:46
@alamb

Copy link
Copy Markdown
Contributor

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

@alambalamb added api change Changes the API exposed to users of the crate and removed documentation Improvements or additions to documentation labels Feb 10, 2022
@alambalamb changed the title remove update and merge from accumulatorRemove Accumulator::update and Accumulator::mergeFeb 10, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changeChanges the API exposed to users of the crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Remove Accumulator::update and Accumulator::merge

2 participants

@jimexist@alamb