Skip to content

Commit

Permalink
cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jackierwzhang committed Apr 13, 2023
1 parent f1a1e40 commit 32e2fee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ trait DeltaSourceBase extends Source
isStartingVersion: Boolean,
limits: Option[AdmissionLimits] = Some(new AdmissionLimits())):
ClosableIterator[IndexedFile] = {
var iter = if (options.readChangeFeed) {
val iter = if (options.readChangeFeed) {
// In this CDC use case, we need to consider RemoveFile and AddCDCFiles when getting the
// offset.

Expand All @@ -242,8 +242,8 @@ trait DeltaSourceBase extends Source
}
}
}
iter = stopIndexedFileIteratorAtSchemaChangeBarrier(iter)
iter
// Stop before any schema change barrier if detected.
stopIndexedFileIteratorAtSchemaChangeBarrier(iter)
}

/**
Expand Down

0 comments on commit 32e2fee

Please sign in to comment.