APPROX_TOP_K (Lakehouse v2)
가장 자주 나타나는 상위 k개 값과 해당 근사 개수를 반환합니다.
Analyze 구문
섹션 제목: “Analyze 구문”func.approx_top_k(get_column(table, 'city'), 3)Analyze 예제
섹션 제목: “Analyze 예제”func.approx_top_k(get_column(table, 'city'), 3)
┌──────────────────────────────┐│ [{"item":"NYC","count":150}] │└──────────────────────────────┘SQL 구문
섹션 제목: “SQL 구문”APPROX_TOP_K(<city>, 3)SQL 예제
섹션 제목: “SQL 예제”SELECT APPROX_TOP_K(city, 3) FROM customers;
┌───────────────────────────────────┐│ [{"item":"New York","count":150}] │└───────────────────────────────────┘