You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/13 16:06:00 UTC

[jira] [Commented] (IMPALA-7398) Add logged_in_user alias for effective_user

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

ASF subversion and git services commented on IMPALA-7398:
---------------------------------------------------------

Commit 7002ad3b35a8217daa0f5a1962eaff338030d327 in impala's branch refs/heads/master from [~aholley]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=7002ad3 ]

IMPALA-7398: Add logged_in_user alias for effective_user

This patch adds an alias to the effective_user function so that
views created in Hive using the logged_in_user function will work
in Impala.

Example:
CREATE VIEW foo.view1 AS SELECT * FROM foo.table1 WHERE
name=logged_in_user();

Tests:
- Added function and ran delegation tests
- Ran backend tests
- Ran custom-cluster tests including delegation

Change-Id: Id63f243e0fffbe2798f1f9dbc4cc3ebe9d9529a6
Reviewed-on: http://gerrit.cloudera.org:8080/11184
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Add logged_in_user alias for effective_user
> -------------------------------------------
>
>                 Key: IMPALA-7398
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7398
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Backend
>    Affects Versions: Impala 3.0, Impala 2.12.0
>            Reporter: Peter Ebert
>            Assignee: Adam Holley
>            Priority: Major
>              Labels: authorization
>             Fix For: Impala 3.1.0
>
>
> When using sentry Hive will return a different value for 'current_user' than Impala.  This means a view using these values would be inconsistent between the two SQL engines.  By adding 'logged_in_user' as an alias for 'effective_user' views would be consistent between Hive and Impala.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org