This is an automated email from the ASF dual-hosted git repository. yamamuro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new b8a0f98 [SPARK-25196][SQL][FOLLOWUP] Fix wrong tests in StatisticsCollectionSuite b8a0f98 is described below commit b8a0f981f2f69cb7ea56626b6ed3143276beb824 Author: Takeshi Yamamuro <yamam...@apache.org> AuthorDate: Mon Mar 25 21:02:01 2019 +0900 [SPARK-25196][SQL][FOLLOWUP] Fix wrong tests in StatisticsCollectionSuite ## What changes were proposed in this pull request? This is a follow-up of #24047 and it fixed wrong tests in `StatisticsCollectionSuite`. ## How was this patch tested? Pass Jenkins. Closes #24198 from maropu/SPARK-25196-FOLLOWUP-2. Authored-by: Takeshi Yamamuro <yamam...@apache.org> Signed-off-by: Takeshi Yamamuro <yamam...@apache.org> --- .../test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala index b76678f..d071efb 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/StatisticsCollectionSuite.scala @@ -539,9 +539,9 @@ class StatisticsCollectionSuite extends StatisticsCollectionTestBase with Shared withTempDatabase { database => sql(s"CREATE VIEW $database.v AS SELECT 1 c") sql(s"CACHE TABLE $database.v") - assert(getStatAttrNames(s"$database.v") !== Set("id")) + assert(getStatAttrNames(s"$database.v") !== Set("c")) sql(s"ANALYZE TABLE $database.v COMPUTE STATISTICS FOR COLUMNS c") - assert(getStatAttrNames(s"$database.v") !== Set("id")) + assert(getStatAttrNames(s"$database.v") === Set("c")) } } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org