Skip to content

Commit b8a0f98

Browse files
committed
[SPARK-25196][SQL][FOLLOWUP] Fix wrong tests in StatisticsCollectionSuite
## What changes were proposed in this pull request? This is a follow-up of apache#24047 and it fixed wrong tests in `StatisticsCollectionSuite`. ## How was this patch tested? Pass Jenkins. Closes apache#24198 from maropu/SPARK-25196-FOLLOWUP-2. Authored-by: Takeshi Yamamuro <[email protected]> Signed-off-by: Takeshi Yamamuro <[email protected]>
1 parent 8ec6cb6 commit b8a0f98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,9 @@ class StatisticsCollectionSuite extends StatisticsCollectionTestBase with Shared
539539
withTempDatabase { database =>
540540
sql(s"CREATE VIEW $database.v AS SELECT 1 c")
541541
sql(s"CACHE TABLE $database.v")
542-
assert(getStatAttrNames(s"$database.v") !== Set("id"))
542+
assert(getStatAttrNames(s"$database.v") !== Set("c"))
543543
sql(s"ANALYZE TABLE $database.v COMPUTE STATISTICS FOR COLUMNS c")
544-
assert(getStatAttrNames(s"$database.v") !== Set("id"))
544+
assert(getStatAttrNames(s"$database.v") === Set("c"))
545545
}
546546
}
547547
}

0 commit comments

Comments
 (0)