----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34586/#review85870 -----------------------------------------------------------
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/HashTableLoader.java <https://reviews.apache.org/r/34586/#comment137716> The check for "totalSize <= 0" is there to terminate the loop early, incases where these are two tables that add up to <= 0. And the check for negative valaues is covered here if (tableSize <= 0) { fallbackToEqualProportions = true; break; } - Mostafa Mokhtar On May 27, 2015, 6:33 a.m., Mostafa Mokhtar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34586/ > ----------------------------------------------------------- > > (Updated May 27, 2015, 6:33 a.m.) > > > Review request for hive. > > > Repository: hive-git > > > Description > ------- > > fix biggest small table selection when table sizes are 0 > fallback to dividing memory equally if any tables have invalid size > > > Diffs > ----- > > ql/src/java/org/apache/hadoop/hive/ql/exec/tez/HashTableLoader.java 536b92c > > Diff: https://reviews.apache.org/r/34586/diff/ > > > Testing > ------- > > > Thanks, > > Mostafa Mokhtar > >