Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 1.0.0, 1.1.0
-
None
Description
select count(distinct ss_ticket_number) from store_sales;
can be rewritten as
select count(1) from (select distinct ss_ticket_number from store_sales) a;
which may run upto 3x faster
Attachments
Attachments
Issue Links
- is blocked by
-
HIVE-10607 Combination of ReducesinkDedup + TopN optimization yields incorrect result if there are multiple GBY in reducer
- Closed
- is related to
-
HIVE-10855 Make HIVE-10568 work with Spark [Spark Branch]
- Closed
-
HIVE-19283 Select count(distinct()) a couple of times stuck in last reducer
- Open
- links to