You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "wangfei (JIRA)" <ji...@apache.org> on 2015/01/24 13:51:34 UTC

[jira] [Updated] (SPARK-5383) support alias for udfs with multi output columns

     [ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org