hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-309) FunctionRegistry should allow loading UDFs and UDAFs from property file
Date Fri, 13 Mar 2009 00:54:50 GMT

    [ https://issues.apache.org/jira/browse/HIVE-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681566#action_12681566

Richard Lee commented on HIVE-309:

I couldn't seem to get the hive-udf.properties to be picked up by the TestCliDriver.. I tried
the properties file to the test.classpath, and explicitly including it into the test-udf.jar...
but no love.

The contents of my properties file is:

and the .q file which  should excersize these test functions contains:

SELECT testfoo(cast(src.key as string), src.value) FROM src WHERE src.key = 86;

SELECT testbar(src.key) FROM src;

If anyone has a suggestion as to how to modify the build process to pick up the properties
file... i'd appreciate it :)

> FunctionRegistry should allow loading UDFs and UDAFs from property file
> -----------------------------------------------------------------------
>                 Key: HIVE-309
>                 URL: https://issues.apache.org/jira/browse/HIVE-309
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Richard Lee
>         Attachments: hive-external-functions-2.diff, hive-external-functions.diff
> FunctionRegistry.java hard code all UDF, UDAF definitions in a static initializer.  There
is no way to add new functions without directly modifying this file.  
> FunctionRegistry SHOULD look for a property file in which new functions and their implementations
can be specified.  This will allow third parties to extend hive without maintaining patches
against the codebase. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message