----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/65219/#review195825 -----------------------------------------------------------
Looks good! I added small issues to fix, similarly with the dropPartitions change: some helper methods could be static (the ones that don't depend on HMS client certainly) and some could use Lists.newArrayList standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java Lines 68 (patched) <https://reviews.apache.org/r/65219/#comment275161> Again this may be -1 instead, when MAX as a value is not used for any other reason than returning all partitions standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java Lines 672 (patched) <https://reviews.apache.org/r/65219/#comment275152> This is found multiple times in the code, should we create a method for it? - Adam Szita On Jan. 18, 2018, 4:58 p.m., Marta Kuczora wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/65219/ > ----------------------------------------------------------- > > (Updated Jan. 18, 2018, 4:58 p.m.) > > > Review request for hive, Peter Vary and Adam Szita. > > > Bugs: HIVE-18486 > https://issues.apache.org/jira/browse/HIVE-18486 > > > Repository: hive-git > > > Description > ------- > > The following methods of IMetaStoreClient are covered by this test. > - Partition add_partition(Partition) > - int add_partitions(List<Partition>) > - List<Partition> add_partitions(List<Partition>, boolean, boolean) > > > The test covers not just the happy pathes, but the edge cases as well. > > > Diffs > ----- > > > standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/client/TestAddPartitions.java > PRE-CREATION > > > Diff: https://reviews.apache.org/r/65219/diff/1/ > > > Testing > ------- > > Run the tests > > > Thanks, > > Marta Kuczora > >