Skip to content
Merged
Changes from all commits
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 @@ -235,10 +235,15 @@ private List<SourceSplitBase> generateSplit(
Long snapshotLogOffset = tableBucketSnapshotLogOffset.get(tableBucket);
Long stoppingOffset = bucketEndOffset.get(bucket);
if (snapshotLogOffset == null) {
// no any data commit to this bucket, scan from fluss log
splits.add(
new LogSplit(
tableBucket, partitionName, EARLIEST_OFFSET, stoppingOffset));
// no data committed to lake for this bucket, scan from fluss log
if (stoppingOffset == NO_STOPPING_OFFSET || stoppingOffset > 0) {
splits.add(
new LogSplit(
tableBucket,
partitionName,
EARLIEST_OFFSET,
stoppingOffset));
}
} else {
// need to read remain fluss log
if (stoppingOffset == NO_STOPPING_OFFSET
Expand Down