diff --git a/paimon-core/src/main/java/org/apache/paimon/io/DataFilePathFactory.java b/paimon-core/src/main/java/org/apache/paimon/io/DataFilePathFactory.java index 4b6082f31bf84..1bf5fc55b6496 100644 --- a/paimon-core/src/main/java/org/apache/paimon/io/DataFilePathFactory.java +++ b/paimon-core/src/main/java/org/apache/paimon/io/DataFilePathFactory.java @@ -60,13 +60,9 @@ public Path newChangelogPath() { return newPath(CHANGELOG_FILE_PREFIX); } - private Path newPath(String prefix, String subffix) { - String name = prefix + uuid + "-" + pathCount.getAndIncrement() + "." + subffix; - return new Path(parent, name); - } - private Path newPath(String prefix) { - return newPath(prefix, formatIdentifier); + String name = prefix + uuid + "-" + pathCount.getAndIncrement() + "." + formatIdentifier; + return new Path(parent, name); } public Path toPath(String fileName) {