Skip to content

Commit 31e52ef

Browse files
author
Davies Liu
committed
fix style
1 parent ed1edc7 commit 31e52ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,8 @@ case class TruncDate(date: Expression, format: Expression)
726726
override def dataType: DataType = DateType
727727
override def prettyName: String = "trunc"
728728

729-
private lazy val truncLevel = DateTimeUtils.parseTruncLevel(format.eval().asInstanceOf[UTF8String])
729+
private lazy val truncLevel: Int =
730+
DateTimeUtils.parseTruncLevel(format.eval().asInstanceOf[UTF8String])
730731

731732
override def eval(input: InternalRow): Any = {
732733
val level = if (format.foldable) {

0 commit comments

Comments
 (0)