Skip to content

Commit 40da998

Browse files
committed
[SPARK-23329][SQL] Formatting finetunings
1 parent 8550a27 commit 40da998

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ case class Ceil(child: Expression) extends UnaryMathExpression(math.ceil, "CEIL"
262262
arguments = """
263263
Arguments:
264264
* expr - angle in radians
265-
""",
265+
""",
266266
examples = """
267267
Examples:
268268
> SELECT _FUNC_(0);
@@ -271,11 +271,14 @@ case class Ceil(child: Expression) extends UnaryMathExpression(math.ceil, "CEIL"
271271
case class Cos(child: Expression) extends UnaryMathExpression(math.cos, "COS")
272272

273273
@ExpressionDescription(
274-
usage = "_FUNC_(expr) - Returns the hyperbolic cosine of `expr`.",
274+
usage = """
275+
_FUNC_(expr) - Returns the hyperbolic cosine of `expr`, as if computed by
276+
`java.lang.Math._FUNC_`.
277+
""",
275278
arguments = """
276279
Arguments:
277-
* expr - hyperbolic angle.
278-
""",
280+
* expr - hyperbolic angle
281+
""",
279282
examples = """
280283
Examples:
281284
> SELECT _FUNC_(0);
@@ -530,7 +533,7 @@ case class Signum(child: Expression) extends UnaryMathExpression(math.signum, "S
530533
arguments = """
531534
Arguments:
532535
* expr - angle in radians
533-
""",
536+
""",
534537
examples = """
535538
Examples:
536539
> SELECT _FUNC_(0);
@@ -545,7 +548,7 @@ case class Sin(child: Expression) extends UnaryMathExpression(math.sin, "SIN")
545548
arguments = """
546549
Arguments:
547550
* expr - hyperbolic angle
548-
""",
551+
""",
549552
examples = """
550553
Examples:
551554
> SELECT _FUNC_(0);
@@ -564,13 +567,12 @@ case class Sqrt(child: Expression) extends UnaryMathExpression(math.sqrt, "SQRT"
564567

565568
@ExpressionDescription(
566569
usage = """
567-
_FUNC_(expr) - Returns the tangent of `expr`, as if computed by
568-
`java.lang.Math._FUNC_`.
570+
_FUNC_(expr) - Returns the tangent of `expr`, as if computed by `java.lang.Math._FUNC_`.
569571
""",
570572
arguments = """
571573
Arguments:
572574
* expr - angle in radians
573-
""",
575+
""",
574576
examples = """
575577
Examples:
576578
> SELECT _FUNC_(0);
@@ -580,13 +582,12 @@ case class Tan(child: Expression) extends UnaryMathExpression(math.tan, "TAN")
580582

581583
@ExpressionDescription(
582584
usage = """
583-
_FUNC_(expr) - Returns the cotangent of `expr`, as if computed by
584-
`1/java.lang.Math._FUNC_`.
585+
_FUNC_(expr) - Returns the cotangent of `expr`, as if computed by `1/java.lang.Math._FUNC_`.
585586
""",
586587
arguments = """
587588
Arguments:
588589
* expr - angle in radians
589-
""",
590+
""",
590591
examples = """
591592
Examples:
592593
> SELECT _FUNC_(1);
@@ -607,7 +608,7 @@ case class Cot(child: Expression)
607608
arguments = """
608609
Arguments:
609610
* expr - hyperbolic angle
610-
""",
611+
""",
611612
examples = """
612613
Examples:
613614
> SELECT _FUNC_(0);
@@ -620,7 +621,7 @@ case class Tanh(child: Expression) extends UnaryMathExpression(math.tanh, "TANH"
620621
arguments = """
621622
Arguments:
622623
* expr - angle in radians
623-
""",
624+
""",
624625
examples = """
625626
Examples:
626627
> SELECT _FUNC_(3.141592653589793);
@@ -635,7 +636,7 @@ case class ToDegrees(child: Expression) extends UnaryMathExpression(math.toDegre
635636
arguments = """
636637
Arguments:
637638
* expr - angle in degrees
638-
""",
639+
""",
639640
examples = """
640641
Examples:
641642
> SELECT _FUNC_(180);
@@ -831,7 +832,7 @@ case class Unhex(child: Expression) extends UnaryExpression with ImplicitCastInp
831832
Arguments:
832833
* exprY - coordinate on y-axis
833834
* exprX - coordinate on x-axis
834-
""",
835+
""",
835836
examples = """
836837
Examples:
837838
> SELECT _FUNC_(0, 0);

0 commit comments

Comments
 (0)