Skip to content

Commit

Permalink
[Bug][connector-hive] filter '_SUCCESS' file in file list (#2235) (#2236
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TyrantLucifer authored Jul 22, 2022
1 parent cf5327c commit db04651
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 db04651

Please sign in to comment.