Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43DD818DE9 for ; Wed, 17 Jun 2015 14:50:15 +0000 (UTC) Received: (qmail 51491 invoked by uid 500); 17 Jun 2015 14:50:13 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 51423 invoked by uid 500); 17 Jun 2015 14:50:13 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 51414 invoked by uid 99); 17 Jun 2015 14:50:13 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 14:50:13 +0000 Received: from [192.168.1.108] (c-50-174-128-22.hsd1.ca.comcast.net [50.174.128.22]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A8D6C1A056B for ; Wed, 17 Jun 2015 14:50:12 +0000 (UTC) User-Agent: Microsoft-MacOutlook/14.5.1.150515 Date: Wed, 17 Jun 2015 07:50:09 -0700 Subject: Re: Read error : Varchar cannot be cast to string From: Gopal Vijayaraghavan Sender: Gopal Vijayaraghavan To: "user@hive.apache.org" Message-ID: Thread-Topic: Read error : Varchar cannot be cast to string References: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Hi, > Caused by: java.lang.ClassCastException: >org.apache.hadoop.hive.common.type.HiveVarchar cannot be cast to >java.lang.String > at >org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatchCtx.addPartitionCo >lsToBatch(VectorizedRowBatchCtx.java:566) Is it a partition column the one marked as a varchar? Can you write a small test-case and post a bug about this? I can take a look at this, looks like a simple missed call to toString(). Cheers, Gopal