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 68E9E17ACA for ; Fri, 20 Feb 2015 00:44:48 +0000 (UTC) Received: (qmail 76005 invoked by uid 500); 20 Feb 2015 00:44:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 75914 invoked by uid 500); 20 Feb 2015 00:44:13 -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 75902 invoked by uid 500); 20 Feb 2015 00:44:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 75899 invoked by uid 99); 20 Feb 2015 00:44:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2015 00:44:13 +0000 Date: Fri, 20 Feb 2015 00:44:13 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9735) aggregate ( smalllint ) fails when ORC file used ava.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Short 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-9735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328382#comment-14328382 ] Ashutosh Chauhan commented on HIVE-9735: ---------------------------------------- If you are running your queries through beeline, then you are likely hitting into it : HIVE-9397 > aggregate ( smalllint ) fails when ORC file used ava.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Short > ------------------------------------------------------------------------------------------------------------------------------ > > Key: HIVE-9735 > URL: https://issues.apache.org/jira/browse/HIVE-9735 > Project: Hive > Issue Type: Bug > Components: SQL > Affects Versions: 0.14.0 > Reporter: N Campbell > > select min( tsint.csint ) from tsint > select max( tsint.csint ) from tsint > ava.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Short > select min( t_tsint.csint ) from t_tsint > create table if not exists T_TSINT ( RNUM int , CSINT smallint ) > ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' > STORED AS textfile ; > create table if not exists TSINT ( RNUM int , CSINT smallint ) > TERMINATED BY '\n' > STORED AS orc ; > input data loaded into text file and then inserted into ORC table from text based table > 0|\N > 1|-1 > 2|0 > 3|1 > 4|10 -- This message was sent by Atlassian JIRA (v6.3.4#6332)