Skip to content

Conversation

@taherkl
Copy link
Contributor

@taherkl taherkl commented Dec 9, 2024

The Type handler will be used for Casting source type(Spanner) to Cassandra Cassandra-supported type.

This code covers the support for:

  • Boolean
  • Float
  • Double
  • Date
  • String
  • Text
  • Timestamp
  • Integer
  • Varchar,
  • ascii,
  • inet,
  • smallint,
  • tinyint
  • List of String, Date, Text, Integer, Date, Timestamp, Float, Double
  • Set of String, Date, Text, Integer, Date, Timestamp, Float, Double

// TODO - We are going to create a common method which will be the common integration point of this class and then we will mark all of these methods as private. we have kept this method public for a while to wire up UT.

taherkl and others added 3 commits November 27, 2024 20:19
@taherkl taherkl requested a review from a team as a code owner December 9, 2024 09:47
* Refectored the code

* Handle Minor fixes

* Casting fixes

PR review comments fixed
* updated comments
* Resolve review comments and added test cases for null, min, max and incorrect value format

* Handle Exception

* Handle INet

* Handle Code Formate

* Added format and removeed raw import

* Added Null handling

* Added test cases for all remaining of cassandra datatype
@taherkl
Copy link
Contributor Author

taherkl commented Dec 12, 2024

@shreyakhajanchi @VardhanThigle We have addressed all the review comments. Requesting your review for the same. Please close the comment if the addressed changes are aligned with the expectations. Thanks!

@shreyakhajanchi shreyakhajanchi added the improvement Making existing code better label Dec 13, 2024
* removed unwanted <> from comments

* Added Fixes for String formate

* Fix spotapply
pawankashyapollion and others added 7 commits December 16, 2024 12:23
* removed unwanted <> from comments

* Added Fixes for String formate

* Fix spotapply

* Fixed the review comments and add Test with a non-zero offset and happy test

* Fixed the review comments and add Test with a non-zero offset and happy test

* Handle Sppoty fixes

---------

Co-authored-by: Narendra Rajput <narendra.rajput@ollion.com>
@codecov
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 83.41463% with 34 lines in your changes missing coverage. Please review.

Project coverage is 46.31%. Comparing base (91b5be3) to head (e1c0044).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...v2/templates/dbutils/dml/CassandraTypeHandler.java 83.41% 23 Missing and 11 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2054      +/-   ##
============================================
+ Coverage     45.95%   46.31%   +0.35%     
- Complexity     3792     4243     +451     
============================================
  Files           850      857       +7     
  Lines         50764    51215     +451     
  Branches       5340     5389      +49     
============================================
+ Hits          23331    23718     +387     
- Misses        25741    25783      +42     
- Partials       1692     1714      +22     
Components Coverage Δ
spanner-templates 68.08% <83.41%> (+0.49%) ⬆️
spanner-import-export 65.57% <ø> (+0.06%) ⬆️
spanner-live-forward-migration 76.42% <ø> (+0.11%) ⬆️
spanner-live-reverse-replication 77.63% <83.41%> (+0.37%) ⬆️
spanner-bulk-migration 87.16% <ø> (+0.29%) ⬆️
Files with missing lines Coverage Δ
...v2/templates/dbutils/dml/CassandraTypeHandler.java 83.41% <83.41%> (ø)

... and 31 files with indirect coverage changes

* Fixed review comments and increased coverage
* Fixed UT for Inetaddress
@shreyakhajanchi shreyakhajanchi merged commit 8479c8a into GoogleCloudPlatform:main Dec 17, 2024
19 of 21 checks passed
@akashthawaitcc akashthawaitcc deleted the cassandra-datatype-handler branch March 17, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Making existing code better size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants