This is an automated email from the ASF dual-hosted git repository.

vhs pushed a commit to branch phase-18-HoodieAvroUtils-removal-p2
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to 
refs/heads/phase-18-HoodieAvroUtils-removal-p2 by this push:
     new 6da754960a88 Remove unused test
6da754960a88 is described below

commit 6da754960a889d06337adc1fd285e33889c0f37d
Author: voon <[email protected]>
AuthorDate: Fri Dec 26 17:59:31 2025 +0800

    Remove unused test
---
 .../hudi/common/schema/TestHoodieSchemaUtils.java  | 28 ----------------------
 1 file changed, 28 deletions(-)

diff --git 
a/hudi-common/src/test/java/org/apache/hudi/common/schema/TestHoodieSchemaUtils.java
 
b/hudi-common/src/test/java/org/apache/hudi/common/schema/TestHoodieSchemaUtils.java
index f2a8616b964d..2580311ff700 100644
--- 
a/hudi-common/src/test/java/org/apache/hudi/common/schema/TestHoodieSchemaUtils.java
+++ 
b/hudi-common/src/test/java/org/apache/hudi/common/schema/TestHoodieSchemaUtils.java
@@ -1766,34 +1766,6 @@ public class TestHoodieSchemaUtils {
     assertEquals(HoodieSchemaType.STRING, result.getType());
   }
 
-  @Test
-  void testResolveUnionSchemaConsistencyWithOriginalAvroImpl() {
-    // Verify that HoodieSchemaUtils.resolveUnionSchema produces equivalent 
results to the original AvroSchemaUtils.resolveUnionSchema
-    String unionSchemaJson = "{"
-        + "\"type\":\"record\","
-        + "\"name\":\"TestRecord\","
-        + "\"fields\":[{"
-        + "  \"name\":\"unionField\","
-        + "  \"type\":[\"null\","
-        + "    
{\"type\":\"record\",\"name\":\"TypeA\",\"fields\":[{\"name\":\"a\",\"type\":\"int\"}]},"
-        + "    
{\"type\":\"record\",\"name\":\"TypeB\",\"fields\":[{\"name\":\"b\",\"type\":\"string\"}]}"
-        + "  ]"
-        + "}]}";
-
-    Schema avroSchema = new Schema.Parser().parse(unionSchemaJson);
-    HoodieSchema hoodieSchema = HoodieSchema.parse(unionSchemaJson);
-
-    Schema avroFieldSchema = avroSchema.getField("unionField").schema();
-    HoodieSchema hoodieFieldSchema = 
hoodieSchema.getField("unionField").get().schema();
-
-    // Resolve using both implementations
-    Schema avroResult = AvroSchemaUtils.resolveUnionSchema(avroFieldSchema, 
"TypeA");
-    HoodieSchema hoodieResult = 
HoodieSchemaUtils.resolveUnionSchema(hoodieFieldSchema, "TypeA");
-
-    // Should produce equivalent schemas
-    assertEquals(avroResult.toString(), hoodieResult.toString());
-  }
-
   @Test
   public void testToJavaDefaultValueNull() {
     // Field with no default value

Reply via email to