Skip to content
Permalink
Browse files

0003992: Create-Table batches resulting from a Load Data "Create Table"

aren't being marked with a load id
  • Loading branch information...
erilong committed Jun 10, 2019
1 parent 2ea04f5 commit 47f8a71b9638382613f02e5c041ee2f5067c8bc9
@@ -1172,6 +1172,12 @@ protected int insertDataEvents(ProcessInfo processInfo, ChannelRouterContext con
context.setNeedsCommitted(true);
}
} else if (dataMetaData.getData().getDataEventType() == DataEventType.CREATE) {
if (dataMetaData.getData().getPkData() != null) {
try {
batch.setLoadId(Long.parseLong(dataMetaData.getData().getPkData()));
} catch (NumberFormatException e) {
}
}
context.setNeedsCommitted(true);
} else {
context.setLastLoadId(-1);

0 comments on commit 47f8a71

Please sign in to comment.
You can’t perform that action at this time.