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 b1b4ee7 commit c0f85bbCopy full SHA for c0f85bb
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ScalaUDF.scala
@@ -1032,8 +1032,8 @@ case class ScalaUDF(
1032
val funcArguments = converterTerms.zipWithIndex.map {
1033
case (converter, i) =>
1034
val eval = evals(i)
1035
- val dt = children(i).dataType
1036
- s"$converter.apply(${eval.isNull} ? null : (${ctx.boxedType(dt)}) ${eval.value})"
+ val boxedType = ctx.boxedType(children(i).dataType)
+ s"$converter.apply(${eval.isNull} ? ($boxedType) null : ($boxedType) ${eval.value})"
1037
}.mkString(",")
1038
val callFunc = s"${ctx.boxedType(ctx.javaType(dataType))} $resultTerm = " +
1039
s"(${ctx.boxedType(ctx.javaType(dataType))})${catalystConverterTerm}" +
0 commit comments