pvary commented on code in PR #13562: URL: https://github.com/apache/iceberg/pull/13562#discussion_r2225568062
########## arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java: ########## @@ -213,8 +218,10 @@ private void allocateFieldVector(boolean dictionaryEncodedVector) { allocateDictEncodedVector(); } else { Field arrowField = ArrowSchemaUtil.convert(getPhysicalType(columnDescriptor, icebergField)); - if (columnDescriptor.getPrimitiveType().getOriginalType() != null) { - allocateVectorBasedOnOriginalType(columnDescriptor.getPrimitiveType(), arrowField); + if (columnDescriptor.getPrimitiveType().getLogicalTypeAnnotation() != null + && !(columnDescriptor.getPrimitiveType().getLogicalTypeAnnotation() + instanceof LogicalTypeAnnotation.UUIDLogicalTypeAnnotation)) { Review Comment: Isn't it more natural to add this fallback to the `allocateVectorBasedOnLogicalTypeAnnotation` method? -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org