diff --git a/common/src/main/java/org/apache/comet/parquet/TypeUtil.java b/common/src/main/java/org/apache/comet/parquet/TypeUtil.java index 340bf9823..b8b7ff525 100644 --- a/common/src/main/java/org/apache/comet/parquet/TypeUtil.java +++ b/common/src/main/java/org/apache/comet/parquet/TypeUtil.java @@ -196,7 +196,9 @@ && isUnsignedIntTypeMatched(logicalTypeAnnotation, 64)) { || canReadAsBinaryDecimal(descriptor, sparkType) || sparkType == DataTypes.BinaryType // for uuid, since iceberg maps uuid to StringType - || sparkType == DataTypes.StringType) { + || sparkType == DataTypes.StringType + && logicalTypeAnnotation + instanceof LogicalTypeAnnotation.UUIDLogicalTypeAnnotation) { return; } break;