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)) }