Skip to content

Add CatalogProvider and SchemaProvider to FFI Crate #15280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 18, 2025

Conversation

timsaucer
Copy link
Contributor

@timsaucer timsaucer commented Mar 17, 2025

Which issue does this PR close?

Rationale for this change

This PR expands the interfaces available via FFI to include Catalogs and Schemas (catalog schema, not arrow schema).

What changes are included in this PR?

Adds FFI variants of CatalogProvider and SchemaProvider

Are these changes tested?

Unit tests included. Coverage is shown here:

ffi-coverage-catalog-provider

Are there any user-facing changes?

None

@github-actions github-actions bot added the ffi Changes to the ffi crate label Mar 17, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The basic idea looks good to me -- I didn't go through this one carefully but I skimmed it and what I saw looks good

My only real suggestion is to try and add a more end to end example in https://github.com/apache/datafusion/tree/main/datafusion-examples/examples/ffi so that it is more likely this interface works when it is hooked up outside unit tests

@alamb
Copy link
Contributor

alamb commented Mar 17, 2025

Thank you @timsaucer

@timsaucer
Copy link
Contributor Author

Oh, good point. Added in latest push.

@timsaucer timsaucer merged commit 72705a3 into apache:main Mar 18, 2025
27 checks passed
@timsaucer timsaucer deleted the feat/ffi-catalog-provider branch March 18, 2025 11:19
@alamb
Copy link
Contributor

alamb commented Mar 18, 2025

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ffi Changes to the ffi crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants