Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
create table source(p int, key int,value string); insert into source(p, key, value) values (101,42,'string42'); create table stats_part(key int,value string) partitioned by (p int); from source insert into stats_part select key, value, p insert into stats_part select key, value, p; select count(*) from stats_part;
In this case StatsOptimizer helps serving this query because the result should be rowNum of the partition p=101. The result is
1
however it shloud be
2
because both insert branches inserts 1-1 records.
Attachments
Issue Links
- is caused by
-
HIVE-15250 Reuse partitions info generated in MoveTask to its subscribers (StatsTask)
-
- Closed
-
- relates to
-
HIVE-23949 Introduce caching layer in HS2 to accelerate query compilation
-
- Closed
-
- links to