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

Groups accumulator for array_agg #233

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Groups accumulator for array_agg #233

merged 5 commits into from
Apr 15, 2024

Conversation

lkt
Copy link

@lkt lkt commented Apr 12, 2024

@lkt lkt marked this pull request as ready for review April 12, 2024 15:39
@lkt lkt requested a review from joroKr21 April 12, 2024 15:39
@lkt lkt merged commit 608bce3 into v37 Apr 15, 2024
46 checks passed
@lkt lkt deleted the array-agg-groups-accumulator-37 branch April 15, 2024 10:59
total_num_groups,
|group_index, new_value: ArrayRef| {
let new_value = new_value.as_primitive::<T>();
self.values[group_index].append(
Copy link
Collaborator

Choose a reason for hiding this comment

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

You probably want to use extend here in order to avoid collecting into Vec.

Copy link
Collaborator

Choose a reason for hiding this comment

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

e.g. self.values[group_index]. extend(new_value.into_iter())

|group_index, new_value: ArrayRef| {
let new_value = new_value.as_string::<i32>();

self.values[group_index].append(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

joroKr21 pushed a commit that referenced this pull request Jun 13, 2024
* Groups accumulator for array_agg

* small fix

* fmt

* clippy

* clippy
joroKr21 pushed a commit that referenced this pull request Jun 13, 2024
* Groups accumulator for array_agg

* small fix

* fmt

* clippy

* clippy
joroKr21 pushed a commit that referenced this pull request Jun 13, 2024
* Groups accumulator for array_agg

* small fix

* fmt

* clippy

* clippy
joroKr21 added a commit that referenced this pull request Jun 24, 2024
* Add pool_size method to MemoryPool (#218) (#230)

* Add pool_size method to MemoryPool

* Fix

* Fmt

Co-authored-by: Daniël Heres <[email protected]>

* Move FileSinkExec::metrics to the correct place (#239)

* Groups accumulator for array_agg (#233)

* Groups accumulator for array_agg

* small fix

* fmt

* clippy

* clippy

* Fix clippy

* Fix sink output schema being passed in to `FileSinkExec` where input schema was expected

* Propagate CSV options (quote, double quote, and escape) through protos

* Remove unused field from NthValue

* Remove Sized constraint from ExecutionPlan::name

---------

Co-authored-by: Daniël Heres <[email protected]>
Co-authored-by: Gediminas Aleknavičius <[email protected]>
Co-authored-by: svranesevic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants