Skip to content

Commit 8c9872a

Browse files
authored
fix: Flatten tables in getTables gRPC call (#80)
We need to flatten tables in the `getTables` call otherwise relations will not be migrated in `cloudquery migrate` (see cloudquery/plugin-sdk-python#41)
1 parent dd2c1a5 commit 8c9872a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/src/main/java/io/cloudquery/internal/servers/plugin/v3/PluginServer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void getTables(
5757
request.getSkipTablesList(),
5858
request.getSkipDependentTables());
5959
List<ByteString> byteStrings = new ArrayList<>();
60-
for (Table table : tables) {
60+
for (Table table : Table.flattenTables(tables)) {
6161
byteStrings.add(table.encode());
6262
}
6363
responseObserver.onNext(

0 commit comments

Comments
 (0)