You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add BatchAdapter to simplify using PhysicalExprAdapter / Projector to map RecordBatch between schemas (#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.
0 commit comments