GitHub user dereksabryfb opened a pull request:
https://github.com/apache/spark/pull/10052
[SPARK-12063][SQL] Use number in group by clause to refer to columns
If there is a number n in a group by clause, the nth column in the select
clause is used to modify the group by clause to refer to this column instead of
the number.
eg.
select a,b from c group by 1,2
becomes
select a,b from c group by a,b
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dereksabryfb/spark group_by_number
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10052.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 #10052
----
commit 86d7e9360e849b2d0cd5532bbf088f5e7a404573
Author: Derek Sabry <[email protected]>
Date: 2015-12-01T00:53:42Z
Use number to refer to columns in group by clause
----
---
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]