Skip to content

[source-postgres] fix on final state #44119

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

Merged
merged 7 commits into from
Aug 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public AirbyteStateMessage createCtidStateMessage(final AirbyteStreamNameNamespa
streamsThatHaveCompletedSnapshot.forEach(stream -> {
final DbStreamState state = getFinalState(stream);
streamStates.add(getAirbyteStreamState(stream, Jsons.jsonNode(state)));

});

resumableFullRefreshStreams.forEach(stream -> {
Expand Down Expand Up @@ -166,8 +165,10 @@ public AirbyteStateMessage createFinalStateMessage(final AirbyteStreamNameNamesp
});

resumableFullRefreshStreams.forEach(stream -> {
final CtidStatus ctidStatusForFullRefreshStream = generateCtidStatusForState(pair);
streamStates.add(getAirbyteStreamState(stream, Jsons.jsonNode(ctidStatusForFullRefreshStream)));
final CtidStatus ctidStatusForFullRefreshStream = generateCtidStatusForState(new AirbyteStreamNameNamespacePair(stream.getName(), stream.getNamespace()));
if (ctidStatusForFullRefreshStream != null) {
streamStates.add(getAirbyteStreamState(stream, Jsons.jsonNode(ctidStatusForFullRefreshStream)));
}
});

nonResumableFullRefreshStreams.forEach(stream -> {
Expand Down
Loading