Skip to content

Commit

Permalink
Use foreach not map
Browse files Browse the repository at this point in the history
  • Loading branch information
maropu committed Mar 2, 2016
1 parent c3f0140 commit ac6b82c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TextSuite extends QueryTest with SharedSQLContext {
test("SPARK-13503 Support to specify the option for compression codec for TEXT") {
val testDf = sqlContext.read.text(testFile)

Seq("bzip2", "deflate", "gzip").map { codecName =>
Seq("bzip2", "deflate", "gzip").foreach { codecName =>
val tempDir = Utils.createTempDir()
val tempDirPath = tempDir.getAbsolutePath()
testDf.write.option("compression", codecName).mode(SaveMode.Overwrite).text(tempDirPath)
Expand Down

0 comments on commit ac6b82c

Please sign in to comment.