Skip to content

Commit d23e79e

Browse files
committed
Explicitly indicate sqrt value sequence.
1 parent 699f48b commit d23e79e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ 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 = (1 to (1<<10) by 50).map(_ * (1<<5))
200-
val expectedResults = inputSequence.map(l => math.sqrt(l.toDouble))
201-
val rowSequence = inputSequence.map(l => create_row(l.toDouble))
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))
202202
val d = 'a.double.at(0)
203203

204204
for ((row, expected) <- rowSequence zip expectedResults) {

0 commit comments

Comments
 (0)