Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 98951 invoked from network); 8 Apr 2010 23:57:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 23:57:00 -0000 Received: (qmail 81555 invoked by uid 500); 8 Apr 2010 23:57:00 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 81536 invoked by uid 500); 8 Apr 2010 23:57:00 -0000 Mailing-List: contact pig-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@hadoop.apache.org Delivered-To: mailing list pig-dev@hadoop.apache.org Received: (qmail 81528 invoked by uid 99); 8 Apr 2010 23:57:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 23:57:00 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 23:56:57 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 988E4234C48D for ; Thu, 8 Apr 2010 23:56:36 +0000 (UTC) Message-ID: <1929678534.24721270770996624.JavaMail.jira@brutus.apache.org> Date: Thu, 8 Apr 2010 23:56:36 +0000 (UTC) From: "Chao Wang (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Updated: (PIG-1351) [Zebra] No type check when we write to the basic table In-Reply-To: <1795239037.662511270229427175.JavaMail.jira@brutus.apache.org> 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-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chao Wang updated PIG-1351: --------------------------- Attachment: PIG-1351.patch > [Zebra] No type check when we write to the basic table > ------------------------------------------------------ > > Key: PIG-1351 > URL: https://issues.apache.org/jira/browse/PIG-1351 > Project: Pig > Issue Type: Improvement > Affects Versions: 0.6.0, 0.7.0, 0.8.0 > Reporter: Chao Wang > Assignee: Chao Wang > Fix For: 0.8.0 > > Attachments: PIG-1351.patch > > > In Zebra, we do not have any type check when writing to a basic table. > Say, we have a schema: "f1:int, f2:string", > however we can write a tuple ("abc", 123) without any problem, which is definitely not desirable. > To overcome this problem, we decide to perform certain amount of type checking in Zebra - We check the first row only for each writer. > This only serves as a sanity check purpose in cases where users screw up specifying the output schema. We do NOT perform a rigorous type checking for all rows for apparently performance concerns. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.