Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 8474B10CB8 for ; Wed, 3 Jul 2013 23:10:21 +0000 (UTC) Received: (qmail 45771 invoked by uid 500); 3 Jul 2013 23:10:20 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 45709 invoked by uid 500); 3 Jul 2013 23:10:20 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 45662 invoked by uid 500); 3 Jul 2013 23:10:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 45637 invoked by uid 99); 3 Jul 2013 23:10:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 23:10:20 +0000 Date: Wed, 3 Jul 2013 23:10:20 +0000 (UTC) From: "Sushanth Sowmyan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4551) HCatLoader smallint/tinyint promotions to Int have issues with ORC integration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699571#comment-13699571 ] Sushanth Sowmyan commented on HIVE-4551: ---------------------------------------- I've created HIVE-4816 to follow up on what patch.2 did, and I've uploaded patch.2 there. I'm going to delete it here so that it doesn't cause further confusion to others visiting this jira. > HCatLoader smallint/tinyint promotions to Int have issues with ORC integration > ------------------------------------------------------------------------------ > > Key: HIVE-4551 > URL: https://issues.apache.org/jira/browse/HIVE-4551 > Project: Hive > Issue Type: Bug > Components: HCatalog > Reporter: Sushanth Sowmyan > Assignee: Sushanth Sowmyan > Attachments: 4551.patch > > > This was initially reported from an e2e test run, with the following E2E test: > {code} > { > 'name' => 'Hadoop_ORC_Write', > 'tests' => [ > { > 'num' => 1 > ,'hcat_prep'=>q\ > drop table if exists hadoop_orc; > create table hadoop_orc ( > t tinyint, > si smallint, > i int, > b bigint, > f float, > d double, > s string) > stored as orc;\ > ,'hadoop' => q\ > jar :FUNCPATH:/testudf.jar org.apache.hcatalog.utils.WriteText -libjars :HCAT_JAR: :THRIFTSERVER: all100k hadoop_orc\, > ,'result_table' => 'hadoop_orc' > ,'sql' => q\select * from all100k;\ > ,'floatpostprocess' => 1 > ,'delimiter' => ' ' > }, > ], > }, > {code} > This fails with the following error: > {code} > 2013-04-26 00:26:07,437 WARN org.apache.hadoop.mapred.Child: Error running child > org.apache.pig.backend.executionengine.ExecException: ERROR 6018: Error converting read value to tuple > at org.apache.hcatalog.pig.HCatBaseLoader.getNext(HCatBaseLoader.java:76) > at org.apache.hcatalog.pig.HCatLoader.getNext(HCatLoader.java:53) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:211) > at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:532) > at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67) > at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:765) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:369) > at org.apache.hadoop.mapred.Child$4.run(Child.java:255) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1195) > at org.apache.hadoop.mapred.Child.main(Child.java:249) > Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.io.ByteWritable cannot be cast to org.apache.hadoop.io.IntWritable > at org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableIntObjectInspector.getPrimitiveJavaObject(WritableIntObjectInspector.java:45) > at org.apache.hcatalog.data.HCatRecordSerDe.serializePrimitiveField(HCatRecordSerDe.java:290) > at org.apache.hcatalog.data.HCatRecordSerDe.serializeField(HCatRecordSerDe.java:192) > at org.apache.hcatalog.data.LazyHCatRecord.get(LazyHCatRecord.java:53) > at org.apache.hcatalog.data.LazyHCatRecord.get(LazyHCatRecord.java:97) > at org.apache.hcatalog.mapreduce.HCatRecordReader.nextKeyValue(HCatRecordReader.java:203) > at org.apache.hcatalog.pig.HCatBaseLoader.getNext(HCatBaseLoader.java:63) > ... 12 more > 2013-04-26 00:26:07,440 INFO org.apache.hadoop.mapred.Task: Runnning cleanup for the task > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira