> On Nov. 21, 2017, 8:09 p.m., Arjun Mishra wrote: > > 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/diff/2/?file=1898563#file1898563line265> > > > > 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
There are other fields to set besides currDB. It may introduce bug if I change the logic here. - Na ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63975/#review191634 ----------------------------------------------------------- On Nov. 21, 2017, 9:27 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, 9:27 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/3/ > > > Testing > ------- > > unit test > > > Thanks, > > Na Li > >