HIVE-7694 : Fix SMB join on tables differing by number of sorted by columns with same join prefix (Suma Shivaprasad via amareshwari)

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