From b3c2027ad02243d96f2473426706ef8d377e891e Mon Sep 17 00:00:00 2001 From: pawankashyapollion Date: Mon, 23 Dec 2024 13:11:26 +0530 Subject: [PATCH] removed unwanted Return --- .../migrations/metadata/CassandraSourceMetadata.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/v2/spanner-common/src/main/java/com/google/cloud/teleport/v2/spanner/migrations/metadata/CassandraSourceMetadata.java b/v2/spanner-common/src/main/java/com/google/cloud/teleport/v2/spanner/migrations/metadata/CassandraSourceMetadata.java index 3b5956830..815d6b91a 100644 --- a/v2/spanner-common/src/main/java/com/google/cloud/teleport/v2/spanner/migrations/metadata/CassandraSourceMetadata.java +++ b/v2/spanner-common/src/main/java/com/google/cloud/teleport/v2/spanner/migrations/metadata/CassandraSourceMetadata.java @@ -70,17 +70,15 @@ private static SourceSchema generateSourceSchema(ResultSet resultSet) { /** * Converts a ResultSet to a Schema object, updating the provided schema. * - * @param schema The schema to update. + * @param schema The schema to update. * @param resultSet The ResultSet containing schema information. - * @return The updated Schema. */ - public static Schema generateSourceSchema(Schema schema, ResultSet resultSet) { + public static void generateSourceSchema(Schema schema, ResultSet resultSet) { SourceSchema sourceSchema = generateSourceSchema(resultSet); Map sourceTableMap = convertSourceSchemaToMap(sourceSchema); schema.setSrcSchema(sourceTableMap); schema.setToSource(convertSourceToNameAndColsTable(sourceSchema.tables().values())); - return schema; } /**