[ 
https://issues.apache.org/jira/browse/SPARK-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wangfei updated SPARK-5383:
---------------------------
    Description: 
when a udf output multi columns, now we can not use alias for them in 
spark-sql, see this flowing sql:

select stack(1, key, value, key, value) as (a, b, c, d) from src limit 5;


  was:
now spark sql does not support multi alias names, The following sql failed in 
spark-sql:
"select key as (k1, k2), value as (v1, v2) from src limit 5"



> support alias for udfs with multi output columns
> ------------------------------------------------
>
>                 Key: SPARK-5383
>                 URL: https://issues.apache.org/jira/browse/SPARK-5383
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.2.0
>            Reporter: wangfei
>
> when a udf output multi columns, now we can not use alias for them in 
> spark-sql, see this flowing sql:
> select stack(1, key, value, key, value) as (a, b, c, d) from src limit 5;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to