Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse Replication - IT for Boundary values and extended map datatypes #2238

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

taherkl
Copy link
Contributor

@taherkl taherkl commented Mar 5, 2025

This PR introduces integration tests to validate the conversion of boundary values and map data types from Spanner to Cassandra. The tests ensure that extreme values for various data types, including int, bigint, decimal, float, double, date, timestamp, UUID, and inet, are accurately transferred and preserved.

  • Boundary Value Testing: Inserts maximum and edge-case values of various data types into Spanner and verifies correctness in Cassandra.
  • Map Data Type Validations: Ensures correct transformation and mapping of complex data structures between the two databases.
  • String-Based Representations: Confirms that string representations used in Spanner translate accurately into native Cassandra types.
  • Data Integrity Checks: Compares stored and retrieved values across systems to maintain precision.
  • Robust Assertions: Uses comprehensive assertions to detect discrepancies and prevent potential conversion issues.

@taherkl taherkl marked this pull request as ready for review March 5, 2025 17:05
@taherkl taherkl requested a review from a team as a code owner March 5, 2025 17:05
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 15.15152% with 28 lines in your changes missing coverage. Please review.

Project coverage is 47.47%. Comparing base (613b9aa) to head (e1bfd5f).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...oud/teleport/v2/templates/codec/DurationCodec.java 6.66% 28 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2238      +/-   ##
============================================
+ Coverage     47.38%   47.47%   +0.08%     
- Complexity     4098     4434     +336     
============================================
  Files           880      881       +1     
  Lines         52590    52614      +24     
  Branches       5568     5570       +2     
============================================
+ Hits          24921    24978      +57     
+ Misses        25897    25861      -36     
- Partials       1772     1775       +3     
Components Coverage Δ
spanner-templates 69.30% <15.15%> (-0.11%) ⬇️
spanner-import-export 65.85% <ø> (ø)
spanner-live-forward-migration 77.62% <ø> (ø)
spanner-live-reverse-replication 79.25% <15.15%> (-0.42%) ⬇️
spanner-bulk-migration 88.42% <ø> (ø)
Files with missing lines Coverage Δ
.../dbutils/connection/CassandraConnectionHelper.java 97.77% <100.00%> (+0.15%) ⬆️
...oud/teleport/v2/templates/codec/DurationCodec.java 6.66% <6.66%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant