Skip to content

Commit

Permalink
#545 Remove redundant println() statements in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yruslan committed Feb 6, 2025
1 parent 3d3ec3e commit 4144c89
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,4 @@ object MetastorePersistenceDelta {
df.drop(generatedColumn)
.withColumn(generatedColumn, expr(expression).cast(dataType).as(generatedColumn, metadata))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ trait TempDirFixture {
*/
def createTextFile(path: String, fileName: String, contents: String): Unit = {
val out = new PrintWriter(Paths.get(path, fileName).toAbsolutePath.toString)
out.println(contents)
out.close()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class MetastorePartitionSchemeSuite extends AnyWordSpec
assert(df.filter(col("info_month") === date_format(col("info_date"), "yyyy-MM")).count() == 6)

val files = LocalFsUtils.getListOfFiles(Paths.get(tempDir), "*", includeDirs = true)
files.foreach(println)
assert(files.exists(_.toString.endsWith("info_month=2021-02")))
assert(files.exists(_.toString.endsWith("info_month=2022-03")))
}
Expand Down

0 comments on commit 4144c89

Please sign in to comment.