hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Mujumdar" <>
Subject Review Request 25595: HIVE-8083: Authorization DDLs should not enforce hive identifier syntax for user or group namesname that
Date Fri, 12 Sep 2014 21:50:45 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for hive and Brock Noland.

Bugs: HIVE-8083

Repository: hive-git


The compiler expects principals (user, group and role) as hive identifiers for authorization
DDLs. The user and group are entities that belong to external namespace and we can't expect
those to follow hive identifier syntax rules. For example, a userid or group can contain '-'
which is not allowed by compiler.
The patch is to allow string literal for user and group names.
The quoted identifier support perhaps can be made to work with this. However IMO this syntax
should be supported regardless of quoted identifier support (which is an optional configuration)


  ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g 25cd3a5 
  ql/src/test/queries/clientpositive/authorization_non_id.q PRE-CREATION 
  ql/src/test/results/clientpositive/authorization_non_id.q.out PRE-CREATION 



Added test case to verify various auth DDLs with new syntax.


Prasad Mujumdar

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message