hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Tromans (JIRA)" <>
Subject [jira] [Updated] (HIVE-3125) sort_array doesn't work with LazyPrimitive
Date Wed, 13 Jun 2012 11:21:42 GMT


Philip Tromans updated HIVE-3125:

    Attachment: HIVE-3125.1.patch.txt

I'm not entirely sure if this is the right way to fix this. The right thing to do may well
be to make LazyInteger Comparable, but I thought it'd be best for me to stay out of Hive's
serde stuff. I'm still a little new round here...

This fixes it by using the ObjectInspectorUtils compare() method.
> sort_array doesn't work with LazyPrimitive
> ------------------------------------------
>                 Key: HIVE-3125
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 0.9.0
>            Reporter: Philip Tromans
>            Assignee: Philip Tromans
>         Attachments: HIVE-3125.1.patch.txt
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message