Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Investigating a failed query:
set hive.cbo.enable=false; set hive.orderby.position.alias=true; select distinct age from student order by 1 desc limit 20;
The query does not sort the output correctly when cbo is disabled/inactivated. I found two issues:
1. "order by position" query is broken by HIVE-16774
2. In particular, select distinct query never work for "order by position" query