e-mhui opened a new pull request, #7489:
URL: https://github.com/apache/inlong/pull/7489
### Prepare a Pull Request
[INLONG-7488][Sort] Fix the issue of only being able to read one record
during the incremental snapshot
- Fixes #7488
### Motivation
Fix the issue of only being able to read one record during the incremental
snapshot.
### Modifications
In the snapshot, `record.key()` is null, so it will overwrite the previous
record. So we can to add record without primary key into list.
```java
if (!reachChangeLogStart) {
if (record.key() == null) {
snapshotRecordsWithoutKey.add(record);
} else {
outputBuffer.put((Struct) record.key(), record);
}
}
```
--
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]