Return-Path: Delivered-To: apmail-incubator-pig-dev-archive@locus.apache.org Received: (qmail 3689 invoked from network); 2 Apr 2008 14:21:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 14:21:55 -0000 Received: (qmail 56302 invoked by uid 500); 2 Apr 2008 14:21:54 -0000 Delivered-To: apmail-incubator-pig-dev-archive@incubator.apache.org Received: (qmail 56274 invoked by uid 500); 2 Apr 2008 14:21:54 -0000 Mailing-List: contact pig-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@incubator.apache.org Delivered-To: mailing list pig-dev@incubator.apache.org Received: (qmail 56246 invoked by uid 99); 2 Apr 2008 14:21:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 07:21:54 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 14:21:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ABF4B234C0B1 for ; Wed, 2 Apr 2008 07:19:24 -0700 (PDT) Message-ID: <1324243548.1207145964488.JavaMail.jira@brutus> Date: Wed, 2 Apr 2008 07:19:24 -0700 (PDT) From: "Benjamin Reed (JIRA)" To: pig-dev@incubator.apache.org Subject: [jira] Commented: (PIG-112) Allow Java packages to be searched for functions. In-Reply-To: <27048516.1203155711403.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584578#action_12584578 ] Benjamin Reed commented on PIG-112: ----------------------------------- I like import as well. (We actually had it at one time, I don't know what happened to it...) I think the problem is that the tokenizer in the parser is pretty brain dead. It's probably detecting dump as a package rather than identifier. You may want to define package as a dotted sequence of identifiers. ("." )? > Allow Java packages to be searched for functions. > ------------------------------------------------- > > Key: PIG-112 > URL: https://issues.apache.org/jira/browse/PIG-112 > Project: Pig > Issue Type: Improvement > Reporter: Craig Macdonald > Priority: Minor > Attachments: patch.import > > Original Estimate: 1h > Remaining Estimate: 1h > > Motivation: Why should a user have to supply the fully qualified name to his user defined function, if all the functions he ever uses are in a pre-defined list of packages? > Currently PigContext has a list of Java packages that are searched for functions. Currently the list consists of the following > packages: > * org.apache.pig.builtin. > * org.apache.pig.impl.builtin. > * com.yahoo.pig.yst.sds.ULT. > Users should be able to add to this packagelist. > Example in Grunt: > {noformat} > include com.pig.function.package. > {noformat} > This has connections to imports in Java classes, namespaces in XQuery, and the PATH env var in shell scripting. > Should be trivial to implement, or could be a property. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.