[
https://issues.apache.org/jira/browse/HIVE-10619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531265#comment-14531265
]
Szehon Ho commented on HIVE-10619:
----------------------------------
+1 pending test. Assumed you verified locally that cache behavior still works?
> Fix ConcurrentHashMap.get in MetadataListStructObjectInspector.getInstance
> (52)
> -------------------------------------------------------------------------------
>
> Key: HIVE-10619
> URL: https://issues.apache.org/jira/browse/HIVE-10619
> Project: Hive
> Issue Type: Bug
> Components: Serializers/Deserializers
> Reporter: Alexander Pivovarov
> Assignee: Alexander Pivovarov
> Priority: Minor
> Attachments: rb33878.patch
>
>
> cached.get(columnNames) should be replaced with cached.get(key) in the code
> block below
> {code}
> cached = new ConcurrentHashMap<List<List<String>>,
> MetadataListStructObjectInspector>();
> public static MetadataListStructObjectInspector getInstance(
> List<String> columnNames) {
> ArrayList<List<String>> key = new ArrayList<List<String>>(1);
> key.add(columnNames);
> MetadataListStructObjectInspector result = cached.get(columnNames);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)