콘텐츠로 이동

가장 자주 나타나는 상위 k개 값과 해당 근사 개수를 반환합니다.

func.approx_top_k(get_column(table, 'city'), 3)
func.approx_top_k(get_column(table, 'city'), 3)
┌──────────────────────────────┐
│ [{"item":"NYC","count":150}] │
└──────────────────────────────┘
APPROX_TOP_K(<city>, 3)
SELECT APPROX_TOP_K(city, 3) FROM customers;
┌───────────────────────────────────┐
│ [{"item":"New York","count":150}] │
└───────────────────────────────────┘