voonhous commented on code in PR #14311:
URL: https://github.com/apache/hudi/pull/14311#discussion_r2568471726


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -1882,21 +1885,29 @@ public static Option<Schema> 
tryResolveSchemaForTable(HoodieTableMetaClient data
   }
 
   /**
-   * Given a schema, coerces provided value to instance of {@link 
Comparable<?>} such that
-   * it could subsequently be used in column stats
+   * Given a HoodieSchema, coerces provided value to instance of {@link 
Comparable<?>} such that
+   * it could subsequently be used in column stats. This method uses 
HoodieSchema for in-memory
+   * processing while maintaining compatibility with existing Avro-based 
serialization.
    *
    * NOTE: This method has to stay compatible with the semantic of
    *      {@link FileFormatUtils#readColumnStatsFromMetadata} as they are used 
in tandem
+   *
+   * @param hoodieSchema the HoodieSchema to use for type coercion
+   * @param val the value to coerce
+   * @return the coerced value as a Comparable
+   * @since 1.2.0
    */
-  public static Comparable<?> coerceToComparable(Schema schema, Object val) {
+  public static Comparable<?> coerceToComparable(HoodieSchema hoodieSchema, 
Object val) {

Review Comment:
   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