Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
2.1.1
-
None
-
None
Description
Hi
I have a weird thing,the bevior shows like this:
1) create table test1(id int) partitioned by (year int);
2) insert overwrite table test1 partition(year=2020) select 1;
3) check the location of partition 2020,so as '/A/B';
4) alter table test1 add partition(year=2021) location '/A/B'
5)check the data
6)check partitrions
7)check data from different partitions
8)The question is,when we check the count,the result sames wrong :
hive> select year,count(1) as cnt from test1 group by year;
OK
2021 1
Time taken: 9.524 seconds, Fetched: 1 row(s)
hive>
Can anyone help review whether we have fixed this issue in furture?
Thansk in advance!