GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/11908
[SPARK-14088][SQL] Some Dataset API touch-up
## What changes were proposed in this pull request?
1. Deprecated unionAll. It is pretty confusing to have both "union" and
"unionAll" when the two do the same thing in Spark but are different in SQL.
2. Rename reduce in KeyValueGroupedDataset to reduceGroups so it is more
consistent with rest of the functions in KeyValueGroupedDataset. Also makes it
more obvious what "reduce" and "reduceGroups" mean. Previously it was confusing
because it could be reducing a Dataset, or just reducing groups.
3. Added a "name" function, which is more natural to name columns than "as"
for non-SQL users.
4. Remove "subtract" function since it is just an alias for "except".
## How was this patch tested?
All changes should be covered by existing tests. Also added couple test
cases to cover "name".
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark SPARK-14088
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11908.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 #11908
----
commit 87c46414b7bb27c103216d2642778ffb8b4238ad
Author: Reynold Xin <[email protected]>
Date: 2016-03-23T01:22:14Z
[SPARK-14088][SQL] Some Dataset API touch-up
----
---
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]