Skip to content

Commit 934da69

Browse files
committed
Address comments.
1 parent 2a0a3f1 commit 934da69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/StatisticsSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -938,15 +938,15 @@ class StatisticsSuite extends StatisticsCollectionTestBase with TestHiveSingleto
938938

939939
test("test statistics of LogicalRelation converted from Hive serde tables") {
940940
Seq("orc", "parquet").foreach { format =>
941-
Seq("true", "false").foreach { isConverted =>
941+
Seq(true, false).foreach { isConverted =>
942942
withSQLConf(
943-
HiveUtils.CONVERT_METASTORE_ORC.key -> isConverted,
944-
HiveUtils.CONVERT_METASTORE_PARQUET.key -> isConverted) {
943+
HiveUtils.CONVERT_METASTORE_ORC.key -> s"$isConverted",
944+
HiveUtils.CONVERT_METASTORE_PARQUET.key -> s"$isConverted") {
945945
withTable(format) {
946946
sql(s"CREATE TABLE $format (key STRING, value STRING) STORED AS $format")
947947
sql(s"INSERT INTO TABLE $format SELECT * FROM src")
948948

949-
val hasHiveStats = !isConverted.toBoolean
949+
val hasHiveStats = !isConverted
950950
checkTableStats(format, hasSizeInBytes = hasHiveStats, expectedRowCounts = None)
951951

952952
sql(s"ANALYZE TABLE $format COMPUTE STATISTICS")

0 commit comments

Comments
 (0)