GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/23054
[SPARK-26085][SQL] Key attribute of primitive type under typed aggregation
should be named as "key" too
## What changes were proposed in this pull request?
When doing typed aggregation on a Dataset, for complex key type, the key
attribute is named as "key". But for primitive type, the key attribute is named
as "value". This key attribute should also be named as "key" for primitive type.
## 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 SPARK-26085
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/23054.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 #23054
----
commit c7bbe91519aec116ae2c2f449f518f59cc49c7c0
Author: Liang-Chi Hsieh <viirya@...>
Date: 2018-11-16T01:52:12Z
Named key attribute for primitive type as "key".
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]