openinx commented on code in PR #117:
URL: https://github.com/apache/flink-table-store/pull/117#discussion_r875460374


##########
flink-table-store-core/src/main/java/org/apache/flink/table/store/file/data/DataFileWriter.java:
##########
@@ -237,7 +210,14 @@ public RollingKvWriter(Supplier<KvFileWriter> 
writerFactory, long targetFileSize
     private Supplier<KvFileWriter> createWriterFactory(int level) {
         return () -> {
             try {
-                return new KvFileWriter(new KvBulkWriterFactory(), 
pathFactory.newPath(), level);
+                FileWriter.Factory<KeyValue, Metric> factory =

Review Comment:
   I decided to revert this change ( I mean putting the factory initialization 
into the constructor) , because it break the unit test ( I think the cause is 
the reuse of `KeyValueSerializer`).
   
   After applying this changes : 
https://github.com/apache/flink-table-store/pull/117/commits/0dd583045be08cc19990c4c98370bab1aad3ddde,
   the [unit test 
](https://github.com/apache/flink-table-store/pull/117#issuecomment-1129526584) 
 works fine. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to