APPROX_TOP_K (Lakehouse v2)
Devuelve los k valores más frecuentes y sus recuentos aproximados.
Analyze Syntax
Sección titulada «Analyze Syntax»func.approx_top_k(get_column(table, 'city'), 3)Analyze Examples
Sección titulada «Analyze Examples»func.approx_top_k(get_column(table, 'city'), 3)
┌──────────────────────────────┐│ [{"item":"NYC","count":150}] │└──────────────────────────────┘SQL Syntax
Sección titulada «SQL Syntax»APPROX_TOP_K(<city>, 3)SQL Examples
Sección titulada «SQL Examples»SELECT APPROX_TOP_K(city, 3) FROM customers;
┌───────────────────────────────────┐│ [{"item":"New York","count":150}] │└───────────────────────────────────┘