diff --git a/orc/src/main/java/org/apache/iceberg/orc/ORCSchemaUtil.java b/orc/src/main/java/org/apache/iceberg/orc/ORCSchemaUtil.java index ccafc8853..d3caf07a5 100644 --- a/orc/src/main/java/org/apache/iceberg/orc/ORCSchemaUtil.java +++ b/orc/src/main/java/org/apache/iceberg/orc/ORCSchemaUtil.java @@ -291,8 +291,8 @@ private static TypeDescription buildOrcProjection(Integer fieldId, Type type, bo orcType = promotedType.get(); } else { Preconditions.checkArgument(isSameType(originalType, type), - "Can not promote %s type to %s", - originalType.getCategory(), type.typeId().name()); + "Can not promote %s type to %s for field %s", + originalType.getCategory(), type.typeId().name(), orcType.name()); orcType = originalType.clone(); } }