[
https://issues.apache.org/jira/browse/HADOOP-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630631#action_12630631
]
Ashish Thusoo commented on HADOOP-4070:
---------------------------------------
Not exactly true about treating create/rename/alter functions as part of the
DDL. Most DBs bin them in that bucket. Case to point is the mysql doc (link
below) which clearly lists create function in the DDL section.
http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-data-definition.html
I am not too hung up on this though. FunctionWork(instead of
CreateFunctionWork) is also fine with me - though I would like to have that
bin all the different descriptors for manipulating functions rather than create
a different work class for each manipulation (create/alter/rename/drop etc...)
We can start of this with being non persistent but then in the syntax it should
be made explicit that this is non persistent.
One proposal could be
CREATE TEMPORARY FUNCTION blah AS blah
Also for temporary functions, reflection is also another way to structure this
as Prasad pointed out but then that would not work if we allow non Java
functions, so I think having syntax is useful, though we could optimize the
java case to the point that all it means to create a new function is to drop in
a jar which implements the udf interfaces (including something like a
displayName() interface which would allow the language name to be different
from the implementation name.
> [Hive] Provide a mechanism for registering UDFs from the query language
> -----------------------------------------------------------------------
>
> Key: HADOOP-4070
> URL: https://issues.apache.org/jira/browse/HADOOP-4070
> Project: Hadoop Core
> Issue Type: New Feature
> Components: contrib/hive
> Reporter: Tom White
> Attachments: hadoop-4070.patch
>
>
> UDFs (user defined functions) in Hive are currently actually built-in
> functions. This issue is to develop a packaging and registration mechanism so
> users can add their own functions at runtime.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.