Skip to content

Make schema optional for RecordBatchPullInputAdapter#688

Merged
arhamchopra merged 2 commits intomainfrom
ac/rb_adapter
Mar 9, 2026
Merged

Make schema optional for RecordBatchPullInputAdapter#688
arhamchopra merged 2 commits intomainfrom
ac/rb_adapter

Conversation

@arhamchopra
Copy link
Collaborator

@arhamchopra arhamchopra commented Mar 5, 2026

Lazy/deferred schema support for RecordBatchPullInputAdapter

Summary

Makes the schema parameter optional in RecordBatchPullInputAdapter. When schema=None, the schema is extracted lazily from the first record batch at runtime via the PyCapsule C Data interface. This enables deferred iterator patterns where the data source isn't available until csp.run() is called.

Thanks to @rjshs for the work on this.

Signed-off-by: Arham Chopra <arham.chopra@cubistsystematic.com>
@arhamchopra arhamchopra marked this pull request as ready for review March 5, 2026 21:37
Signed-off-by: Arham Chopra <arham.chopra@cubistsystematic.com>
@arhamchopra arhamchopra merged commit 0a0ae29 into main Mar 9, 2026
25 checks passed
@arhamchopra arhamchopra deleted the ac/rb_adapter branch March 9, 2026 14:34
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.

2 participants