Skip to content

Commit 5620472

Browse files
committed
Change indentation for extends to 2 spaces
1 parent d4375b5 commit 5620472

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ abstract class ExtractIntervalPart(
3030
val dataType: DataType,
3131
func: CalendarInterval => Any,
3232
funcName: String)
33-
extends UnaryExpression
34-
with ExpectsInputTypes
35-
with Serializable {
33+
extends UnaryExpression with ExpectsInputTypes with Serializable {
34+
3635
override def inputTypes: Seq[AbstractDataType] = Seq(CalendarIntervalType)
36+
3737
override protected def nullSafeEval(interval: Any): Any = {
3838
func(interval.asInstanceOf[CalendarInterval])
3939
}
40+
4041
override protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = {
4142
val iu = IntervalUtils.getClass.getName.stripSuffix("$")
4243
defineCodeGen(ctx, ev, c => s"$iu.$funcName($c)")

0 commit comments

Comments
 (0)