Created 03-19-2023 05:49 PM
Dear Members,
I have accidently created a partition having characters %01 in the name. %01 is start of header `as per the notepad++`.
When i am trying to delete the partition using ALTER statement, there is no error but partition also not getting deleted.
can anyone suggest how to delete such partitions with special characters.
ALTER TABLE <table_name> DROP IF EXISTS PARTITION (code='YATHAH%0188QW');
Created 03-23-2023 03:55 PM
Found the solution - replace %01 --> \001 and it did the trick to delete the partition.
Created 03-20-2023 01:11 AM
Can you set below param:
set hive.msck.path.validation=skip;
Then use
MSCK REPAIR TABLE tablename DROP PARTITIONS;
Created 03-20-2023 01:40 AM
Hello Asish,
Thanks for response. I tried as per your comments still the result is same.
Partition is not getting dropped.
Created 03-20-2023 01:42 AM
Created 03-20-2023 01:53 AM
There is no error, i think the partition is not getting recognized because of -> %01
Created 03-20-2023 02:15 AM
Created 03-20-2023 10:31 PM
Hello Asish, This also didn't work.
Created 03-23-2023 05:39 AM
@hive1
What is the hive version? Can you try the below and revert
Set the below two properties before executing the rename partition
Then run the rename partition command
Share the output for further analysis
Created 03-23-2023 03:55 PM
Found the solution - replace %01 --> \001 and it did the trick to delete the partition.