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

ARROW-13638: [C++] Hold owned copy of function options in GroupByNode #10947

Closed
wants to merge 3 commits into from

Conversation

lidavidm
Copy link
Member

GroupByNode lazily initializes per-thread kernel state, so it needs an owned copy of function options to do so.

@github-actions
Copy link

Copy link
Member

@bkietz bkietz left a comment

Choose a reason for hiding this comment

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

LGTM, just one (inherited, ignorable) nit

@@ -256,14 +256,16 @@ struct GroupByNode : ExecNode {
const std::vector<int>&& key_field_ids,
const std::vector<int>&& agg_src_field_ids,
const std::vector<internal::Aggregate>&& aggs,
const std::vector<const HashAggregateKernel*>&& agg_kernels)
const std::vector<const HashAggregateKernel*>&& agg_kernels,
Copy link
Member

Choose a reason for hiding this comment

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

If you wouldn't mind cleaning this up:

Suggested change
const std::vector<const HashAggregateKernel*>&& agg_kernels,
std::vector<const HashAggregateKernel*> agg_kernels,

also ExecNode subclasses shouldn't be structs

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.

None yet

2 participants