본문 바로가기

Data Engineering/Others

Presto SQL에서 유용하게 쓸만한 쿼리들

partition 조회하기

SELECT *
FROM catalog.schema."table$partitions"

 

여기서 특정 조건에 맞는 파티션만 보고싶으면 WHERE 절에 명시해주면 된다.