-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68838/
-----------------------------------------------------------

Review request for sentry, Na Li and Sergio Pena.


Bugs: SENTRY-2410
    https://issues.apache.org/jira/browse/SENTRY-2410


Repository: sentry


Description
-------

The CREATE privilege is not allowing a user to see which tables already exist 
in a database using the SHOW TABLES command. We should allow the SHOW TABLES 
command to list all tables no matter the user who create them as there is no 
case to avoid it.


Diffs
-----

  
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/DefaultSentryValidator.java
 f0764767f32e4380a3f36b32e2e6a7420af11dde 
  
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzBindingHookBase.java
 da1956b8e7a3a7b3d1555c099f9424073c188ff2 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestShowMetadataPrivileges.java
 88e697b32452de4af6ba6cc0b8c1a2bb7bdebeb6 


Diff: https://reviews.apache.org/r/68838/diff/1/


Testing
-------

Made sure all the existing tests passed. Also updated some tests to cover this 
change.


Thanks,

kalyan kumar kalvagadda

Reply via email to