Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 44107 invoked from network); 23 Jul 2010 18:07:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 18:07:15 -0000 Received: (qmail 97969 invoked by uid 500); 23 Jul 2010 18:07:15 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 97919 invoked by uid 500); 23 Jul 2010 18:07:15 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 97911 invoked by uid 99); 23 Jul 2010 18:07:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 18:07:15 +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, 23 Jul 2010 18:07:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6NI6pxN018541 for ; Fri, 23 Jul 2010 18:06:51 GMT Message-ID: <1737420.550621279908411700.JavaMail.jira@thor> Date: Fri, 23 Jul 2010 14:06:51 -0400 (EDT) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-235) DynamicSerDe does not work with Thrift Protocols that can have missing fields for null values In-Reply-To: <418979541.1232105039909.JavaMail.jira@brutus> 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/HIVE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-235: -------------------------------- Fix Version/s: 0.3.0 > DynamicSerDe does not work with Thrift Protocols that can have missing fields for null values > --------------------------------------------------------------------------------------------- > > Key: HIVE-235 > URL: https://issues.apache.org/jira/browse/HIVE-235 > Project: Hadoop Hive > Issue Type: Bug > Components: Serializers/Deserializers > Reporter: Zheng Shao > Assignee: Zheng Shao > Priority: Blocker > Fix For: 0.3.0 > > Attachments: HIVE-235.1.patch, HIVE-235.2.patch > > > The current DynamicSerDe code assumes all fields are there and no fields are missing. > However Thrift Protocols can have missing fields, in case the field is null. > In that case, DynamicSerDe may commit 2 behavior: > 1. array index out of bound error because DynamicSerDe assumes the number of fields in the record should be equal to that in the DDL; > 2. fields with null values will take the value from the last record. This may produce wrong result for queries. > In order to fix this, we need to: > 1. Pass ObjectInspector/TypeInfo recursively so that we know the number of fields when deserializing the record. > 2. Clear out fields that are missing from the record. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.