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

Multiple aggregates in query fail the job

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.10.0
    • None
    • None

    Description

      To reproduce:

      Create the hive table:

      CREATE EXTERNAL TABLE Birthdays (id int, name string, birthday timestamp) ROW FORMAT DELIMITED FIELDS TERMINATED BY '	';

      Insert the data (from file):

      1 A 2012-10-15 08:01:00
      2 B 2012-10-15 08:02:00
      3 C 2012-10-15 08:03:00
      4 D 2012-10-15 08:04:00
      5 E 2012-10-15 08:05:00
      6 F 2012-10-15 08:06:00
      7 G 2012-10-15 08:07:00
      8 H 2012-10-15 08:08:00
      9 I 2012-10-15 08:09:00

      The first 3 queries work, the last query errors out:

      SELECT * FROM Birthdays;
      SELECT MIN(Birthday) AS MinBirthday FROM Birthdays;
      SELECT MAX(Birthday) AS MaxBirthday FROM Birthdays;
      SELECT MIN(Birthday) AS MinBirthday, MAX(Birthday) AS MaxBirthday FROM Birthdays;
      

      Attachments

        1. hive_output.txt
          5 kB
          Jeremy Hanna

        Activity

          People

            Unassigned Unassigned
            jeromatron Jeremy Hanna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: