fluss-rust icon indicating copy to clipboard operation
fluss-rust copied to clipboard

[rust] Dedup KV value decode between lookup and batch scanner

Open fresh-borzoni opened this issue 6 months ago • 0 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Description

LookupResult::to_record_batch and the limit scanner's KV decode do the same thing — [schema_id|value] -> FixedSchemaDecoder -> RecordBatch - with separate decoder caches and a duplicated read_schema_id. Extract one shared helper, the future snapshot scanner will want it too.

Touches the lookup hot path, so do it carefully on its own.

Willingness to contribute

  • [ ] I'm willing to submit a PR!

fresh-borzoni avatar May 27 '26 16:05 fresh-borzoni