Skip to content

Commit cb7f783

Browse files
author
Davies Liu
committed
genCode() is protected
1 parent 31e52ef commit cb7f783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ case class ToDate(child: Expression) extends UnaryExpression with ImplicitCastIn
710710
override def eval(input: InternalRow): Any = child.eval(input)
711711

712712
override def genCode(ctx: CodeGenContext, ev: GeneratedExpressionCode): String = {
713-
child.genCode(ctx, ev)
713+
defineCodeGen(ctx, ev, d => d)
714714
}
715715
}
716716

0 commit comments

Comments
 (0)