xiarixiaoyao commented on a change in pull request #4013:
URL: https://github.com/apache/hudi/pull/4013#discussion_r754752336



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieColumnRangeMetadata.java
##########
@@ -30,16 +28,28 @@
   private final String columnName;
   private final T minValue;
   private final T maxValue;
-  private final long numNulls;
-  private final PrimitiveStringifier stringifier;
+  private long numNulls;
+  // For Decimal Type/Date Type, minValue/maxValue cannot represent it's 
original value.
+  // eg: when parquet collects column information, the decimal type is 
collected as int/binary type.
+  // so we cannot use minValue and maxValue directly, use 
minValueAsString/maxValueAsString instead.
+  private final String minValueAsString;

Review comment:
       yes, I agree with you。But let's put this into #4060 as an optimization. 
   We can merge the PR first and then merge the #4060 




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