Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5323

NPE on executing query with order by 1 asc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 0.11.0
    • 0.11.1
    • SQL
    • None
    • MAC OSX
      Hive 0.11

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            tariqrahiman tariq rahiman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: