Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0850D200CBC for ; Tue, 20 Jun 2017 22:27:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 06111160BE1; Tue, 20 Jun 2017 20:27:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4AD74160BCC for ; Tue, 20 Jun 2017 22:27:07 +0200 (CEST) Received: (qmail 79729 invoked by uid 500); 20 Jun 2017 20:27:06 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 79720 invoked by uid 99); 20 Jun 2017 20:27:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2017 20:27:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EE1DAC040A for ; Tue, 20 Jun 2017 20:27:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id aHhnCgCGBD1Z for ; Tue, 20 Jun 2017 20:27:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 18BBE5F2F1 for ; Tue, 20 Jun 2017 20:27:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 278FBE0237 for ; Tue, 20 Jun 2017 20:27:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B95B4240A9 for ; Tue, 20 Jun 2017 20:27:02 +0000 (UTC) Date: Tue, 20 Jun 2017 20:27:02 +0000 (UTC) From: "Aihua Xu (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-16875) Query against view with partitioned child on HoS fails with privilege exception. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Jun 2017 20:27:08 -0000 [ https://issues.apache.org/jira/browse/HIVE-16875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056402#comment-16056402 ] Aihua Xu commented on HIVE-16875: --------------------------------- I see. We are expecting an alias_id here rather than an alias. nit: maybe we can change alias to alias_id and the same in the function {{setupMapWork(MapWork mapWork, GenSparkProcContext context, PrunedPartitionList partitions, TableScanOperator root, String alias)}} to be clear. Otherwise, the change looks good to me. +1. > Query against view with partitioned child on HoS fails with privilege exception. > -------------------------------------------------------------------------------- > > Key: HIVE-16875 > URL: https://issues.apache.org/jira/browse/HIVE-16875 > Project: Hive > Issue Type: Bug > Components: Spark > Affects Versions: 1.0.0 > Reporter: Yongzhi Chen > Assignee: Yongzhi Chen > Attachments: HIVE-16875.1.patch, HIVE-16875.2.patch > > > Query against view with child table that has partitions fails with privilege exception even with correct privileges. > Reproduce: > {noformat} > create table jsamp1 (a string) partitioned by (b int); > insert into table jsamp1 partition (b=1) values ("hello"); > create view jview as select * from jsamp1; > create role viewtester; > grant all on table jview to role viewtester; > grant role viewtester to group testers; > Use MR, the select will succeed: > set hive.execution.engine=mr; > select count(*) from jview; > while use spark: > set hive.execution.engine=spark; > select count(*) from jview; > it fails with: > Error: Error while compiling statement: FAILED: SemanticException No valid privileges > User tester does not have privileges for QUERY > The required privileges: Server=server1->Db=default->Table=j1part->action=select; (state=42000,code=40000) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)