File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 " )
You can’t perform that action at this time.
0 commit comments