Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ case class ScalaUdf(function: AnyRef, dataType: DataType, children: Seq[Expressi
}.foreach(println)

*/
val f = children.size match {
case 0 =>

private[this] val f = children.size match {
case 0 =>
val func = function.asInstanceOf[() => Any]
(input: Row) => {
func()
Expand Down Expand Up @@ -956,7 +956,7 @@ case class ScalaUdf(function: AnyRef, dataType: DataType, children: Seq[Expressi
}

// scalastyle:on
val converter = CatalystTypeConverters.createToCatalystConverter(dataType)
private[this] val converter = CatalystTypeConverters.createToCatalystConverter(dataType)
override def eval(input: Row): Any = converter(f(input))

}