Krisztian Kasa created HIVE-22508: ------------------------------------- Summary: 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 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)