1
0
mirror of synced 2025-12-23 21:03:15 -05:00

[Source-mysql/mssql] : Remove legacy bad values handling code (#37476)

This commit is contained in:
Akash Kulkarni
2024-04-22 17:10:54 -07:00
committed by GitHub
parent d4944a38e4
commit 097709a187
7 changed files with 7 additions and 5 deletions

View File

@@ -804,7 +804,7 @@ public class CdcMysqlSourceTest extends CdcSourceTest<MySqlSource, MySQLTestData
assertEquals(expectedMessageMeta, invalidDateRecord.getMeta());
ObjectMapper mapper = new ObjectMapper();
final JsonNode expectedDataWithoutCdcFields = mapper.readTree("{\"id\":120}");
final JsonNode expectedDataWithoutCdcFields = mapper.readTree("{\"id\":120, \"CAR_DATE\":null}");
removeCDCColumns((ObjectNode) invalidDateRecord.getData());
assertEquals(expectedDataWithoutCdcFields, invalidDateRecord.getData());
}