manojpec commented on a change in pull request #4352:
URL: https://github.com/apache/hudi/pull/4352#discussion_r792245905
##########
File path:
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieMetadataPayload.java
##########
@@ -86,20 +125,63 @@ public HoodieMetadataPayload(Option<GenericRecord> record)
{
// https://issues.apache.org/jira/browse/AVRO-1811
key = record.get().get(SCHEMA_FIELD_ID_KEY).toString();
type = (int) record.get().get(SCHEMA_FIELD_ID_TYPE);
- if (record.get().get(SCHEMA_FIELD_ID_METADATA) != null) {
- filesystemMetadata = (Map<String, HoodieMetadataFileInfo>)
record.get().get("filesystemMetadata");
+ if (record.get().get(SCHEMA_FIELD_ID_FILESYSTEM) != null) {
+ filesystemMetadata = (Map<String, HoodieMetadataFileInfo>)
record.get().get(SCHEMA_FIELD_ID_FILESYSTEM);
filesystemMetadata.keySet().forEach(k -> {
GenericRecord v = filesystemMetadata.get(k);
filesystemMetadata.put(k.toString(), new
HoodieMetadataFileInfo((Long) v.get("size"), (Boolean) v.get("isDeleted")));
});
}
+
+ if (type == METADATA_TYPE_BLOOM_FILTER) {
Review comment:
Based on the discussion, taking this up in
https://issues.apache.org/jira/browse/HUDI-3323
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]