Skip to content

Commit 8aebcd3

Browse files
committed
fix
1 parent aafbfbb commit 8aebcd3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcSourceSuite.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,8 @@ abstract class OrcSuite extends QueryTest with TestHiveSingleton with BeforeAndA
215215
// Test all the valid options of spark.sql.orc.compression.codec
216216
Seq("NONE", "UNCOMPRESSED", "SNAPPY", "ZLIB", "LZO").foreach { c =>
217217
withSQLConf(SQLConf.ORC_COMPRESSION.key -> c) {
218-
if (c == "UNCOMPRESSED") {
219-
assert(new OrcOptions(Map.empty[String, String], conf).compressionCodec == "NONE")
220-
} else {
221-
assert(new OrcOptions(Map.empty[String, String], conf).compressionCodec == c)
222-
}
218+
val expected = if (c == "UNCOMPRESSED") "NONE" else c
219+
assert(new OrcOptions(Map.empty[String, String], conf).compressionCodec == expected)
223220
}
224221
}
225222
}

0 commit comments

Comments
 (0)