datafusion_functions_window::rank

Function percent_rank

Source
pub fn percent_rank() -> Expr
Expand description

Create a WindowFunction expression for PercentRank user-defined window function.

Returns the relative rank of the current row: (rank - 1) / (total rows - 1)