[
https://issues.apache.org/jira/browse/HIVE-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294463#comment-13294463
]
Edward Capriolo commented on HIVE-3125:
---------------------------------------
Nice catch. A feature that sorts out literals only is not useful outside of the
unit tests. I will look at this.
> sort_array doesn't work with LazyPrimitive
> ------------------------------------------
>
> Key: HIVE-3125
> URL: https://issues.apache.org/jira/browse/HIVE-3125
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira