Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 21950 invoked from network); 28 May 2010 14:22:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 May 2010 14:22:59 -0000 Received: (qmail 25574 invoked by uid 500); 28 May 2010 14:22:59 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 25486 invoked by uid 500); 28 May 2010 14:22:59 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 25478 invoked by uid 99); 28 May 2010 14:22:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 14:22:59 +0000 X-ASF-Spam-Status: No, hits=-1476.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 14:22:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4SEMc4P009653 for ; Fri, 28 May 2010 14:22:38 GMT Message-ID: <8923288.50951275056558530.JavaMail.jira@thor> Date: Fri, 28 May 2010 10:22:38 -0400 (EDT) From: "Edward Capriolo (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-1265) Function Registry should should auto-detect UDFs from UDF Description In-Reply-To: <1504918852.390371269140847223.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12872996#action_12872996 ] Edward Capriolo commented on HIVE-1265: --------------------------------------- {noformat} public static List getClassesForPackage(String packageName, Class classType){ + List matchingClasses = new ArrayList(); + File directory = null; + System.out.println(packageName.replace('.', File.separatorChar)); + URL u = Thread.currentThread().getContextClassLoader() + //URL u = new Object().getClass().c + .getResource(packageName.replace('.', File.separatorChar)); {noformat} It seems like this section of code only picks up classes in ql/test/org.apache.hadoop.hive.ql.udf. This must have something to do with classloaders/threads/ and getResource(). It seems like getResource is unaware that two folders could be responsible for the same resource. Or I have to find a better way to do this. > Function Registry should should auto-detect UDFs from UDF Description > ---------------------------------------------------------------------- > > Key: HIVE-1265 > URL: https://issues.apache.org/jira/browse/HIVE-1265 > Project: Hadoop Hive > Issue Type: Improvement > Reporter: Edward Capriolo > Assignee: Edward Capriolo > Attachments: hive-1265-patch.diff > > > We should be able to register functions dynamically. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.