GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/13553
[SPARK-15814][SQL] Aggregator can return null result
## What changes were proposed in this pull request?
It's similar to the bug fixed in
https://github.com/apache/spark/pull/13425, we should consider null object and
wrap the `CreateStruct` with `If` to do null check.
This PR also improves the test framework to test the objects of
`Dataset[T]` directly, instead of calling `toDF` and compare the rows.
## How was this patch tested?
new test in `DatasetAggregatorSuite`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark agg-null
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13553.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 #13553
----
commit 34711996028e595a3e42d373a03594404f364802
Author: Wenchen Fan <[email protected]>
Date: 2016-06-08T05:58:04Z
Aggregator can return null result
----
---
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]