azexcy commented on code in PR #25257:
URL: https://github.com/apache/shardingsphere/pull/25257#discussion_r1173643750
##########
kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/importer/DataRecordMerger.java:
##########
@@ -119,21 +119,22 @@ private void mergeUpdate(final DataRecord dataRecord,
final Map<DataRecord.Key,
}
private void mergeDelete(final DataRecord dataRecord, final
Map<DataRecord.Key, DataRecord> dataRecords) {
- DataRecord beforeDataRecord = dataRecords.get(dataRecord.getKey());
+ DataRecord beforeDataRecord = dataRecords.get(dataRecord.getOldKey());
Review Comment:
Delete record before have value, after is nul, the getOldKey() will get the
before uniquke value, is't not null
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]