Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 19, 2026

… map RecordBatch between schemas (apache#19716)

I've now seen this pattern a couple of times, in our own codebase,
working on apache/datafusion-comet#3047.

I was going to add an example but I think adding an API to handle it for
users is a better experience.

This should also make it a bit easier to migrate from SchemaAdapter. In
fact, I think it's possible to implement a SchemaAdapter using this as
the foundation + some shim code. This won't be available in DF 51 to
ease migration but it's easy enough to backport (just copy the code in
this PR) for users that would find that helpful.
@alamb alamb merged commit c0a6f23 into apache:branch-52 Jan 19, 2026
32 checks passed
@alamb
Copy link
Contributor Author

alamb commented Jan 19, 2026

Thanks @adriangb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datasource Changes to the datasource crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants