GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/22944
[SPARK-25942][SQL] Fix Dataset.groupByKey to make it work on primitive data
## What changes were proposed in this pull request?
`Dataset.groupByKey` can't work on primitive data now. When we access
`value` in aggregate function, it conflicts with the name of grouping attribute.
## How was this patch tested?
Added test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 dataset_agg
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22944.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 #22944
----
commit 7564d98a9b1242f1eea167152ed97371416c204d
Author: Liang-Chi Hsieh <viirya@...>
Date: 2018-11-05T00:40:52Z
Fix groupByKey.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]