Github user jinossy commented on a diff in the pull request:
https://github.com/apache/tajo/pull/884#discussion_r47465056
--- Diff: tajo-core/src/main/java/org/apache/tajo/worker/TaskImpl.java ---
@@ -540,24 +555,21 @@ public boolean equals(Object obj) {
return false;
}
- private FileFragment[] localizeFetchedData(File file, String name,
TableMeta meta)
+ private FileFragment[] localizeFetchedData(String name)
throws IOException {
Configuration c = new Configuration(systemConf);
c.set(CommonConfigurationKeysPublic.FS_DEFAULT_NAME_KEY, "file:///");
FileSystem fs = FileSystem.get(c);
- Path tablePath = new Path(file.getAbsolutePath());
List<FileFragment> listTablets = new ArrayList<>();
FileFragment tablet;
- FileStatus[] fileLists = fs.listStatus(tablePath);
- for (FileStatus f : fileLists) {
- if (f.getLen() == 0) {
--- End diff --
@jihoonson
zero length chunk should be removed
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---