oracledb_cdc: support snapshot filtering#4606
Conversation
|
Commits
Review The PR adds a
|
c0fccf2 to
387ad46
Compare
|
Commits Review One issue:
|
|
Commits
Review LGTM |
|
Commits
Review The PR adds an optional per-table
|
|
Commits
Otherwise commit granularity (docs separated from code) and format are fine. Review This PR adds per-table snapshot query filtering to the LGTM — no high-signal code issues found. The implementation is consistent with the existing snapshot code, the validator is well-tested, and the CDC message/config conventions (flat shape, canonical fields) are preserved. |
5d66add to
056d79c
Compare
|
Automated review by Claude. Commits
Granularity and remaining message formats look good (docs are correctly separated from code changes into their own commit). Review Adds a
|
|
Commits
Review Reviewed the addition of per-table snapshot query filtering to the LGTM |
| ).Description("LogMiner configuration settings."), | ||
| ). | ||
| // snapshot config | ||
| Field(service.NewObjectField(ociFieldSnapshot, |
There was a problem hiding this comment.
This introduces a nested snapshot: object (snapshot.filters) for snapshot configuration, whereas every other snapshot knob in this same connector is a flat, snapshot_-prefixed top-level field: stream_snapshot, max_parallel_snapshot_tables, snapshot_max_batch_size, snapshot_mode.
The CDC Connector Standard §5.3 asks new CDC config to "mirror the shape the fleet already establishes rather than introducing a new shape" (canonical snapshot fields are the flat snapshot_* names), and §3.1.5 asks connectors to feel consistent with the rest of the fleet. Having both a flat snapshot_max_batch_size and a nested snapshot.filters in one connector means two parallel ways to express snapshot config.
Consider a flat field (e.g. snapshot_filters) to stay consistent with the existing convention.
|
Commits
Otherwise commit granularity is good (docs separated from code) and messages use lowercase imperative mood. Review Adds a per-table
|
|
Commits Three commit messages have typos in the scope/message, which the enforced
These are minor; the granularity (docs kept separate from code) is otherwise fine. Review Adds a
|
|
Commits
Review Adds a LGTM |
This change adds support for controlling the traditional greedy
SELECT * FROM table_to_snapshotquery, allowing the user to reduce the amount of data the snapshot will return, speeding up the snapshot process by excluding columns that aren't of interest or excluding certain groups of rows.Given the following config:
We get the following filtered results: