Repository navigation
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
alamb
marked this pull request as ready for review
December 1, 2026 21:55
Contributor
Author
|
@timsaucer if you have time to review this PR for accuracy I would be most appreciative. I think it reflects reality |
alamb
commented
Dec 1, 2026
|
|
||
| ## Version Compatibility | ||
|
|
||
| The interfaces in this crate are **not** stable across major versions of |
Contributor
Author
There was a problem hiding this comment.
I am pretty sure this is correct and the actual usecase of this crate. Please correct me if I am wrong
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
The
datafusion-ffiREADME currently says the crate defines interfaces "that will remain stable across different versions of DataFusion" which is not correct.The
FFI_*structs are#[repr(C)]structs of function pointers, and their layout changes whenever a callback is added or its signature changes.As I noted in https://github.com/apache/datafusion/pull/27644/changes#r4761375019, the ABI compatibility is designed for libraries built against the same DataFusion version, not different ones, and this applies to FFI in general rather than to any one PR.
The only place the real rule is written down today is the rustdoc on
datafusion_ffi::version(), which says the major version identifies compatibility.The FFI does change between releases
FFI_ExecutionPlanandFFI_PhysicalExpr(its upgrade guide entry says "rebuild FFI providers and consumers against the same release")FFI_TableProviderDocumenting the rule once means each such PR does not need to re-explain it in the upgrade guide.
What changes are included in this PR?
datafusion/ffi/README.mdWhat is the testing strategy for this PR?
Documentation only, no tests.
Are there any user-facing changes?
Documentation only. No behavior or API changes.