pvary commented on code in PR #8808: URL: https://github.com/apache/iceberg/pull/8808#discussion_r1361742600
########## flink/v1.15/flink/src/main/java/org/apache/iceberg/flink/data/FlinkParquetReaders.java: ########## @@ -262,7 +262,11 @@ public ParquetValueReader<?> primitive( switch (primitive.getPrimitiveTypeName()) { case FIXED_LEN_BYTE_ARRAY: case BINARY: - return new ParquetValueReaders.ByteArrayReader(desc); + if (expected.typeId() == Types.StringType.get().typeId()) { + return new StringReader(desc); + } else { + return new ParquetValueReaders.ByteArrayReader(desc); + } Review Comment: I am concerned about the backward compatibility of this change. Someone might already depend on reading them as binary, and this change would break their use-case -- 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