From 8abac338617014c77bc097f5c6b69aadafb3d410 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Mon, 16 Oct 2017 09:27:21 -0700 Subject: [PATCH] Address comments. --- .../scala/org/apache/spark/sql/hive/StatisticsSuite.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala index 50a71b3ef9fa1..b9a5ad7657134 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala @@ -946,9 +946,7 @@ class StatisticsSuite extends StatisticsCollectionTestBase with TestHiveSingleto sql(s"CREATE TABLE $format (key STRING, value STRING) STORED AS $format") sql(s"INSERT INTO TABLE $format SELECT * FROM src") - val hasHiveStats = !isConverted - checkTableStats(format, hasSizeInBytes = hasHiveStats, expectedRowCounts = None) - + checkTableStats(format, hasSizeInBytes = !isConverted, expectedRowCounts = None) sql(s"ANALYZE TABLE $format COMPUTE STATISTICS") checkTableStats(format, hasSizeInBytes = true, expectedRowCounts = Some(500)) }