hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien Carol (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-9397) SELECT max(bar) FROM foo is broken with metadata enabled
Date Fri, 16 Jan 2015 14:47:34 GMT
Damien Carol created HIVE-9397:
----------------------------------

             Summary: SELECT max(bar) FROM foo is broken with metadata enabled
                 Key: HIVE-9397
                 URL: https://issues.apache.org/jira/browse/HIVE-9397
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.15.0
            Reporter: Damien Carol


This 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}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message