Skip to content
Snippets Groups Projects
Commit 56ede884 authored by Wenchen Fan's avatar Wenchen Fan Committed by Michael Armbrust
Browse files

[SQL] [MINOR] [THIS] use private for internal field in ScalaUdf

Author: Wenchen Fan <cloud0fan@outlook.com>

Closes #6235 from cloud-fan/tmp and squashes the following commits:

8f16367 [Wenchen Fan] use private[this]
parent 010a1c27
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......@@ -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))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment