You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/09/15 23:38:46 UTC
[jira] [Resolved] (SPARK-5397) Assigning aliases to several return
values of an UDF
[ https://issues.apache.org/jira/browse/SPARK-5397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-5397.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
Tested in 1.5 and this query now parses correctly.
> Assigning aliases to several return values of an UDF
> ----------------------------------------------------
>
> Key: SPARK-5397
> URL: https://issues.apache.org/jira/browse/SPARK-5397
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Max
> Fix For: 1.5.0
>
>
> The query with following syntax is no valid SQL in Spark due to the assigment of multiple aliases.
> So it seems not possible for me to port former HiveQL queries with UDFs returning multiple values to Spark SQL.
> Query
> --------
> SELECT my_function(param_one, param_two) AS (return_one, return_two,
> return_three)
> FROM my_table;
> Error
> --------
> Unsupported language features in query: SELECT my_function(param_one,
> param_two) AS (return_one, return_two, return_three)
> FROM my_table;
> TOK_QUERY
> TOK_FROM
> TOK_TABREF
> TOK_TABNAME
> my_table
> TOK_SELECT
> TOK_SELEXPR
> TOK_FUNCTION
> my_function
> TOK_TABLE_OR_COL
> param_one
> TOK_TABLE_OR_COL
> param_two
> return_one
> return_two
> return_three
--
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