[ 
https://issues.apache.org/jira/browse/SPARK-11966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032906#comment-15032906
 ] 

Jaka Jancar edited comment on SPARK-11966 at 12/1/15 1:59 AM:
--------------------------------------------------------------

Not sure I understand. I would like to do {{SELECT * FROM 
my_create_table(...)}}.

Right now, all I can do is {{SELECT * FROM explode(my_create_array(...))}}.

//edit: In reality, this would be a part of JOIN or lateral view. I would like 
it to be doable with only SQL.


was (Author: jakajancar):
Not sure I understand. I would like to do {{SELECT * FROM 
my_create_table(...)}}.

Right now, all I can do is {{SELECT * FROM explode(my_create_array(...))}}.


> Spark API for UDTFs
> -------------------
>
>                 Key: SPARK-11966
>                 URL: https://issues.apache.org/jira/browse/SPARK-11966
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>            Reporter: Jaka Jancar
>            Priority: Minor
>
> Defining UDFs is easy using sqlContext.udf.register, but not table-generating 
> functions. For those you still have to use these horrendous Hive interfaces:
> https://github.com/prongs/apache-hive/blob/master/contrib/src/java/org/apache/hadoop/hive/contrib/udtf/example/GenericUDTFCount2.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to