risingwave
risingwave copied to clipboard
enhance(storage): Support key_range limitation to forward_sstable_iterator
After https://github.com/risingwavelabs/risingwave/pull/17898, the key_range of the sstable may be changed and no longer represent the whole object.
As a result, the current default iterator's logic for reading sstable may cross the key_range of sst to read the wrong data. We should provide SstableIterator with the ability to expose the correct data to the public based on the key_range of sstable_info, similar to SstableStreamIterator. (https://github.com/risingwavelabs/risingwave/pull/18031)