Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-7351 Avoid child data snapshots from PostgreSQL parent tables #5159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions COPYRIGHT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ Naveen Kumar KR
Nayana Hettiarachchi
Nenad Stojanovikj
Nick Murray
Nicolas Payart
Niels Pardon
Nikhil Benesch
Nils Hartmann
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void init(PostgresConnectorConfig config, OffsetState sourceInfo, SlotSta
@Override
public Optional<String> buildSnapshotQuery(TableId tableId, List<String> snapshotSelectColumns) {
String query = snapshotSelectColumns.stream()
.collect(Collectors.joining(", ", "SELECT ", " FROM " + tableId.toDoubleQuotedString()));
.collect(Collectors.joining(", ", "SELECT ", " FROM ONLY " + tableId.toDoubleQuotedString()));

return Optional.of(query);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Optional<String> buildSnapshotQuery(TableId tableId, List<String> snapsho
}
else {
String query = snapshotSelectColumns.stream()
.collect(Collectors.joining(", ", "SELECT ", " FROM " + tableId.toDoubleQuotedString()));
.collect(Collectors.joining(", ", "SELECT ", " FROM ONLY " + tableId.toDoubleQuotedString()));

return Optional.of(query);
}
Expand Down
1 change: 1 addition & 0 deletions jenkins-jobs/scripts/config/Aliases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,4 @@ methodmissing,Lourens Naudé
Prabhu19,Pavithrananda Prabhu
Lourens Naude,Lourens Naudé
overwatcheddude,حمود سمبول
koleo,Nicolas Payart