[ 
https://issues.apache.org/jira/browse/HIVE-22631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17000486#comment-17000486
 ] 

Jesus Camacho Rodriguez commented on HIVE-22631:
------------------------------------------------

[~vgarg], since these partition objects are not immutable, I assume the call 
was trying to avoid that other methods upstream can modify the returned 
partitions? However, may this actually happen (those returned objects being 
reused for multiple calls)? In our tests, there is certainly no such case.

> Avoid deep copying partition list in listPartitionsByExpr
> ---------------------------------------------------------
>
>                 Key: HIVE-22631
>                 URL: https://issues.apache.org/jira/browse/HIVE-22631
>             Project: Hive
>          Issue Type: Improvement
>          Components: Hive
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>            Priority: Major
>         Attachments: HIVE-22631.1.patch, HIVE-22631.2.patch
>
>
> This is an expensive call, I am not sure why deepCopy is required.



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

Reply via email to