Fokko commented on code in PR #13087:
URL: https://github.com/apache/iceberg/pull/13087#discussion_r2251130609
##########
core/src/main/java/org/apache/iceberg/MetricsUtil.java:
##########
@@ -172,21 +172,29 @@ public static MetricsModes.MetricsMode metricsMode(
"Lower bound",
DataFile.LOWER_BOUNDS,
Types.NestedField::type,
- (file, field) ->
- file.lowerBounds() == null
- ? null
- : Conversions.fromByteBuffer(
- field.type(),
file.lowerBounds().get(field.fieldId()))),
+ (file, field) -> {
+ if (file.lowerBounds() == null) {
+ return null;
+ }
+ Object value =
+ Conversions.fromByteBuffer(
+ field.type(), file.lowerBounds().get(field.fieldId()));
+ return (value instanceof java.util.UUID) ? value.toString() :
value;
Review Comment:
Sorry, my brain is still on vacation, it looks good:
https://github.com/apache/iceberg/blob/76b2f875ff14f0ddeb80bfa63e819eeec3047975/api/src/main/java/org/apache/iceberg/types/Conversions.java#L170-L171
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]