-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default behavior is for transforms to start processing input from an offset equivalent to "the latest committed offset at deploy time". However, in situations where no records are committed between the moment the transform was deployed and the moment the transform starts, the timequery servicing this logic returns an empty result, which is handled by returning offset::min, which signals the transform to begin processing at the beginning of the topic. This commit adjusts the logic in source::offset_at_timestamp to return nullopt for an empty timequery result, and the handling of that nullopt to resolve the transform start offset to latest. Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
- Loading branch information
Showing
5 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters