GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/11904
[SPARK-14085] [SQL] Star Expansion for Hash and Concat
#### What changes were proposed in this pull request?
This PR is to support star expansion in hash and concat. For example,
```SQL
val structDf = testData2.select("a", "b").as("record")
structDf.select(hash($"*")
structDf.select(concat($"*"))
```
In addition, it refactors the codes for the rule `ResolveStar` and fixes a
regression for star expansion in group by when using SQL API. For example,
```SQL
SELECT * FROM testData2 group by a, b
```
cc @cloud-fan Now, the code for star resolution is much cleaner. The
coverage is better. Could you check if this refactoring is good? Thanks!
#### How was this patch tested?
Added a few test cases to cover it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark starResolution
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11904.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 #11904
----
commit c0551aaf0bb6c015762e5c84da41bc87743da010
Author: gatorsmile <[email protected]>
Date: 2016-03-22T22:34:58Z
star expansion
----
---
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]