hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krisztian Kasa (Jira)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-22508) KeyWrapperComparator throws exception
Date Mon, 09 Dec 2019 22:04:00 GMT

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

Krisztian Kasa updated HIVE-22508:
----------------------------------
    Status: Patch Available  (was: Open)

> 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
>
>         Attachments: HIVE-22508.1.patch, HIVE-22508.1.patch, HIVE-22508.1.patch, HIVE-22508.2.patch,
HIVE-22508.2.patch
>
>
> 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)

Mime
View raw message