Skip to content

Commit

Permalink
Only maps FIXED_LEN_BYTE_ARRAY to String for uuid type
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaxin Gao committed Mar 29, 2024
1 parent aa6ddc5 commit 243c736
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/src/main/java/org/apache/comet/parquet/TypeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& descriptor.getPrimitiveType().getLogicalTypeAnnotation()
instanceof LogicalTypeAnnotation.UUIDLogicalTypeAnnotation) {
return;
}
break;
Expand Down

0 comments on commit 243c736

Please sign in to comment.