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

[jira] [Created] (SPARK-5397) Assigning aliases to several return values of an UDF

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