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

Davies Liu commented on SPARK-6603:
-----------------------------------

[~rxin] The Python API does not have the problem as Scala (having two many 
methods of register()), so SQLContext.registerFunction will be better than 
SQLContext.udf.register, also it's not easy to doc the latter one (udf will be 
a object of SQLContext, how to have a doc for register?).

> SQLContext.registerFunction -> SQLContext.udf.register
> ------------------------------------------------------
>
>                 Key: SPARK-6603
>                 URL: https://issues.apache.org/jira/browse/SPARK-6603
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Davies Liu
>
> We didn't change the Python implementation to use that. Maybe the best 
> strategy is to deprecate SQLContext.registerFunction, and just add 
> SQLContext.udf.register.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to