spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-5397) Assigning aliases to several return values of an UDF
Date Sat, 24 Jan 2015 13:09:34 GMT
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


Mime
View raw message