Skip to content

Commit

Permalink
improved error message
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Grove <andygrove@nvidia.com>
  • Loading branch information
andygrove committed Sep 24, 2020
1 parent fde56bd commit 3c5bcc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ object BenchUtils {
println(s"Both DataFrames contain $count1 rows")

if (!ignoreOrdering && (df1.rdd.getNumPartitions > 1 || df2.rdd.getNumPartitions > 1)) {
throw new IllegalStateException(
"Cannot ignore ordering because one or more inputs have multiple partitions")
throw new IllegalStateException("Cannot run with ignoreOrdering=false because one or " +
"more inputs have multiple partitions")
}

val result1 = collectResults(df1, ignoreOrdering, useIterator)
Expand Down

0 comments on commit 3c5bcc2

Please sign in to comment.