test(Spanner): Reverse: implement data type integration test for SQL Server - #4243
pratickchokhani wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4243 +/- ##
=============================================
+ Coverage 35.85% 63.66% +27.81%
- Complexity 713 2989 +2276
=============================================
Files 250 573 +323
Lines 17151 33656 +16505
Branches 1755 3795 +2040
=============================================
+ Hits 6149 21427 +15278
- Misses 10487 11150 +663
- Partials 515 1079 +564
🚀 New features to boost your workflow:
|
7fad735 to
43d1ad9
Compare
43d1ad9 to
210d480
Compare
c9c67fa to
4b250a8
Compare
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 introduces comprehensive integration testing for SQL Server data type support in the Spanner-to-SourceDB migration template. It includes updates to the DML generator to ensure correct type mapping and adds infrastructure support for SQL Server in the integration test base. 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 SQL Server support to the Spanner-to-SourceDb pipeline, adding DML generation logic for byte types, mapping tests, and comprehensive integration tests for both GoogleSQL and PostgreSQL dialects. Feedback focuses on refactoring the newly added integration tests to eliminate nearly 95% code duplication through a shared base class, removing redundant synchronization in the static resource manager helper, changing static resource manager fields to instance fields to avoid shared state issues, and optimizing the row count validation by replacing a chain of 70+ condition checks with a single looped check.
No description provided.