Skip to content

Commit

Permalink
Add logs for orcSchemaUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
770120041 authored May 9, 2024
1 parent 78a31ff commit 979ee50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orc/src/main/java/org/apache/iceberg/orc/ORCSchemaUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 979ee50

Please sign in to comment.