跳转至

Dense rank(密集排名(Dense rank))

Supported in: Batch, Faster

Returns the rank of rows within a window partition, without any gaps. In case of ties the rows get same rank. The difference between rank and dense_rank is that dense_rank leaves no gaps in ranking sequence when there are ties.

Expression categories: Aggregate

Declared arguments

This function does not take any arguments.

Output type: Integer


中文翻译


密集排名(Dense rank)

支持环境:批处理(Batch)、快速处理(Faster)

返回窗口分区内各行的排名,且排名之间无间隔。当出现并列情况时,并列行获得相同排名。排名(rank)与密集排名(dense_rank)的区别在于:密集排名在出现并列时,排名序列中不会产生间隔。

表达式类别: 聚合(Aggregate)

声明参数

此函数无需任何参数。

输出类型: 整数(Integer)