[
https://issues.apache.org/jira/browse/HIVE-16660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009160#comment-16009160
]
Yongzhi Chen commented on HIVE-16660:
-------------------------------------
[~Yibing], they are all related to partitions to the view. For example, If
navigator hook is attached to HS2, add partition operation(after partition
added) will trigger second issue. So in hue, user will see NPE even the first
issue is solved.
> Not able to add partition for views in hive when sentry is enabled
> ------------------------------------------------------------------
>
> Key: HIVE-16660
> URL: https://issues.apache.org/jira/browse/HIVE-16660
> Project: Hive
> Issue Type: Bug
> Components: Parser
> Reporter: Yongzhi Chen
> Assignee: Yongzhi Chen
> Attachments: HIVE-16660.1.patch
>
>
> Repro:
> create table tesnit (a int) partitioned by (p int);
> insert into table tesnit partition (p = 1) values (1);
> insert into table tesnit partition (p = 2) values (1);
> create view test_view partitioned on (p) as select * from tesnit where p =1;
> alter view test_view add partition (p = 2);
> Error: Error while compiling statement: FAILED: SemanticException [Error
> 10056]: The query does not reference any valid partition. To run this query,
> set hive.mapred.mode=nonstrict (state=42000,code=10056)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)