@@ -366,8 +366,8 @@ abstract class OffsetWindowFunction
366366 * @param default to use when the input value is null or when the offset is larger than the window.
367367 */
368368@ ExpressionDescription (usage =
369- """ _FUNC_(input, offset, default) - LEAD returns the value of 'x' at 'offset' rows after the
370- current row in the window""" )
369+ """ _FUNC_(input, offset, default) - LEAD returns the value of 'x' at 'offset' rows
370+ after the current row in the window""" )
371371case class Lead (input : Expression , offset : Expression , default : Expression )
372372 extends OffsetWindowFunction {
373373
@@ -393,8 +393,8 @@ case class Lead(input: Expression, offset: Expression, default: Expression)
393393 * @param default to use when the input value is null or when the offset is smaller than the window.
394394 */
395395@ ExpressionDescription (usage =
396- """ _FUNC_(input, offset, default) - LAG returns the value of 'x' at 'offset' rows before the
397- current row in the window""" )
396+ """ _FUNC_(input, offset, default) - LAG returns the value of 'x' at 'offset' rows
397+ before the current row in the window""" )
398398case class Lag (input : Expression , offset : Expression , default : Expression )
399399 extends OffsetWindowFunction {
400400
@@ -446,9 +446,9 @@ object SizeBasedWindowFunction {
446446 * This documentation has been based upon similar documentation for the Hive and Presto projects.
447447 */
448448@ ExpressionDescription (usage =
449- """ _FUNC_() - The ROW_NUMBER() function assigns a unique, sequential
450- number to each row, starting with one, according to the ordering of rows within the window
451- partition.""" )
449+ """ _FUNC_() - The ROW_NUMBER() function assigns a unique, sequential number to
450+ each row, starting with one, according to the ordering of rows within
451+ the window partition.""" )
452452case class RowNumber () extends RowNumberLike {
453453 override val evaluateExpression = rowNumber
454454}
@@ -462,8 +462,8 @@ case class RowNumber() extends RowNumberLike {
462462 * This documentation has been based upon similar documentation for the Hive and Presto projects.
463463 */
464464@ ExpressionDescription (usage =
465- """ _FUNC_() - The CUME_DIST() function computes the position of a value relative to a all values
466- in the partition.""" )
465+ """ _FUNC_() - The CUME_DIST() function computes the position of a value relative to
466+ a all values in the partition.""" )
467467case class CumeDist () extends RowNumberLike with SizeBasedWindowFunction {
468468 override def dataType : DataType = DoubleType
469469 // The frame for CUME_DIST is Range based instead of Row based, because CUME_DIST must
@@ -494,8 +494,8 @@ case class CumeDist() extends RowNumberLike with SizeBasedWindowFunction {
494494 * @param buckets number of buckets to divide the rows in. Default value is 1.
495495 */
496496@ ExpressionDescription (usage =
497- """ _FUNC_(x) - The NTILE(n) function divides the rows for each window partition into 'n' buckets
498- ranging from 1 to at most 'n'.""" )
497+ """ _FUNC_(x) - The NTILE(n) function divides the rows for each window partition
498+ into 'n' buckets ranging from 1 to at most 'n'.""" )
499499case class NTile (buckets : Expression ) extends RowNumberLike with SizeBasedWindowFunction {
500500 def this () = this (Literal (1 ))
501501
@@ -602,9 +602,9 @@ abstract class RankLike extends AggregateWindowFunction {
602602 * Analyser.
603603 */
604604@ 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.""" )
605+ """ _FUNC_() - RANK() computes the rank of a value in a group of values. The result
606+ is one plus the number of rows preceding or equal to the current row in the
607+ ordering of the partition. Tie values will produce gaps in the sequence.""" )
608608case class Rank (children : Seq [Expression ]) extends RankLike {
609609 def this () = this (Nil )
610610 override def withOrder (order : Seq [Expression ]): Rank = Rank (order)
@@ -622,9 +622,9 @@ case class Rank(children: Seq[Expression]) extends RankLike {
622622 * Analyser.
623623 */
624624@ ExpressionDescription (usage =
625- """ _FUNC_() - The DENSE_RANK() function computes the rank of a value in a group of values. The
626- result is one plus the previously assigned rank value. Unlike Rank, DenseRank will not produce
627- gaps in the ranking sequence.""" )
625+ """ _FUNC_() - The DENSE_RANK() function computes the rank of a value in a group of
626+ values. The result is one plus the previously assigned rank value. Unlike Rank,
627+ DenseRank will not produce gaps in the ranking sequence.""" )
628628case class DenseRank (children : Seq [Expression ]) extends RankLike {
629629 def this () = this (Nil )
630630 override def withOrder (order : Seq [Expression ]): DenseRank = DenseRank (order)
@@ -649,8 +649,8 @@ case class DenseRank(children: Seq[Expression]) extends RankLike {
649649 * Analyser.
650650 */
651651@ ExpressionDescription (usage =
652- """ _FUNC_() - PERCENT_RANK() The PercentRank function computes the percentage ranking of a value
653- in a group of values.""" )
652+ """ _FUNC_() - PERCENT_RANK() The PercentRank function computes the percentage
653+ ranking of a value in a group of values.""" )
654654case class PercentRank (children : Seq [Expression ]) extends RankLike with SizeBasedWindowFunction {
655655 def this () = this (Nil )
656656 override def withOrder (order : Seq [Expression ]): PercentRank = PercentRank (order)
0 commit comments