ccaominh commented on a change in pull request #9450: Skip empty files for
local, hdfs, and cloud input sources
URL: https://github.com/apache/druid/pull/9450#discussion_r387244956
##########
File path:
core/src/test/java/org/apache/druid/data/input/impl/LocalInputSourceTest.java
##########
@@ -98,11 +99,19 @@ public void
testGetFileIteratorWithBothBaseDirAndDuplicateFilesIteratingFilesOnl
File baseDir = temporaryFolder.newFolder();
List<File> filesInBaseDir = new ArrayList<>();
for (int i = 0; i < 10; i++) {
- filesInBaseDir.add(File.createTempFile("local-input-source", ".data",
baseDir));
+ final File file = File.createTempFile("local-input-source", ".data",
baseDir);
+ try (FileWriter writer = new FileWriter(file)) {
Review comment:
The forbidden apis checks is flagging this: `java.io.FileWriter [Uses
default charset]`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]