Repository navigation
[Part 2/2] Add Oracle data writer and source connector registration in cdc-data-generator - #4504
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request completes the implementation of Oracle support for the v2/cdc-data-generator. It introduces the necessary infrastructure to connect to, scan, and write data to Oracle databases, including batched JDBC MERGE operations for efficient upserts and deletes. The changes also include comprehensive unit tests for the new components. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces Oracle database support to the CDC Data Generator. It adds the necessary Oracle JDBC dependencies, implements the Oracle source connector, schema fetcher, type mapper, and data writer, and extends the existing OracleInformationSchemaScanner to extract comprehensive schema metadata. Comprehensive unit tests are also added to validate these new components. The reviewer identified a high-severity issue in OracleDataWriter where generated primary key columns are excluded from writableColumns but still referenced in the MERGE statement's ON clause, which would cause an ORA-00904 compilation error in Oracle. A code suggestion was provided to ensure primary key columns are retained in writableColumns even if marked as generated.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4504 +/- ##
============================================
+ Coverage 57.05% 57.21% +0.16%
+ Complexity 8143 7821 -322
============================================
Files 1167 1169 +2
Lines 74470 74763 +293
Branches 8810 8865 +55
============================================
+ Hits 42486 42777 +291
- Misses 29144 29145 +1
- Partials 2840 2841 +1
🚀 New features to boost your workflow:
|
d2e9929 to
db8390c
Compare
db8390c to
eb3e761
Compare
… even if marked generated
…ch bound columns, prevent shard ID collisions, and update option helpText
2c02740 to
6e7b114
Compare
dhwanilpatel
left a comment
There was a problem hiding this comment.
LGTM. Just minor comment.
Part 2 of 2 for adding Oracle support in
v2/cdc-data-generator(stacked on #4500):\n- AddsOracleDataWriterfor batched JDBCMERGEupserts andDELETEoperations across Oracle shards.\n- AddsOracleSourceConnectorand registersORACLEinSourceConnectorFactoryandCdcDataGeneratorOptions.\n- Includes unit tests forOracleDataWriter,OracleSourceConnector, andSourceConnectorFactory.