Skip to content

Commit a54010a

Browse files
committed
fix test case.
1 parent f6b4cea commit a54010a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/UDFSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ class UDFSuite extends QueryTest with SharedSQLContext {
119119
assert(df.logicalPlan.asInstanceOf[Project].projectList.forall(!_.deterministic))
120120
assert(df.head().getDouble(0) >= 0.0)
121121

122-
val df1 = testData.select(foo())
122+
val foo1 = foo.asNondeterministic()
123+
val df1 = testData.select(foo1())
123124
assert(df1.logicalPlan.asInstanceOf[Project].projectList.forall(!_.deterministic))
124125
assert(df1.head().getDouble(0) >= 0.0)
125126

0 commit comments

Comments
 (0)