Return-Path: Delivered-To: apmail-pig-dev-archive@www.apache.org Received: (qmail 52038 invoked from network); 17 Nov 2010 00:37:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 00:37:05 -0000 Received: (qmail 56313 invoked by uid 500); 17 Nov 2010 00:37:37 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 56294 invoked by uid 500); 17 Nov 2010 00:37:37 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 56286 invoked by uid 500); 17 Nov 2010 00:37:37 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 56282 invoked by uid 99); 17 Nov 2010 00:37:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 00:37:37 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 00:37:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAH0bDEZ017198 for ; Wed, 17 Nov 2010 00:37:13 GMT Message-ID: <10510518.130761289954233549.JavaMail.jira@thor> Date: Tue, 16 Nov 2010 19:37:13 -0500 (EST) From: "Yan Zhou (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Commented: (PIG-1731) New Logical Plan: FILTER fails when there are multiple conditions In-Reply-To: <2580622.128661289946315358.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932732#action_12932732 ] Yan Zhou commented on PIG-1731: ------------------------------- If there is no AND in this test, the simplifier won't check for the equality of the two UDF calls so it is ok too. > New Logical Plan: FILTER fails when there are multiple conditions > ----------------------------------------------------------------- > > Key: PIG-1731 > URL: https://issues.apache.org/jira/browse/PIG-1731 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.8.0 > Reporter: Sherry Chen > Assignee: Yan Zhou > Fix For: 0.8.0 > > Attachments: PIG-1731.patch > > > Following pig script fails: > =========== > REGISTER string.jar; > A = LOAD 'data' USING PigStorage() AS (a0:chararray, a1, a2); > B = FOREACH A GENERATE a0; > C = DISTINCT B; > D = FILTER C BY string.LENGTH(a0) <= 50 AND string.LENGTH(a0) > 1; > STORE D INTO 'D'; > =========== > 2010-11-16 22:11:38,097 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - pig.usenewlogicalplan is set to true. New logical plan will be used. > 2010-11-16 22:11:38,202 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. null > But this one works: > =========== > REGISTER string.jar; > A = LOAD 'data' USING PigStorage() AS (a0:chararray, a1, a2); > B = FOREACH A GENERATE a0; > C = DISTINCT B; > D = FILTER C BY string.LENGTH(a0) <= 50; > E = FILTER D BY string.LENGTH(a0) > 1; > STORE E INTO 'D'; > =========== > Input data: > =========== > Jerry Jerry 0.55 > Dave David 0.15 > Danny Dan 0.015 > S Smith 0.2 > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Amy 0.8 > =========== -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.