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 05C9B1161A for ; Wed, 27 Aug 2014 17:56:10 +0000 (UTC) Received: (qmail 20006 invoked by uid 500); 27 Aug 2014 17:56:00 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 19952 invoked by uid 500); 27 Aug 2014 17:56:00 -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 19877 invoked by uid 500); 27 Aug 2014 17:56:00 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 19871 invoked by uid 99); 27 Aug 2014 17:56:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 17:56:00 +0000 Date: Wed, 27 Aug 2014 17:56:00 +0000 (UTC) From: "Mohit Sabharwal (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7889) Query fails with char partition column 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-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mohit Sabharwal updated HIVE-7889: ---------------------------------- Attachment: HIVE-7889.2.patch > Query fails with char partition column > -------------------------------------- > > Key: HIVE-7889 > URL: https://issues.apache.org/jira/browse/HIVE-7889 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Reporter: Mohit Sabharwal > Assignee: Mohit Sabharwal > Attachments: HIVE-7889.1.patch, HIVE-7889.2.patch, HIVE-7889.patch > > > For a char partition column, JavaHiveCharObjectInspector attempts to cast HiveCharWritable to HiveChar: > {code} > create table partition_char_1 (key string, value char(20)) partitioned by (dt char(10), region int); > insert overwrite table partition_char_1 partition(dt='2000-01-01', region=1) > select * from src tablesample (10 rows); > select * from partition_char_1 limit 1; > java.sql.SQLException: Error while compiling statement: FAILED: RuntimeException org.apache.hadoop.hive.ql.metadata.HiveException: Failed with exception org.apache.hadoop.hive.serde2.io.HiveCharWritable cannot be cast to org.apache.hadoop.hive.common.type.HiveCharjava.lang.ClassCastException: org.apache.hadoop.hive.serde2.io.HiveCharWritable cannot be cast to org.apache.hadoop.hive.common.type.HiveChar > at org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaHiveCharObjectInspector.set(JavaHiveCharObjectInspector.java:67) > at org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorConverter$HiveCharConverter.convert(PrimitiveObjectInspectorConverter.java:506) > at org.apache.hadoop.hive.ql.exec.FetchOperator.createPartValue(FetchOperator.java:315) > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)