HIVE-8842: auto_join2.q produces incorrect tree [Spark Branch] (Chao via Xuefu)

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