JNSimba opened a new pull request, #64277: URL: https://github.com/apache/doris/pull/64277
## What Adds unit tests for the self-written logic in `fs_brokers/cdc_client` (no database / no Spring required, runs under plain `mvn test`): - **Deserialization** (`DebeziumJsonDeserializer`): value conversion for dates (incl. ancient / zero / pre-epoch — guards against calendar drift), time, timestamp, zoned timestamp, decimal (precise/string/double), bits, geometry (point → GeoJSON), arrays and binary; plus the full `deserialize()` path — create/update/delete, `__DORIS_DELETE_SIGN__`, column exclusion, non-data-change short-circuit. - **Postgres schema-change detection** (`PostgresDebeziumJsonDeserializer`): WAL-based ADD/DROP column branches — passthrough when no stored schema / no change, pure ADD, pure DROP, simultaneous ADD+DROP (rename) skip, and the missing-refresher guard. - **Sink helpers**: `BatchRecordBuffer` (delimiter / counting / clear), `HttpPutBuilder` (headers, auth, txn, build precondition), `LoadStatistic` (accumulation). - **Factory / result**: `SourceReaderFactory`, `DeserializeResult`. - **Config utils** (`ConfigUtil`, extended): server-timezone parsing (mysql / pg / default), `isJson`, `is13Timestamp`, exclude-columns / target-table parsing, `toStringMap`. ## Coverage Line coverage of the targeted self-written classes now sits at ~81–100% (e.g. `DebeziumJsonDeserializer` 81%, `PostgresDebeziumJsonDeserializer` 86%, `ConfigUtil` 86%, sink helpers 86–100%). ## pom change One dependency line: pins `jackson-annotations` to 2.19.2 to match the already-resolved `jackson-databind`/`jackson-core` 2.19.2. The transitively-resolved annotations version was older and missing classes (`JsonKey` / `JsonIncludeProperties`) that databind 2.19 references during serialization — a latent version skew that these tests surface. This only aligns the version family; the serializer (databind) was already 2.19.2. ## Draft / follow-up Marked draft. A Testcontainers-based integration test layer for the reader / snapshot+incremental read path is a planned follow-up (kept separate so it does not gate this PR). -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
