hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tariq rahiman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-5323) NPE on executing query with order by 1 sac
Date Thu, 19 Sep 2013 22:49:51 GMT
tariq rahiman created HIVE-5323:
-----------------------------------

             Summary: NPE on executing query with order by 1 sac
                 Key: HIVE-5323
                 URL: https://issues.apache.org/jira/browse/HIVE-5323
             Project: Hive
          Issue Type: Bug
          Components: SQL
    Affects Versions: 0.11.0
         Environment: MAC OSX
Hive 0.11
            Reporter: tariq rahiman


I created a table with the below DDL in Hive 0.11 and used order by 1 asc in a SQL query and
got NPE. Details are below:

CREATE TABLE hive_npe(viewTime INT, userid BIGINT,
     page_url STRING, referrer_url STRING)
 COMMENT 'NPE for Order by 1 ASC'
 STORED AS SEQUENCEFILE
;

select sum(viewtime) , sum(distinct userid) from hive_npe order by 1 asc
;

I get the below error message
Query returned non-zero code: 40000, cause: FAILED: NullPointerException null

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message