Skip to content

Added One to Many Datatype Transformation for IT#90

Merged
taherkl merged 11 commits intocasssandra_rr_integration_testsfrom
cassandra_rr_custom_transfornation_it_test
Feb 5, 2025
Merged

Added One to Many Datatype Transformation for IT#90
taherkl merged 11 commits intocasssandra_rr_integration_testsfrom
cassandra_rr_custom_transfornation_it_test

Conversation

@pawankashyapollion
Copy link
Copy Markdown
Collaborator

@pawankashyapollion pawankashyapollion commented Jan 31, 2025

  1. Added One to Many Datatype Transformation for IT
  2. Fix PR review comments


private long getRowCount() {
String query = String.format("SELECT COUNT(*) FROM %s", TABLE);
ResultSet resultSet = cassandraResourceManager.executeStatement(query);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

executeStatement can throw exceptions as well...can add try catch on the function

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taherkl we should not as even in case of exception test should fail the ideal case it should not throw any exception

}
}

private void assertRowInCassandraDB() throws MultipleFailureException {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comments to all the functions

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address the same

import com.google.pubsub.v1.SubscriptionName;
import com.google.pubsub.v1.TopicName;
import java.io.IOException;
import java.io.*;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import * will fail the spotless check i guess

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handle the same

spannerResourceManager.write(m);
}

private void assertCustomRowsInCassandraDB() throws MultipleFailureException {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to add comments for all the functions.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

}
}

private void writeBasicRowInSpanner() {
Copy link
Copy Markdown

@taherkl taherkl Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file does not have comments for functions

@taherkl taherkl changed the title Added Custom Transformation for IT Added One to Many Datatype Transformation for IT Feb 5, 2025
@taherkl taherkl merged commit 7d288f0 into casssandra_rr_integration_tests Feb 5, 2025
pawankashyapollion added a commit that referenced this pull request Feb 13, 2025
…m#2155)

* Add IT for Cassandra (#86)

* Add IT for Cassandra Reverse Replication

* Added IT Fixes

* Added IT fixes

* removed logger

* removed unwanted system log

* Handle Catch

* Handle with safehandler

* Running load test

* revert unwanted commit

* Added IT FIXES

* Added UT and removed unwanted SOUT

* Added One to Many Datatype Transformation for IT (#90)

Added One to Many Datatype Transformation for IT
Fix PR review comments

* Handle IT for MYSQL

* Added ByteBuffer TO BigInteger

* Cassandra rr custom transfornation it test (#96)

* PR Review Comments (#97)

* Splotless fixes

* Handle Retry Missing Exception Category

* Rebase Issue fixes

---------

Co-authored-by: pawankashyapollion <v-pawan.kumar@ollion.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants