YannByron commented on code in PR #7175:
URL: https://github.com/apache/hudi/pull/7175#discussion_r1019770729
##########
hudi-common/src/test/java/org/apache/hudi/avro/TestHoodieAvroUtils.java:
##########
@@ -253,7 +254,13 @@ public void testRemoveFields() {
assertEquals("key1", rec1.get("_row_key"));
assertEquals("val1", rec1.get("non_pii_col"));
assertEquals(3.5, rec1.get("timestamp"));
- assertNull(rec1.get("pii_col"));
+ Object removed;
Review Comment:
maybe test by the different avro version, like:
```
if (HoodieAvroUtils.gteqAvro1_10()) {
// assert to throw AvroRuntimeException.
// some codes...
} else {
assertNull(rec1.get("pii_col"));
}
```
--
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]