swuferhong commented on code in PR #20007:
URL: https://github.com/apache/flink/pull/20007#discussion_r905835960


##########
flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvFileFormatFactory.java:
##########
@@ -136,6 +147,45 @@ public BulkFormat<RowData, FileSourceSplit> 
createRuntimeDecoder(
         public ChangelogMode getChangelogMode() {
             return ChangelogMode.insertOnly();
         }
+
+        @Override
+        public TableStats reportStatistics(List<Path> files, DataType 
producedDataType) {
+            final int totalSampleLineCnt = 100;
+            try {
+                long totalSize = 0;
+                int sampledLineCnt = 0;
+                long sampledTotalSize = 0;

Review Comment:
   > totalSize -> totalFileSize sampledLineCnt -> sampledRowCnt 
sampledTotalSize -> sampledRowSize
   
   done!



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