HIVE-4818: SequenceId in operator is not thread safe (Edward Capriolo via Brock Noland)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1504976 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4730 : Join on more than 2^31 records on single reducer failed (wrong results) (Navis via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1504983 13f79535-47bb-0310-9956-ffa450edef68