nsivabalan commented on code in PR #12511:
URL: https://github.com/apache/hudi/pull/12511#discussion_r1902035939


##########
hudi-common/src/main/java/org/apache/hudi/avro/HoodieAvroUtils.java:
##########
@@ -1487,4 +1488,20 @@ public static Comparable<?> 
unwrapAvroValueWrapper(Object avroValueWrapper) {
       throw new UnsupportedOperationException(String.format("Unsupported type 
of the value (%s)", avroValueWrapper.getClass()));
     }
   }
+
+  public static Comparable<?> unwrapAvroValueWrapper(Object avroValueWrapper, 
String wrapperClassName) {
+    if (avroValueWrapper == null) {
+      return null;
+    } else if (DateWrapper.class.getSimpleName().equals(wrapperClassName)) {
+      return LocalDate.ofEpochDay((Integer)((Record) avroValueWrapper).get(0));

Review Comment:
   there is only one value in the stats object wrapped within the wrapper 
class. So, unless we upgrade the schema of how we store data w/ col stats, this 
is not going to change. 



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