Skip to content

Commit 3d5c61e

Browse files
committed
[SPARK-22499][FOLLOWUP][SQL] Reduce input string expressions for Least and Greatest to reduce time in its test
## What changes were proposed in this pull request? It's minor and trivial but looks 2000 input is good enough to reproduce and test in SPARK-22499. ## How was this patch tested? Manually brought the change and tested. Locally tested: Before: 3m 21s 288ms After: 1m 29s 134ms Given the latest successful build took: ``` ArithmeticExpressionSuite: - SPARK-22499: Least and greatest should not generate codes beyond 64KB (7 minutes, 49 seconds) ``` I expect it's going to save 4ish mins. Author: hyukjinkwon <[email protected]> Closes apache#21855 from HyukjinKwon/minor-fix-suite.
1 parent 13a67b0 commit 3d5c61e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class ArithmeticExpressionSuite extends SparkFunSuite with ExpressionEvalHelper
349349
}
350350

351351
test("SPARK-22499: Least and greatest should not generate codes beyond 64KB") {
352-
val N = 3000
352+
val N = 2000
353353
val strings = (1 to N).map(x => "s" * x)
354354
val inputsExpr = strings.map(Literal.create(_, StringType))
355355

0 commit comments

Comments
 (0)