Skip to content

Commit 8977e11

Browse files
committed
Remove unnecessary old tests.
1 parent d23e79e commit 8977e11

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MathFunctionsSuite.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,6 @@ class MathFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper {
196196
testUnary(Sqrt, math.sqrt, (0 to 20).map(_ * 0.1))
197197
testUnary(Sqrt, math.sqrt, (-5 to -1).map(_ * 1.0), expectNull = true)
198198

199-
val inputSequence = Seq(4.5, 10.10, 20.55, 36.0, 57.0, 61.7, 77.0, 81.0, 98.9)
200-
val expectedResults = inputSequence.map(l => math.sqrt(l))
201-
val rowSequence = inputSequence.map(l => create_row(l))
202-
val d = 'a.double.at(0)
203-
204-
for ((row, expected) <- rowSequence zip expectedResults) {
205-
checkEvaluation(Sqrt(d), expected, row)
206-
}
207-
208199
checkEvaluation(Sqrt(Literal.create(null, DoubleType)), null, create_row(null))
209200
checkEvaluation(Sqrt(Literal(-1.0)), null, EmptyRow)
210201
checkEvaluation(Sqrt(Literal(-1.5)), null, EmptyRow)

0 commit comments

Comments
 (0)