Skip to content

Commit 1f153ca

Browse files
committed
fix
1 parent 64b2a3c commit 1f153ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/source/TestChangelogDataReadWrite.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
import java.util.Comparator;
5959
import java.util.HashMap;
6060
import java.util.List;
61-
import java.util.Map;
6261
import java.util.UUID;
6362

6463
import static java.util.Collections.singletonList;
@@ -172,8 +171,6 @@ public RecordWriter<KeyValue> createMergeTreeWriter(BinaryRow partition, int buc
172171
CoreOptions options =
173172
new CoreOptions(Collections.singletonMap(CoreOptions.FILE_FORMAT.key(), "avro"));
174173

175-
Map<String, FileStorePathFactory> pathFactoryMap = new HashMap<>();
176-
pathFactoryMap.put("avro", pathFactory);
177174
SchemaManager schemaManager = new SchemaManager(LocalFileIO.create(), tablePath);
178175
RecordWriter<KeyValue> writer =
179176
new KeyValueFileStoreWrite(
@@ -189,7 +186,7 @@ public RecordWriter<KeyValue> createMergeTreeWriter(BinaryRow partition, int buc
189186
() -> EQUALISER,
190187
DeduplicateMergeFunction.factory(),
191188
pathFactory,
192-
pathFactoryMap,
189+
format -> pathFactory,
193190
snapshotManager,
194191
null, // not used, we only create an empty writer
195192
null,

0 commit comments

Comments
 (0)