You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "timsaucer (via GitHub)" <gi...@apache.org> on 2026/02/25 15:11:12 UTC

[I] Add utility crate [datafusion-python]

timsaucer opened a new issue, #1395:
URL: https://github.com/apache/datafusion-python/issues/1395

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   The design pattern we are suggesting is that users who are creating their extensions to be used with datafusion-python do not depend on this crate directly. Instead we recommend they depend on the upstream datafusion repository. We have some utility functions that may be very helpful so that users don't need to copy them into their code. We should break this repo into a workspace with a crate for these utility functions.
   
   **Describe the solution you'd like**
   
   Create a crate for utility functions with things like `ffi_logical_codec_from_pycapsule` and so forth.
   
   **Describe alternatives you've considered**
   
   Continue to expect users to duplicate our examples in their code.
   
   **Additional context**
   
   If we do this then we can make the ffi example part of the workspace which may simplify a few things.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Add utility crate [datafusion-python]

Posted by "timsaucer (via GitHub)" <gi...@apache.org>.
timsaucer closed issue #1395: Add utility crate
URL: https://github.com/apache/datafusion-python/issues/1395


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Add utility crate [datafusion-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1395:
URL: https://github.com/apache/datafusion-python/issues/1395#issuecomment-3961328526

   Great idea! I was wondering why these functions were not available for import 
   
   For iceberg-rust, when upgrading to datafusion 52.x, we copied over the definition for `validate_pycapsule` and `ffi_logical_codec_from_pycapsule` 
   https://github.com/apache/iceberg-rust/pull/1997/files#diff-1a7b28a196f60421838fd52ca356647a835081dc3095f1b55d526c27580cb677R34-R66
   
   Would be great to be able to import those directly instead of copy/pasting. 
   
   I see `ffi_logical_codec_from_pycapsule` is only defined in `examples/datafusion-ffi-example/src/utils.rs` and `docs/source/user-guide/upgrade-guides.rst`. 
   <img width="1007" height="349" alt="Image" src="https://github.com/user-attachments/assets/6c8de0f2-8a40-4b2e-aac9-cc14268b4ea0" />
   
   Would be a good first candidate to copy over


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org