Skip to content

ARROW-11606: [Rust] [DataFusion] Add input schema to HashAggregateExec - #9481

Closed
andygrove wants to merge 2 commits into
apache:masterfrom
andygrove:hash-agg-input-schema
Closed

ARROW-11606: [Rust] [DataFusion] Add input schema to HashAggregateExec#9481
andygrove wants to merge 2 commits into
apache:masterfrom
andygrove:hash-agg-input-schema

Conversation

@andygrove

@andygroveandygrove commented Feb 12, 2021

Copy link
Copy Markdown
Member

To make it easier to implement serde for HashAggregateExec we need access to the schema that the aggregate expressions are compiled against. For Partial aggregates this is the same as the schema of the input. However, for Final aggregates it is not, which is why we need to add this additional schema information.

@github-actions

Copy link
Copy Markdown

@andygrove

Copy link
Copy Markdown
MemberAuthor

@jorgecarleitao Does this make sense?

@jorgecarleitao

Copy link
Copy Markdown
Member

Makes a lot of sense to me. 👍 Does it address the issue on Ballista?

@andygrove

Copy link
Copy Markdown
MemberAuthor

Yes, I think so. See https://github.com/ballista-compute/ballista/pull/505 ... I am going to finish testing this over the weekend.

@andygroveandygrove changed the title ARROW-11606: [Rust] [DataFusion] Add input schema to HashAggregateExec [WIP]ARROW-11606: [Rust] [DataFusion] Add input schema to HashAggregateExecFeb 12, 2021
@andygrove
andygrove marked this pull request as ready for review February 12, 2021 21:05

@jorgecarleitaojorgecarleitao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks @andygrove , and great work on Ballista so far . Putting DataFusion up to the test :)

@alambalamb closed this in a350ebcFeb 12, 2021
@alamb

Copy link
Copy Markdown
Contributor

FWIW @jorgecarleitao and @andygrove -- I have been using DataFusion quite heavily in IOx (e.g. https://github.com/influxdata/influxdb_iox/pull/795) and it is doing great. DataFusion is a really cool piece of software

@andygrove

Copy link
Copy Markdown
MemberAuthor

Thanks for the quick review and merge @jorgecarleitao and @alamb. I think distributed query execution will be working well enough in Ballista to support some TPC-H queries this weekend! The great news is that Ballista is now a tiny codebase. DataFusion is working out really well thanks to all the great work that went into 3.0.0 ❤️

sgnkc pushed a commit to sgnkc/arrow that referenced this pull request Feb 17, 2021
To make it easier to implement serde for `HashAggregateExec` we need access to the schema that the aggregate expressions are compiled against. For `Partial` aggregates this is the same as the schema of the input. However, for `Final` aggregates it is not, which is why we need to add this additional schema information.
Closesapache#9481 from andygrove/hash-agg-input-schema
Authored-by: Andy Grove <andygrove73@gmail.com>
Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
Sign up for freeto 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

@andygrove@jorgecarleitao@alamb