Skip to content
Snippets Groups Projects
Commit 28d41d62 authored by viirya's avatar viirya Committed by Michael Armbrust
Browse files

[SPARK-3252][SQL] Add missing condition for test

According to the text message, both relations should be tested. So add the missing condition.

Author: viirya <viirya@gmail.com>

Closes #2159 from viirya/fix_test and squashes the following commits:

b1c0f52 [viirya] add missing condition.
parent 63a053ab
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,8 @@ class StatisticsSuite extends QueryTest with BeforeAndAfterAll {
val sizes = rdd.queryExecution.analyzed.collect {
case r if ct.runtimeClass.isAssignableFrom(r.getClass) => r.statistics.sizeInBytes
}
assert(sizes.size === 2 && sizes(0) <= autoBroadcastJoinThreshold,
assert(sizes.size === 2 && sizes(0) <= autoBroadcastJoinThreshold
&& sizes(1) <= autoBroadcastJoinThreshold,
s"query should contain two relations, each of which has size smaller than autoConvertSize")
// Using `sparkPlan` because for relevant patterns in HashJoin to be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment