Max created SPARK-5397:
--------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]