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 F3E9769A3 for ; Mon, 25 Jul 2011 05:49:49 +0000 (UTC) Received: (qmail 64624 invoked by uid 500); 25 Jul 2011 05:49:49 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 64458 invoked by uid 500); 25 Jul 2011 05:49: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 64448 invoked by uid 500); 25 Jul 2011 05:49:34 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 64443 invoked by uid 99); 25 Jul 2011 05:49:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 05:49:33 +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; Mon, 25 Jul 2011 05:49:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7018283BD5 for ; Mon, 25 Jul 2011 05:49:09 +0000 (UTC) Date: Mon, 25 Jul 2011 05:49:09 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <1660846171.2888.1311572949456.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1957114410.12681.1311279898226.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (PIG-2186) PigStorage new warnings about missing schema file can be confusing 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-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated PIG-2186: ------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Patch committed to trunk. > PigStorage new warnings about missing schema file can be confusing > ------------------------------------------------------------------ > > Key: PIG-2186 > URL: https://issues.apache.org/jira/browse/PIG-2186 > Project: Pig > Issue Type: Bug > Affects Versions: 0.10 > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Fix For: 0.10 > > Attachments: PIG-2186.1.patch, PIG-2186.2.patch > > > In PIG-2143,the ability to store and use schema files was added to PigStorage . By default, PigStorage as a load function checks for the schema file presence and logs a warning if there is no schema file. > {code} > 2011-07-21 13:15:19,101 [main] WARN org.apache.pig.builtin.JsonMetadata - Could not find schema file for file:///Users/thejas/pig_trunk_cp/trunk/t.txt > {code} > But in cases where user has not taken actions to store a schema, this warning can be confusing. There is no way for PigStorage() to know if the schema is actually expected. > To get rid of this warning, I think the default should be to not use schema. (I take back my suggestions in PIG-2143 !) > Also, the PigStorage.getSchema() call should cache the schema as the call is made multiple times. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira