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

sort_array doesn't work with LazyPrimitive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: UDF
    • Labels:
      None
    • Hadoop Flags:
      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.2.patch.txt
          7 kB
          Philip Tromans
        2. HIVE-3125.1.patch.txt
          5 kB
          Philip Tromans

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: