[mongodb][hotfix] Fix SourceRecord range check (#2343)

(cherry picked from commit 0b9ca5958d)
pull/2694/head
yuxiqian 2 years ago committed by Leonard Xu
parent 7bb5253465
commit c35b1ff3bc

@ -132,7 +132,7 @@ public class MongoDBFetchTaskContext implements FetchTask.Context {
BsonDocument splitKeys = (BsonDocument) splitStart[0];
String firstKey = splitKeys.getFirstKey();
BsonValue keyValue = documentKey.get(firstKey);
BsonValue lowerBound = ((BsonDocument) splitEnd[1]).get(firstKey);
BsonValue lowerBound = ((BsonDocument) splitStart[1]).get(firstKey);
BsonValue upperBound = ((BsonDocument) splitEnd[1]).get(firstKey);
// for all range

Loading…
Cancel
Save