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

sort_array doesn't work with LazyPrimitive

    XMLWordPrintableJSON

Details

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

    Description

      The sort_array function doesn't work against data that's actually come out of a table. The test suite only covers constants given in the query.

      If you try and use sort_array on an array from a table, then you get a ClassCastException that you can't convert LazyX to Comparable.

      Attachments

        1. HIVE-3125.1.patch.txt
          5 kB
          Philip Tromans
        2. HIVE-3125.2.patch.txt
          7 kB
          Philip Tromans

        Activity

          People

            philip.tromans Philip Tromans
            philip.tromans Philip Tromans
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: