GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/16417
[SQL][WIP] support complex aggregate buffer in HashAggregateExec
## What changes were proposed in this pull request?
Currently we only support aggregate buffer with simple/primitive types for
`HashAggregateExec`. Ideally the buffer type should be mutable in an unsafe
row, and logicall struct type with all fixed-length fields is also mutable.
This PR fixes this problem, and we can run whole-stage codegen for
aggregate function with complex buffer type.
## How was this patch tested?
TODO
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark udaf
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16417.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16417
----
commit 1ace3ce54a6e34d8da39914d994a4ed504065e32
Author: Wenchen Fan <[email protected]>
Date: 2016-12-27T14:00:19Z
optimize nullable
commit e12c2051125af1f91f996f031132026fd8d4bbf5
Author: Wenchen Fan <[email protected]>
Date: 2016-12-27T17:28:29Z
tmp
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]