What i wanted to solve:
On workday, i want to ensure XML -> Record & Json -> Record lead to identical result if XML & Json source are similar.
Pb i faced:
For rec1 & rec2 Record instances :Objects.equals(rec1, rec2) always return false even if they have same schema and equals values.
So, my Assertions.equals(rec1, rec2) is always false.
What i proposed:
Add @EqualsAndHashCode annotation on RecordImpl and AvroRecord classes (SchemaImpl and AvroSchema already have @Data which include @EqualsAndHashCode).
rec1.equals(rec2) will return true if records have same values but are not same instance.
So, if existing pipeline already use equals want to distinct instances, it won't