HIVE-8198: [CBO] Handle case where top level schema contains repeated alias (Ashutosh Chauhan via Gunther Hagleitner)

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