Skip to content

Commit f27d96b

Browse files
wangyumgatorsmile
authored andcommitted
[SPARK-25606][TEST] Reduce DateExpressionsSuite test time costs in Jenkins
## What changes were proposed in this pull request? Reduce `DateExpressionsSuite.Hour` test time costs in Jenkins by reduce iteration times. ## How was this patch tested? Manual tests on my local machine. before: ``` - Hour (34 seconds, 54 milliseconds) ``` after: ``` - Hour (2 seconds, 697 milliseconds) ``` Closes apache#22632 from wangyum/SPARK-25606. Authored-by: Yuming Wang <[email protected]> Signed-off-by: gatorsmile <[email protected]>
1 parent 85a9359 commit f27d96b

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/DateExpressionsSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
273273
for (tz <- Seq(TimeZoneGMT, TimeZonePST, TimeZoneJST)) {
274274
val timeZoneId = Option(tz.getID)
275275
c.setTimeZone(tz)
276-
(0 to 24).foreach { h =>
277-
(0 to 60 by 15).foreach { m =>
278-
(0 to 60 by 15).foreach { s =>
276+
(0 to 24 by 6).foreach { h =>
277+
(0 to 60 by 30).foreach { m =>
278+
(0 to 60 by 30).foreach { s =>
279279
c.set(2015, 18, 3, h, m, s)
280280
checkEvaluation(
281281
Hour(Literal(new Timestamp(c.getTimeInMillis)), timeZoneId),

0 commit comments

Comments
 (0)