Description
Analyzer is unable to resolve order by if the columns in the order by clause contains a mixture of alias and real column names.
Example :
var var3 = sqlContext.sql("select c1 as a, c2 as b from inttab group by c1, c2 order by b, c1")
This used to work in 1.4 and is failing starting 1.5 and is affecting some tpcds queries (19, 55,71)