----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63975/#review191634 -----------------------------------------------------------
sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java Line 265 (original), 265 (patched) <https://reviews.apache.org/r/63975/#comment269476> Is it wrong to break after currDB/currOutDB is set? Do we still have to stay in the for loop? Also we can avoid using isDBSet by initially setting it to getCanonicalDb() before entering the for loop - Arjun Mishra On Nov. 21, 2017, 5:08 p.m., Na Li wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63975/ > ----------------------------------------------------------- > > (Updated Nov. 21, 2017, 5:08 p.m.) > > > Review request for sentry, Arjun Mishra, Brian Towles, kalyan kumar > kalvagadda, and Sergio Pena. > > > Repository: sentry > > > Description > ------- > > if db name is not set in "case HiveParser.TOK_ALTERTABLE" at > HiveAuthzBindingHook.preAnalyze, make sure it is set > > > Diffs > ----- > > > sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/HiveAuthzBindingHook.java > e4620ea > > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDbSentryOnFailureHookLoading.java > aa99595 > > > Diff: https://reviews.apache.org/r/63975/diff/2/ > > > Testing > ------- > > unit test > > > Thanks, > > Na Li > >