Skip to content

Fixing TypeMismatch in Cassandra Driver Config Loader#2118

Merged
VardhanThigle merged 1 commit intoGoogleCloudPlatform:mainfrom
VardhanThigle:small-fix
Jan 9, 2025
Merged

Fixing TypeMismatch in Cassandra Driver Config Loader#2118
VardhanThigle merged 1 commit intoGoogleCloudPlatform:mainfrom
VardhanThigle:small-fix

Conversation

@VardhanThigle
Copy link
Copy Markdown
Contributor

@VardhanThigle VardhanThigle commented Jan 8, 2025

Overview

Cassandra DriverExecutionProfile#entrySet returns SortedSet<Map.Entry<String,Object>> which seems to stringify types like duration and cant be directly passed to the strongly typed OptionsMap.html#put call.
We need a small amount of type mapping/adaptation for the same.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.68%. Comparing base (9d39b07) to head (66f75ae).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2118      +/-   ##
============================================
+ Coverage     46.58%   54.68%   +8.10%     
+ Complexity     3960     1574    -2386     
============================================
  Files           869      401     -468     
  Lines         51599    21725   -29874     
  Branches       5403     2156    -3247     
============================================
- Hits          24036    11881   -12155     
+ Misses        25844     9147   -16697     
+ Partials       1719      697    -1022     
Components Coverage Δ
spanner-templates 70.08% <100.00%> (+1.50%) ⬆️
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration 77.49% <100.00%> (+0.12%) ⬆️
spanner-live-reverse-replication 78.43% <100.00%> (+0.10%) ⬆️
spanner-bulk-migration 87.66% <100.00%> (+0.04%) ⬆️
Files with missing lines Coverage Δ
.../migrations/utils/CassandraDriverConfigLoader.java 100.00% <100.00%> (ø)

... and 485 files with indirect coverage changes

@VardhanThigle VardhanThigle force-pushed the small-fix branch 2 times, most recently from dc16449 to 8dc6c58 Compare January 9, 2025 04:04
@VardhanThigle
Copy link
Copy Markdown
Contributor Author

Unrelated IT failure You may not set more than 100 notification entries on a single bucket

@VardhanThigle VardhanThigle merged commit bbb49fd into GoogleCloudPlatform:main Jan 9, 2025
pawankashyapollion pushed a commit to ollionorg/DataflowTemplates-fork that referenced this pull request Jan 10, 2025
akashthawaitcc pushed a commit to ollionorg/DataflowTemplates-fork that referenced this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants