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 2F53E17561 for ; Wed, 28 Jan 2015 19:22:36 +0000 (UTC) Received: (qmail 7621 invoked by uid 500); 28 Jan 2015 19:22:36 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 7553 invoked by uid 500); 28 Jan 2015 19:22:36 -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 7541 invoked by uid 500); 28 Jan 2015 19:22:36 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 7516 invoked by uid 99); 28 Jan 2015 19:22:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2015 19:22:36 +0000 Date: Wed, 28 Jan 2015 19:22:36 +0000 (UTC) From: "Damien Carol (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9397) SELECT max(bar) FROM foo is broken after ANALYZE ... FOR COLUMNS 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-9397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295667#comment-14295667 ] Damien Carol commented on HIVE-9397: ------------------------------------ These tests pass localy : * {{org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_metadata_only_queries}} * {{org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_udaf_histogram_numeric}} > SELECT max(bar) FROM foo is broken after ANALYZE ... FOR COLUMNS > ---------------------------------------------------------------- > > Key: HIVE-9397 > URL: https://issues.apache.org/jira/browse/HIVE-9397 > Project: Hive > Issue Type: Bug > Components: Beeline > Affects Versions: 0.14.0, 0.15.0 > Reporter: Damien Carol > Assignee: Navis > Attachments: HIVE-9397.1.patch.txt > > > These queries produce an error : > {code:sql} > DROP TABLE IF EXISTS foo; > CREATE TABLE foo (id int) STORED AS ORC; > INSERT INTO TABLE foo VALUES (1); > INSERT INTO TABLE foo VALUES (2); > INSERT INTO TABLE foo VALUES (3); > INSERT INTO TABLE foo VALUES (4); > INSERT INTO TABLE foo VALUES (5); > SELECT max(id) FROM foo; > ANALYZE TABLE foo COMPUTE STATISTICS FOR COLUMNS id; > SELECT max(id) FROM foo; > {code} > The last query throws {{org.apache.hive.service.cli.HiveSQLException}} > {noformat} > 0: jdbc:hive2://nc-h04:10000/casino> SELECT max(id) FROM foo; > +-------------+--+ > | _c0 | > +-------------+--+ > org.apache.hive.service.cli.HiveSQLException: java.lang.ClassCastException > 0: jdbc:hive2://nc-h04:10000/casino> > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)