공부
[Hive] delete partition
승가비
2020. 5. 21. 00:58
728x90
alter table {table명} drop if exists partition (label ='science')
alter table {table명} drop if exists partition (label ='science', date_id='2019-12-11')
alter table {table명} drop if exists partition (label ='science', date_id < '2019-12-11')
https://velog.io/@crescent702/drop-hive-partition
hive partition 정리하기
hive partition 정리하기 hive table에 매일매일 데이터를 쌓으며 방치하다보면, 데이터가 눈 깜짝할 새에 늘어나버린다. 필요한 이상으로. 주기적으로 파티션의 데이터를 지워줘야 하는데 기본적인 ��
velog.io
728x90