Skip to content

Commit 0f1b4df

Browse files
committed
[core] Remote lookup file should overwrite old orphan file
1 parent 4e69d37 commit 0f1b4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paimon-core/src/main/java/org/apache/paimon/mergetree/lookup/RemoteLookupFileManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public DataFileMeta genRemoteLookupFile(DataFileMeta file) throws IOException {
7575
String remoteSstName = lookupLevels.newRemoteSst(file, length);
7676
Path sstFile = remoteSstPath(file, remoteSstName);
7777
try (FileInputStream is = new FileInputStream(lookupFile.localFile());
78-
PositionOutputStream os = fileIO.newOutputStream(sstFile, false)) {
78+
PositionOutputStream os = fileIO.newOutputStream(sstFile, true)) {
7979
IOUtils.copy(is, os);
8080
} catch (IOException e) {
8181
throw new RuntimeException(e);

0 commit comments

Comments
 (0)