JingsongLi commented on code in PR #4604:
URL: https://github.com/apache/paimon/pull/4604#discussion_r1861586025


##########
paimon-core/src/main/java/org/apache/paimon/io/StatsCollectingSingleFileWriter.java:
##########
@@ -43,7 +43,7 @@
 public abstract class StatsCollectingSingleFileWriter<T, R> extends 
SingleFileWriter<T, R> {
 
     @Nullable private final SimpleStatsExtractor simpleStatsExtractor;
-    @Nullable private SimpleStatsCollector simpleStatsCollector = null;

Review Comment:
   Can you keep it nullable, and just create a field `isStatsDisabled` from 
   ```
   Arrays.stream(statsCollectors)
                           .allMatch(p -> p instanceof 
NoneSimpleColStatsCollector)
   ```



-- 
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