Skip to content

[rust] Add into_stream() to bounded readers#3664

Merged
fresh-borzoni merged 1 commit into
apache:mainfrom
fresh-borzoni:rust-into-stream
Jul 20, 2026
Merged

[rust] Add into_stream() to bounded readers#3664
fresh-borzoni merged 1 commit into
apache:mainfrom
fresh-borzoni:rust-into-stream

Conversation

@fresh-borzoni

@fresh-borzoni fresh-borzoni commented Jul 16, 2026

Copy link
Copy Markdown
Member

closes #3665

Adds into_stream(self) -> impl Stream<Item = Result> to RecordBatchLogReader and LimitBatchScanner.
A try_unfold over the existing next_batch(), so async consumers (DataFusion) can drive the bounded readers as a Stream.

Yields ScanBatch (keeps bucket/offset) and stays a plain futures::Stream, no datafusion dep in core, so the caller wraps it.
Dropping the stream reuses the reader's existing cleanup.

@fresh-borzoni

Copy link
Copy Markdown
Member Author

@beryllw PTAL 🙏

@beryllw

beryllw commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

LGTM, thanks for the contribution!

@fresh-borzoni
fresh-borzoni merged commit 3162111 into apache:main Jul 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rust] Stream adapter for the bounded readers

2 participants