alexeykudinkin commented on a change in pull request #5181:
URL: https://github.com/apache/hudi/pull/5181#discussion_r840746216
##########
File path:
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java
##########
@@ -1186,6 +1220,74 @@ public static void aggregateColumnStats(IndexedRecord
record, List<Schema.Field>
}
}
+ /**
+ * Given a schema, coerces provided value to instance of {@link
Comparable<?>} such that
+ * it could subsequently used in column stats
+ *
+ * NOTE: This method has to stay compatible with the semantic of
+ * {@link ParquetUtils#readRangeFromParquetMetadata} as they are used
in tandem
+ */
+ private static Comparable<?> coerceToComparable(Schema schema, Object val) {
Review comment:
This method is practically useless outside of ColStats context
--
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]