Apache hive-what happens to the data of the renamed partition?

hive

#1

hi,
What happens to the data in the partition if I rename?
For instance I have a table emp_pcb that has 3 partitions
empdeptid=20
empdeptid=30
empdeptid=10
if I rename one partition as below what happens to the data under that partition.
alter table emp_pcb partition(empdeptid=10) rename to partition(empdeptid=40);
To my surprise it updated the new partition data as below :slight_smile:hive> select * from emp_pcb where empdeptid=40;
OK
7782 CLERK NULL 7839 09-JUNE-1981 2450 NULL 40
7839 KING NULL NULL 17-NOV-1981 5000 NULL 40
7934 MILLER NULL 7782 23-JAN-1982 1300 NULL 40
Is this the expected output?