diff options
author | Burak Yavuz <brkyvz@gmail.com> | 2015-06-29 18:48:28 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2015-06-29 18:48:28 -0700 |
commit | ecacb1e88a135c802e253793e7c863d6ca8d2408 (patch) | |
tree | 9c63b020fda721fcf2a0500f985453d9490eed7c /sql/core/src | |
parent | 620605a4a1123afaab2674e38251f1231dea17ce (diff) | |
download | spark-ecacb1e88a135c802e253793e7c863d6ca8d2408.tar.gz spark-ecacb1e88a135c802e253793e7c863d6ca8d2408.tar.bz2 spark-ecacb1e88a135c802e253793e7c863d6ca8d2408.zip |
[SPARK-8715] ArrayOutOfBoundsException fixed for DataFrameStatSuite.crosstab
cc yhuai
Author: Burak Yavuz <brkyvz@gmail.com>
Closes #7100 from brkyvz/ct-flakiness-fix and squashes the following commits:
abc299a [Burak Yavuz] change 'to' to until
7e96d7c [Burak Yavuz] ArrayOutOfBoundsException fixed for DataFrameStatSuite.crosstab
Diffstat (limited to 'sql/core/src')
-rw-r--r-- | sql/core/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala index 64ec1a70c4..765094da6b 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala @@ -78,7 +78,7 @@ class DataFrameStatSuite extends SparkFunSuite { val rows = crosstab.collect() rows.foreach { row => val i = row.getString(0).toInt - for (col <- 1 to 9) { + for (col <- 1 until columnNames.length) { val j = columnNames(col).toInt assert(row.getLong(col) === expected.getOrElse((i, j), 0).toLong) } |