voonhous commented on code in PR #14340:
URL: https://github.com/apache/hudi/pull/14340#discussion_r2591680710


##########
hudi-hadoop-common/src/test/java/org/apache/hudi/common/model/TestHoodieAvroIndexedRecord.java:
##########
@@ -60,24 +65,26 @@ void testIsBuiltInDelete() {
 
   @Test
   void testIsDeleteWithCustomField() {
-    Schema schema = SchemaBuilder.record("TestRecord")
-        .fields()
-        .optionalString("custom_is_deleted")
-        .requiredString("field2")
-        .endRecord();
-    GenericRecord record1 = new GenericRecordBuilder(schema)
+    HoodieSchema hoodieSchema = HoodieSchema.createRecord("TestRecord", null, 
null,
+        Arrays.asList(
+            HoodieSchemaField.of("custom_is_deleted",
+                
HoodieSchema.createUnion(HoodieSchema.create(HoodieSchemaType.NULL), 
HoodieSchema.create(HoodieSchemaType.STRING)),

Review Comment:
   Done



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