PERCENTILE_APPROX_WEIGHT (Lakehouse v2)
Retorna um valor de percentil aproximado ponderado.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.percentile_approx_weight(get_column(table, 'val'), get_column(table, 'weight'), 0.5)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.percentile_approx_weight(get_column(table, 'val'), get_column(table, 'weight'), 0.5)
┌──────┐│ 72.5 │└──────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”PERCENTILE_APPROX_WEIGHT(<val>, <weight>, 0.5)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT PERCENTILE_APPROX_WEIGHT(val, weight, 0.5) FROM data;
┌──────┐│ 72.5 │└──────┘