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
938
938
939
939
test(" test statistics of LogicalRelation converted from Hive serde tables" ) {
940
940
Seq (" orc" , " parquet" ).foreach { format =>
941
- Seq (" true" , " false" ).foreach { isConverted =>
941
+ Seq (true , false ).foreach { isConverted =>
942
942
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" ) {
945
945
withTable(format) {
946
946
sql(s " CREATE TABLE $format (key STRING, value STRING) STORED AS $format" )
947
947
sql(s " INSERT INTO TABLE $format SELECT * FROM src " )
948
948
949
- val hasHiveStats = ! isConverted.toBoolean
949
+ val hasHiveStats = ! isConverted
950
950
checkTableStats(format, hasSizeInBytes = hasHiveStats, expectedRowCounts = None )
951
951
952
952
sql(s " ANALYZE TABLE $format COMPUTE STATISTICS " )
You can’t perform that action at this time.
0 commit comments