yihua commented on code in PR #7488:
URL: https://github.com/apache/hudi/pull/7488#discussion_r1051216097


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -171,23 +183,23 @@ class ColumnStats {
         Collectors.toMap(colRangeMetadata -> colRangeMetadata.getColumnName(), 
Function.identity());
 
     return (Map<String, HoodieColumnRangeMetadata<Comparable>>) 
targetFields.stream()
-      .map(field -> {
-        ColumnStats colStats = allColumnStats.get(field.name());
-        return HoodieColumnRangeMetadata.<Comparable>create(
-            filePath,
-            field.name(),
-            colStats == null ? null : coerceToComparable(field.schema(), 
colStats.minValue),
-            colStats == null ? null : coerceToComparable(field.schema(), 
colStats.maxValue),
-            colStats == null ? 0 : colStats.nullCount,
-            colStats == null ? 0 : colStats.valueCount,
-            // NOTE: Size and compressed size statistics are set to 0 to make 
sure we're not
-            //       mixing up those provided by Parquet with the ones from 
other encodings,
-            //       since those are not directly comparable
-            0,
-            0
-        );
-      })
-      .collect(collector);
+        .map(field -> {

Review Comment:
   Not sure.  I use the same reformatting rules in IDE.  This is auto-formatted 
because I changed the file.



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