Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 16341 invoked from network); 16 Apr 2010 16:20:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Apr 2010 16:20:49 -0000 Received: (qmail 85533 invoked by uid 500); 16 Apr 2010 16:20:49 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 85513 invoked by uid 500); 16 Apr 2010 16:20:49 -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 85505 invoked by uid 99); 16 Apr 2010 16:20:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 16:20:49 +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; Fri, 16 Apr 2010 16:20:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3GGKPUM005114 for ; Fri, 16 Apr 2010 12:20:25 -0400 (EDT) Message-ID: <2630071.12671271434825275.JavaMail.jira@thor> Date: Fri, 16 Apr 2010 12:20:25 -0400 (EDT) From: "Xuefu Zhang (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12857870#action_12857870 ] Xuefu Zhang commented on PIG-1351: ---------------------------------- +1 code looks good. > [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.7.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. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira