mirror of
https://github.com/apache/impala.git
synced 2026-01-26 03:01:30 -05:00
Analysis errors occurred with select queries that combined ordinals in the group by/order by clauses with select list aliases that had the same name as a column in one of the underlying tables. The root cause was a double substitution: e.g. the ordinal 1 in a GROUP BY clause was replaced with the corresponding select list expression, then a reference to column 'x' in an underlying table was replaced erroneously with the select list expression with alias 'x' Change-Id: I0f298290c58f18239e1ff83f0388d037c311f5fb Reviewed-on: http://gerrit.cloudera.org:8080/542 Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com> Tested-by: Tim Armstrong <tarmstrong@cloudera.com>