Affects Version/s: None
Fix Version/s: None
Component/s: Query Processor
A simple statement of the form
select a.account_id, count(1) from tmp_ash_test2 a group by a.account_id order by a.account_id;
throws a sematic analysis exception
select a.account_id, count(1) from tmp_ash_test2 a group by a.account_id order by account_id;
works fine (the second query does not have the table alias a in the order by clause.