반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- numpy
- PANDAS
- SQL
- Github
- gas
- Java
- Python
- matplotlib
- dataframe
- string
- django
- Google Excel
- Tkinter
- Excel
- GIT
- 파이썬
- array
- c#
- math
- list
- hive
- google apps script
- Mac
- Google Spreadsheet
- PostgreSQL
- PySpark
- Apache
- Redshift
- Kotlin
Archives
- Today
- Total
목록drop partition (1)
달나라 노트
Hive : alter table ~ drop partition, partition drop, partition 지우기, partition 삭제
Hive에서 partition을 없애는 방법은 alter table을 이용하는 것입니다. alter table test_schema.test_tabledrop if exists partition ( dt >= 20240601, dt 위 query는 dt 컬럼을 partition으로 가지고 있는 test_schema.test_table 테이블에서 특정 값을 가진 partition을 없애는 쿼리입니다. drop if exists partition을 보면if exists를 적을 경우 drop 할 partition이 보이지 않는다면 별도로 drop하지 않고 지나갑니다. dt >= 20240601, dt 조건을 보면 위처럼 되어있기 때문에dt 컬럼의 값이 20240601 이상이고, d..
SQL/Apache Hive
2024. 8. 22. 19:38