You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Krisztian Kasa (Jira)" <ji...@apache.org> on 2019/11/18 15:16:00 UTC

[jira] [Assigned] (HIVE-22508) KeyWrapperComparator throws exception

     [ https://issues.apache.org/jira/browse/HIVE-22508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krisztian Kasa reassigned HIVE-22508:
-------------------------------------


> KeyWrapperComparator throws exception
> -------------------------------------
>
>                 Key: HIVE-22508
>                 URL: https://issues.apache.org/jira/browse/HIVE-22508
>             Project: Hive
>          Issue Type: Bug
>          Components: Physical Optimizer
>            Reporter: Krisztian Kasa
>            Assignee: Krisztian Kasa
>            Priority: Major
>             Fix For: 4.0.0
>
>
> TopNKeyOperator.KeyWrapperComparator throws exception when a new key and a copied key should be compared.
> The current implementation uses the standard object inspectors for all KeyWrapper instances. However when comparing untouched KeyWrappers the key object inspector should be used which can be extracted form Operator.inputObjectInspectors during initialization of the key's ExprNodeEvaluator. 
> This can cause a ClassCastException when the comparator is used collections like TreeSet.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)