File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class UDFRegistration private[sql] (functionRegistry: FunctionRegistry) extends
5858 | pythonIncludes: ${udf.func.pythonIncludes}
5959 | pythonExec: ${udf.func.pythonExec}
6060 | dataType: ${udf.dataType}
61+ | udfDeterministic: ${udf.udfDeterministic}
6162 """ .stripMargin)
6263
6364 functionRegistry.createOrReplaceTempFunction(name, udf.builder)
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ case class PythonUDF(
3030 dataType : DataType ,
3131 children : Seq [Expression ],
3232 evalType : Int ,
33- udfDeterministic : Boolean = true )
33+ udfDeterministic : Boolean )
3434 extends Expression with Unevaluable with NonSQLExpression with UserDefinedExpression {
3535
36- override lazy val deterministic = udfDeterministic && children.forall(_.deterministic)
36+ override lazy val deterministic : Boolean = udfDeterministic && children.forall(_.deterministic)
3737
3838 override def toString : String = s " $name( ${children.mkString(" , " )}) "
3939
You can’t perform that action at this time.
0 commit comments