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] [Commented] (HIVE-9397) SELECT max(bar) FROM foo is broken with metadata enabled
Date Fri, 16 Jan 2015 14:50:34 GMT

    [ https://issues.apache.org/jira/browse/HIVE-9397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280324#comment-14280324
] 

Damien Carol commented on HIVE-9397:
------------------------------------

Complete stack :
{noformat}
java.lang.RuntimeException: org.apache.hive.service.cli.HiveSQLException: java.lang.ClassCastException
        at org.apache.hive.beeline.IncrementalRows.hasNext(IncrementalRows.java:84)
        at org.apache.hive.beeline.TableOutputFormat.print(TableOutputFormat.java:49)
        at org.apache.hive.beeline.BeeLine.print(BeeLine.java:1722)
        at org.apache.hive.beeline.Commands.execute(Commands.java:793)
        at org.apache.hive.beeline.Commands.sql(Commands.java:665)
        at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:938)
        at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:778)
        at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:740)
        at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:470)
        at org.apache.hive.beeline.BeeLine.main(BeeLine.java:453)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
{noformat}

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

Mime
View raw message