You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by li...@apache.org on 2018/10/05 01:52:30 UTC
spark git commit: [SPARK-25606][TEST] Reduce DateExpressionsSuite
test time costs in Jenkins
Repository: spark
Updated Branches:
refs/heads/master 85a93595d -> f27d96b9f
[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 #22632 from wangyum/SPARK-25606.
Authored-by: Yuming Wang <yu...@ebay.com>
Signed-off-by: gatorsmile <ga...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f27d96b9
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f27d96b9
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f27d96b9
Branch: refs/heads/master
Commit: f27d96b9f35799bf7ecc850effbfdb0bf7b237ab
Parents: 85a9359
Author: Yuming Wang <yu...@ebay.com>
Authored: Thu Oct 4 18:52:28 2018 -0700
Committer: gatorsmile <ga...@gmail.com>
Committed: Thu Oct 4 18:52:28 2018 -0700
----------------------------------------------------------------------
.../spark/sql/catalyst/expressions/DateExpressionsSuite.scala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/f27d96b9/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
index 63b24fb..c9d7337 100644
--- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
+++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
@@ -273,9 +273,9 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
for (tz <- Seq(TimeZoneGMT, TimeZonePST, TimeZoneJST)) {
val timeZoneId = Option(tz.getID)
c.setTimeZone(tz)
- (0 to 24).foreach { h =>
- (0 to 60 by 15).foreach { m =>
- (0 to 60 by 15).foreach { s =>
+ (0 to 24 by 6).foreach { h =>
+ (0 to 60 by 30).foreach { m =>
+ (0 to 60 by 30).foreach { s =>
c.set(2015, 18, 3, h, m, s)
checkEvaluation(
Hour(Literal(new Timestamp(c.getTimeInMillis)), timeZoneId),
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org