HIVE-7767 - hive.optimize.union.remove does not work properly [Spark Branch] (Na Yang via Brock)

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