Hive
  1. Hive
  2. HIVE-3125

sort_array doesn't work with LazyPrimitive

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        Philip Tromans created issue -
        Philip Tromans made changes -
        Field Original Value New Value
        Assignee Philip Tromans [ philip.tromans ]
        Affects Version/s 0.9.0 [ 12317742 ]
        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.
        Philip Tromans made changes -
        Attachment HIVE-3125.1.patch.txt [ 12531955 ]
        Philip Tromans made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Carl Steinbach made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Carl Steinbach made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Philip Tromans made changes -
        Attachment HIVE-3125.2.patch.txt [ 12532844 ]
        Edward Capriolo made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 0.10.0 [ 12320745 ]
        Resolution Fixed [ 1 ]
        Ashutosh Chauhan made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development