----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28791/#review64242 -----------------------------------------------------------
Hi, [~tedxu], thanks for the quick work! I just have one minor question: do you think it would be good to have a new test case for this? Maybe someone that just like join38.q, but uses common join and set number of reducers to be a number greater than one? - Chao Sun On Dec. 7, 2014, 9:30 a.m., Ted Xu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28791/ > ----------------------------------------------------------- > > (Updated Dec. 7, 2014, 9:30 a.m.) > > > Review request for hive, Ashutosh Chauhan and Chao Sun. > > > Bugs: HIVE-9025 > https://issues.apache.org/jira/browse/HIVE-9025 > > > Repository: hive > > > Description > ------- > > HIVE-5771 introduced a bug that when all partition columns are constants, the > partition is transformed to be a random dispatch, which is not expected. > > This patch adds a constant column in the above case to avoid random > partitioning. > > > Diffs > ----- > > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ConstantPropagateProcFactory.java > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/cluster.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/constprog2.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/join_nullsafe.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/ppd2.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/ppd_clusterby.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/ppd_join4.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/ppd_outer_join5.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/quotedid_basic.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/smb_mapjoin_25.q.out > 1643530 > > http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/union27.q.out > 1643530 > > Diff: https://reviews.apache.org/r/28791/diff/ > > > Testing > ------- > > TestCliDriver passed. > > > Thanks, > > Ted Xu > >