HIVE-5149 [jira] ReduceSinkDeDuplication can pick the wrong partitioning columns

Summary:
initial commit

https://mail-archives.apache.org/mod_mbox/hive-user/201308.mbox/%3CCAG6Lhyex5XPwszpihKqkPRpzri2k=m4QGc+cpAR5yVR8SJtM4Q@mail.gmail.com%3E

Test Plan:
EMPTY

Reviewers: JIRA
HIVE-3562 : Receipt NoAMIP41258408

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1518234 13f79535-47bb-0310-9956-ffa450edef68
HIVE-5128 : Direct SQL for view is failing (Sergey Shelukhin via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1518258 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'upstream/trunk' into HIVE-5149
update comments
Merge branch 'HIVE-5149' of https://github.com/yhuai/hive into HIVE-5149

Conflicts:
	ql/src/java/org/apache/hadoop/hive/ql/optimizer/correlation/ReduceSinkDeDuplication.java