simonykq commented on issue #10710: URL: https://github.com/apache/iceberg/issues/10710#issuecomment-2457931374
I believe if you give the correct fields that are actually contained in `DataFile` and `DeleteFile`, then it should work, for example: ``` @TypeInfo(DataFile.MbBaseFileTypeInfoFactory.class) public class DataFile { ... blar blar blar public static class MbBaseFileTypeInfoFactory extends TypeInfoFactory<DataFile> { @Override public TypeInformation<MbBaseFile> createTypeInfo(Type t, Map<String, TypeInformation<?>> genericParameters) { Map<String, TypeInformation<?>> types = new HashMap<>(); types.put("fromProjectionPos", Types.PRIMITIVE_ARRAY(Types.INT)); types.put("fileOrdinal", Types.LONG); types.put("partitionSpecId", Types.INT); types.put("content", Types.ENUM(FileContent.class)); types.put("filePath", Types.STRING); types.put("format", Types.ENUM(FileFormat.class)); types.put("recordCount", Types.LONG); types.put("fileSizeInBytes", Types.LONG); types.put("dataSequenceNumber", Types.LONG); types.put("fileSequenceNumber", Types.LONG); types.put("columnSizes", Types.MAP(Types.INT, Types.LONG)); types.put("valueCounts", Types.MAP(Types.INT, Types.LONG)); types.put("nullValueCounts", Types.MAP(Types.INT, Types.LONG)); types.put("nanValueCounts", Types.MAP(Types.INT, Types.LONG)); types.put("lowerBounds", Types.MAP(Types.INT, Types.PRIMITIVE_ARRAY(Types.BYTE))); types.put("upperBounds", Types.MAP(Types.INT, Types.PRIMITIVE_ARRAY(Types.BYTE))); types.put("splitOffsets", Types.PRIMITIVE_ARRAY(Types.LONG)); types.put("equalityIds", Types.PRIMITIVE_ARRAY(Types.INT)); types.put("keyMetadata", Types.PRIMITIVE_ARRAY(Types.BYTE)); return Types.POJO(MbBaseFile.class, types); } } } ``` just to give an example -- 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