Repository: spark
Updated Branches:
  refs/heads/master 540e91280 -> a6bca3ad0


[SPARK-17266][TEST] Add empty strings to the regressionTests of 
PrefixComparatorsSuite

## What changes were proposed in this pull request?
This PR adds a regression test to PrefixComparatorsSuite's "String prefix 
comparator" because this test failed on jenkins once 
(https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.4/1620/testReport/junit/org.apache.spark.util.collection.unsafe.sort/PrefixComparatorsSuite/String_prefix_comparator/).

I could not reproduce it locally. But, let's this test case in the 
regressionTests.

Author: Yin Huai <yh...@databricks.com>

Closes #14837 from yhuai/SPARK-17266.


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

Branch: refs/heads/master
Commit: a6bca3ad02bd896e7637dec37ed8ba1a7306b58c
Parents: 540e912
Author: Yin Huai <yh...@databricks.com>
Authored: Fri Aug 26 19:38:52 2016 -0700
Committer: Yin Huai <yh...@databricks.com>
Committed: Fri Aug 26 19:38:52 2016 -0700

----------------------------------------------------------------------
 .../util/collection/unsafe/sort/PrefixComparatorsSuite.scala      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/a6bca3ad/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
----------------------------------------------------------------------
diff --git 
a/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
 
b/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
index b408323..5180c58 100644
--- 
a/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
+++ 
b/core/src/test/scala/org/apache/spark/util/collection/unsafe/sort/PrefixComparatorsSuite.scala
@@ -50,7 +50,8 @@ class PrefixComparatorsSuite extends SparkFunSuite with 
PropertyChecks {
       ("s1", "s2"),
       ("abc", "世界"),
       ("你好", "世界"),
-      ("你好123", "你好122")
+      ("你好123", "你好122"),
+      ("", "")
     )
     // scalastyle:on
 


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

Reply via email to