diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala index 0ce68efe24c5d..4f6057f873d51 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala @@ -244,8 +244,8 @@ abstract class LeafExpression extends Expression with trees.LeafNode[Expression] } /** - * Root class for rewritten single operand UDF expression. By default, we assume it produces Null if - * its operand is null. Exceptional case requires to update the optimization rule + * Root class for rewritten single operand UDF expression. By default, we assume it produces Null + * if its operand is null. Exceptional case requires to update the optimization rule * at [[optimizer.ConstantFolding ConstantFolding]] */ abstract class UnaryExpression extends Expression with trees.UnaryNode[Expression] { diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala index a4e83c8357439..66d9b0dc559d4 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala @@ -214,7 +214,7 @@ private[hive] case class HiveGenericUdf(name: String, children: Seq[Expression]) @transient protected lazy val returnInspector = function.initialize(argumentInspectors.toArray) - + @transient protected lazy val isUDFDeterministic = { val udfType = function.getClass().getAnnotation(classOf[HiveUDFType])