impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-1659: Netezza compatibility functions: metadata
Date Tue, 23 Aug 2016 17:32:18 GMT
Tim Armstrong has posted comments on this change.

Change subject: IMPALA-1659: Netezza compatibility functions: metadata

Patch Set 2:

File be/src/exprs/

Line 2702:   TestStringValue("current_user()", "impala_test_user");
We should extend tests/custom_cluster/ to test that these return the right
results when delegation is enabled.
File be/src/exprs/

Line 121:   return AnyValUtil::FromString(
This should fit in a single 90-character line.
File common/function-registry/

Line 550:   [['current_sid'], 'STRING', [], 'impala::UtilityFunctions::CurrentSid'],
I spoke with Greg offline and he pointed out that there wasn't a clear use-case for current_sid,
since there's nothing you can really do with the session id once you have it, e.g. cancel
the session.

Greg, do you see any risks in adding this now?

My feeling is that it's ok to add it, but that we should call it current_session/CurrentSession
and make current_sid an alias for it only.

Line 551:   [['user', 'current_user'], 'STRING', [], 'impala::UtilityFunctions::User'],
I think you have current_user and session_user the wrong way around. session_user would be
the user that initiated the session, so session_user doesn't change with impersonation, but
current_user does change.

E.g. see

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I9b5d1009bbf42acc175a942d2df484e1c64822ca
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Zoltan Ivanfi <>
Gerrit-Reviewer: Greg Rahn <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Reviewer: Zoltan Ivanfi <>
Gerrit-HasComments: Yes

View raw message