Skip to content

Commit

Permalink
Fix Delta streaming CDC source filter logic to not return incorrect -…
Browse files Browse the repository at this point in the history
…1 index

GitOrigin-RevId: 69028f5f24b2a4f1326475d02219addd1b72363b
  • Loading branch information
zsxwing authored and scottsand-db committed Oct 14, 2022
1 parent c396a1f commit 7420cfc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ trait DeltaSourceCDCSupport { self: DeltaSource =>
private def moreThanFrom(
indexedFile: IndexedFile, fromVersion: Long, fromIndex: Long): Boolean = {
// we need to filter out files so that we get only files after the startingOffset
indexedFile.version > fromVersion ||
(indexedFile.index == -1 || indexedFile.index > fromIndex)
indexedFile.version > fromVersion || indexedFile.index > fromIndex
}

private def lessThanEnd(
Expand Down

0 comments on commit 7420cfc

Please sign in to comment.