You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/07/19 07:50:41 UTC

spark git commit: Fixed test cases.

Repository: spark
Updated Branches:
  refs/heads/master 83b682bee -> 04c1b49f5


Fixed test cases.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/04c1b49f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/04c1b49f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/04c1b49f

Branch: refs/heads/master
Commit: 04c1b49f5eee915ad1159a32bf12836a3b9f2620
Parents: 83b682b
Author: Reynold Xin <rx...@databricks.com>
Authored: Sat Jul 18 22:50:34 2015 -0700
Committer: Reynold Xin <rx...@databricks.com>
Committed: Sat Jul 18 22:50:34 2015 -0700

----------------------------------------------------------------------
 .../spark/sql/catalyst/expressions/DateFunctionsSuite.scala      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/04c1b49f/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateFunctionsSuite.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateFunctionsSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateFunctionsSuite.scala
index 49d0b0a..f469f42 100644
--- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateFunctionsSuite.scala
+++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateFunctionsSuite.scala
@@ -50,7 +50,7 @@ class DateFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper {
         (0 to 5).foreach { i =>
           val c = Calendar.getInstance()
           c.set(y, m, 28, 0, 0, 0)
-          c.add(Calendar.DATE, 1)
+          c.add(Calendar.DATE, i)
           checkEvaluation(DayInYear(Cast(Literal(new Date(c.getTimeInMillis)), DateType)),
             sdfDay.format(c.getTime).toInt)
         }
@@ -62,7 +62,7 @@ class DateFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper {
         (0 to 5).foreach { i =>
           val c = Calendar.getInstance()
           c.set(y, m, 28, 0, 0, 0)
-          c.add(Calendar.DATE, 1)
+          c.add(Calendar.DATE, i)
           checkEvaluation(DayInYear(Cast(Literal(new Date(c.getTimeInMillis)), DateType)),
             sdfDay.format(c.getTime).toInt)
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org