the-other-tim-brown commented on code in PR #18240:
URL: https://github.com/apache/hudi/pull/18240#discussion_r2842422962


##########
hudi-common/src/main/java/org/apache/hudi/metadata/MetadataPartitionType.java:
##########
@@ -144,8 +144,8 @@ public void constructMetadataPayload(HoodieMetadataPayload 
payload, GenericRecor
             String.format("Valid %s record expected for type: %s", 
SCHEMA_FIELD_ID_BLOOM_FILTER, 
MetadataPartitionType.BLOOM_FILTERS.getRecordType()));
       } else {
         payload.bloomFilterMetadata = new HoodieMetadataBloomFilter(
-            (String) bloomFilterRecord.get(BLOOM_FILTER_FIELD_TYPE),
-            (String) bloomFilterRecord.get(BLOOM_FILTER_FIELD_TIMESTAMP),
+            bloomFilterRecord.get(BLOOM_FILTER_FIELD_TYPE).toString(),
+            bloomFilterRecord.get(BLOOM_FILTER_FIELD_TIMESTAMP).toString(),

Review Comment:
   Both of these are required fields in the schema so there is no `null` check



-- 
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]

Reply via email to