[
https://issues.apache.org/jira/browse/HIVE-2348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125611#comment-13125611
]
Chinna Rao Lalam commented on HIVE-2348:
----------------------------------------
@Edward
For above use case you can change the query like this it will work. No need to
drop the aliases
select offer, level_id, sum_cl_score as sumcl_floor
FROM xxx
GROUP BY offer, level_id, sum_cl_score
ORDER BY offer, level_id, sumcl_floor limit 1000000;
> Group by and order by of the same columns fails semantic analysis
> -----------------------------------------------------------------
>
> Key: HIVE-2348
> URL: https://issues.apache.org/jira/browse/HIVE-2348
> Project: Hive
> Issue Type: Bug
> Affects Versions: 0.7.1
> Reporter: Edward Capriolo
>
> select offer, level_id, sum_cl_score as sumcl_floor
> FROM xxx
> GROUP BY offer, level_id, sumcl_floor
> ORDER BY offer, level_id, sumcl_floor limit 1000000;
> FAILED: Error in semantic analysis: Invalid Table Alias or Column Reference
> sumcl_floor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira