Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 314EE92AA for ; Sun, 4 Dec 2011 06:33:03 +0000 (UTC) Received: (qmail 78193 invoked by uid 500); 4 Dec 2011 06:33:02 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 78159 invoked by uid 500); 4 Dec 2011 06:33:02 -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 78151 invoked by uid 500); 4 Dec 2011 06:33:01 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 78148 invoked by uid 99); 4 Dec 2011 06:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 06:33:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 06:33:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2C271C4986 for ; Sun, 4 Dec 2011 06:32:40 +0000 (UTC) Date: Sun, 4 Dec 2011 06:32:40 +0000 (UTC) From: "Daniel Dai (Resolved) (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <216430882.38209.1322980360182.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1356762751.38200.1322978800113.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (PIG-2395) Pig doesn't do early projection for some scripts 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/PIG-2395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dai resolved PIG-2395. ----------------------------- Resolution: Duplicate This is a duplication of PIG-1324. It involves some significant rework of column prune optimizer. > Pig doesn't do early projection for some scripts > ------------------------------------------------ > > Key: PIG-2395 > URL: https://issues.apache.org/jira/browse/PIG-2395 > Project: Pig > Issue Type: Improvement > Affects Versions: 0.9.1 > Environment: Linux > Reporter: Jie Li > > For some scripts Pig doesn't do early projection, e.g. dropping non-necessary fields as soon as possible. This is observed in two ways: 1) the output doesn't contain INFO like "ColumnPruneVisitor - Columns pruned for xxx: $0, $1"; 2) the job has as much or more local IO (see FILE_BYTES_READ and FILE_BYTES_WRITTEN) as HDFS IO (see HDFS_BYTES_READ). > One example where Pig should figure out A's fields c~n can be dropped before the COGROUP. > A = load '/tmp/A' USING PigStorage('|') as (a,b,c,d,e,f,g,h,i,j,k,l,m,n); > B = load '/tmp/B' USING PigStorage('|') as (a); > COG = cogroup A by a, B by a; > out = foreach COG generate SUM(A.b) as sum; > store out into '/tmp/out' USING PigStorage('|'); > Another similar example involves a GROUP operator. > While Pig is able and assumed to do early projection in most cases, this inconsistency hurts the performance badly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira