From cd7380a9320510ef56700d0002f5c23a021b59eb Mon Sep 17 00:00:00 2001 From: lbw Date: Wed, 17 Jan 2024 08:18:33 +0000 Subject: [PATCH] bug fix error oss file set Signed-off-by: lbw --- .../com/pig4cloud/pig/common/file/local/LocalFileTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java b/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java index 295186df..6f44591c 100644 --- a/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java +++ b/pig-common/pig-common-oss/src/main/java/com/pig4cloud/pig/common/file/local/LocalFileTemplate.java @@ -132,7 +132,7 @@ public class LocalFileTemplate implements FileTemplate { return Arrays.stream(FileUtil.ls(dir)).filter(file -> file.getName().startsWith(prefix)).map(file -> { S3ObjectSummary summary = new S3ObjectSummary(); summary.setKey(file.getName()); - return new S3ObjectSummary(); + return summary; }).collect(Collectors.toList()); }