Skip to content

Commit ac6b82c

Browse files
committed
Use foreach not map
1 parent c3f0140 commit ac6b82c

File tree

1 file changed

+1
-1
lines changed
  • sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/text

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/text/TextSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class TextSuite extends QueryTest with SharedSQLContext {
6060
test("SPARK-13503 Support to specify the option for compression codec for TEXT") {
6161
val testDf = sqlContext.read.text(testFile)
6262

63-
Seq("bzip2", "deflate", "gzip").map { codecName =>
63+
Seq("bzip2", "deflate", "gzip").foreach { codecName =>
6464
val tempDir = Utils.createTempDir()
6565
val tempDirPath = tempDir.getAbsolutePath()
6666
testDf.write.option("compression", codecName).mode(SaveMode.Overwrite).text(tempDirPath)

0 commit comments

Comments
 (0)