Skip to content

Commit

Permalink
[Bug][connector-hive] filter '_SUCCESS' file in file list (apache#2235)…
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrantLucifer committed Sep 18, 2022
1 parent 32c6c58 commit c1f0db7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public List<String> getFileNamesByPath(HadoopConf hadoopConf, String path) throw
continue;
}
if (fileStatus.isFile()) {

fileNames.add(fileStatus.getPath().toString());
// filter '_SUCCESS' file
if (!fileStatus.getPath().getName().equals("_SUCCESS")) {
fileNames.add(fileStatus.getPath().toString());
}
}
}
return fileNames;
Expand Down

0 comments on commit c1f0db7

Please sign in to comment.