in spanner-data-validator-java/src/main/java/com/google/migration/dto/session/Schema.java [196:213]
public void verifyTableInSession(String tableName)
throws IllegalArgumentException, DroppedTableException {
if (!this.srcToID.containsKey(tableName)) {
throw new IllegalArgumentException(
"Missing entry for " + tableName + " in srcToId map, provide a valid session file.");
}
if (!this.toSpanner.containsKey(tableName)) {
throw new DroppedTableException(
"Cannot find entry for "
+ tableName
+ " in toSpanner map, it is likely this table was dropped");
}
String tableId = this.srcToID.get(tableName).getName();
if (!this.spSchema.containsKey(tableId)) {
throw new IllegalArgumentException(
"Missing entry for " + tableId + " in spSchema, provide a valid session file.");
}
}