Skip to content

Commit

Permalink
use println instead of logging framework
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Sep 4, 2024
1 parent cf8dce1 commit c710ba0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spark/src/test/scala/org/apache/spark/sql/CometTestBase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,13 @@ abstract class CometTestBase
}
reader.close()
if (!hasDict) {
logWarning(
"withParquetFile was called with withDictionary=true but did not write any dictionary-encoded columns")
// unit test logging goes to file (see log4j.properties under src/test/resources) but
// we want this warning to be visible when running tests from IDE and command line so
// we write directly to stdout
// scalastyle:off println
println(
"WARN: withParquetFile was called with withDictionary=true but did not write any dictionary-encoded columns")
// scalastyle:on println
}
}
f(file.getCanonicalPath)
Expand Down

0 comments on commit c710ba0

Please sign in to comment.