@@ -601,17 +601,18 @@ abstract class RankLike extends AggregateWindowFunction {
601601 * change in rank. This is an internal parameter and will be assigned by the
602602 * Analyser.
603603 */
604- @ ExpressionDescription (usage = " _FUNC_() - RANK() computes the rank of a value in a group of" +
605- " values. The result is one plus the number of rows preceding or equal to the current row in " +
606- " the ordering of the partition. Tie values will produce gaps in the sequence." )
604+ @ ExpressionDescription (usage =
605+ """ _FUNC_() - RANK() computes the rank of a value in a group of values. The result is one plus
606+ the number of rows preceding or equal to the current row in the ordering of the partition. Tie
607+ values will produce gaps in the sequence.""" )
607608case class Rank (children : Seq [Expression ]) extends RankLike {
608609 def this () = this (Nil )
609610 override def withOrder (order : Seq [Expression ]): Rank = Rank (order)
610611}
611612
612613/**
613614 * The DenseRank function computes the rank of a value in a group of values. The result is one plus
614- * the previously assigned rank values . Unlike Rank, DenseRank will not produce gaps in the ranking
615+ * the previously assigned rank value . Unlike Rank, DenseRank will not produce gaps in the ranking
615616 * sequence.
616617 *
617618 * This documentation has been based upon similar documentation for the Hive and Presto projects.
@@ -622,7 +623,7 @@ case class Rank(children: Seq[Expression]) extends RankLike {
622623 */
623624@ ExpressionDescription (usage =
624625 """ _FUNC_() - The DENSE_RANK() function computes the rank of a value in a group of values. The
625- result is one plus the previously assigned rank values . Unlike Rank, DenseRank will not produce
626+ result is one plus the previously assigned rank value . Unlike Rank, DenseRank will not produce
626627 gaps in the ranking sequence.""" )
627628case class DenseRank (children : Seq [Expression ]) extends RankLike {
628629 def this () = this (Nil )
0 commit comments