Skip to content

Commit

Permalink
Change indentation for extends to 2 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Oct 18, 2019
1 parent d4375b5 commit 5620472
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ abstract class ExtractIntervalPart(
val dataType: DataType,
func: CalendarInterval => Any,
funcName: String)
extends UnaryExpression
with ExpectsInputTypes
with Serializable {
extends UnaryExpression with ExpectsInputTypes with Serializable {

override def inputTypes: Seq[AbstractDataType] = Seq(CalendarIntervalType)

override protected def nullSafeEval(interval: Any): Any = {
func(interval.asInstanceOf[CalendarInterval])
}

override protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = {
val iu = IntervalUtils.getClass.getName.stripSuffix("$")
defineCodeGen(ctx, ev, c => s"$iu.$funcName($c)")
Expand Down

0 comments on commit 5620472

Please sign in to comment.