[
https://issues.apache.org/jira/browse/HIVE-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13000585#comment-13000585
]
Ning Zhang commented on HIVE-2013:
----------------------------------
One caveat for this approach is that when the table-level privilege is changed,
all partitions have to be checked and reset the property appropriately.
Assume changing table-level privilege is rare and querying tables whose
partitions have different privileges is common, this optimization makes sense
in most use cases.
> Add a parameter in the Partition object to indicate it's privilege is the
> same as table level privilege
> -------------------------------------------------------------------------------------------------------
>
> Key: HIVE-2013
> URL: https://issues.apache.org/jira/browse/HIVE-2013
> Project: Hive
> Issue Type: Improvement
> Reporter: Ning Zhang
> Assignee: He Yongqiang
>
> If a query involves many partitions, checking privilege for each partition
> could be very expensive. An optimization is to indicate in the partition
> metadata that its privilege is the same as table level (default) privilege so
> that we only do 1 ACL checking for the set of partitions having the default
> privilege.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira