Github user scwf commented on the pull request:
https://github.com/apache/spark/pull/4182#issuecomment-71308134
@rxin, for the example `select key as (k1, k2) from src limit 5`
k1 and k2 both are alias for `key`. And i tested with hive and HiveQL
supported this, here is test case in hive:
```
select stack(2, *) as (e1,e2,e3) from (
select concat(*), concat(a.*), concat(b.*), concat(a.*, b.key),
concat(a.key, b.*)
from src a join src b on a.key+1=b.key where a.key < 100) x limit 10;
```
---
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]