We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e52ef commit cb7f783Copy full SHA for cb7f783
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeFunctions.scala
@@ -710,7 +710,7 @@ case class ToDate(child: Expression) extends UnaryExpression with ImplicitCastIn
710
override def eval(input: InternalRow): Any = child.eval(input)
711
712
override def genCode(ctx: CodeGenContext, ev: GeneratedExpressionCode): String = {
713
- child.genCode(ctx, ev)
+ defineCodeGen(ctx, ev, d => d)
714
}
715
716
0 commit comments