Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 70089 invoked from network); 4 Jun 2010 00:22:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 00:22:19 -0000 Received: (qmail 63658 invoked by uid 500); 4 Jun 2010 00:22:19 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 63625 invoked by uid 500); 4 Jun 2010 00:22:19 -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 63617 invoked by uid 99); 4 Jun 2010 00:22:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 00:22:19 +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, 04 Jun 2010 00:22:17 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o540LtHv006458 for ; Fri, 4 Jun 2010 00:21:55 GMT Message-ID: <7997145.171711275610915829.JavaMail.jira@thor> Date: Thu, 3 Jun 2010 20:21:55 -0400 (EDT) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1388) combinehiveinputformat does not work if files are of different types In-Reply-To: <860675.169491275605875747.JavaMail.jira@thor> 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-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Namit Jain updated HIVE-1388: ----------------------------- Attachment: hive.1388.2.patch > combinehiveinputformat does not work if files are of different types > -------------------------------------------------------------------- > > Key: HIVE-1388 > URL: https://issues.apache.org/jira/browse/HIVE-1388 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > Assignee: Namit Jain > Attachments: hive.1388.1.patch, hive.1388.2.patch > > > rop table t1; > drop table t2; > create table t1 (key string, value string) partitioned by (ds string, hr string); > create table t2 (key string, value string) partitioned by (ds string); > insert overwrite table t1 partition (ds='1', hr='1') select key, value from src cluster by key; > insert overwrite table t1 partition (ds='1', hr='2') select key, value from src cluster by key; > insert overwrite table t1 partition (ds='1', hr='2') select key, value from t1 where ds = '1' and hr = '2'; > desc extended t1; > desc extended t1 partition (ds='1', hr='1'); > desc extended t1 partition (ds='1', hr='2'); > alter table t2 add partition (ds='1') location '/data/users/njain/hive3/hive3/build/ql/test/data/warehouse/t1/ds=1'; > select count(1) from t2 where ds='1'; > set hive.input.format = org.apache.hadoop.hive.ql.io.CombineHiveInputFormat; > select count(1) from t2 where ds='1'; > drop table t1; > drop table t2; > Consider the above testcase, some files are generated by mappers, whereas some others are generated by reducers. > It is therefore possible that some files contain Text in their key, whereas others contain BytesWritable. > Due to that, combinehiveInputFormat record reader may get an error. > Note that, this works in hiveinputformat because different files are not combined in the same mapper - it even works if > we query 't1' because different partitions are not combined in the same mapper -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.