File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ DataFusion 52.0.0
2424This version includes a major update to the :ref: `ffi ` due to upgrades
2525to the `Foreign Function Interface <https://doc.rust-lang.org/nomicon/ffi.html >`_.
2626Users who contribute their own ``CatalogProvider ``, ``SchemaProvider ``,
27- ``TableProvider `` or ``TableFunction` `` via FFI must now provide access to a
27+ ``TableProvider `` or ``TableFunction `` via FFI must now provide access to a
2828``LogicalExtensionCodec `` and a ``TaskContextProvider ``. The most convenient
2929way to provide these is from the ``datafusion-python `` ``SessionContext `` Python
3030object. The ``SessionContext `` now has a method to export a
3131``FFI_LogicalExtensionCodec ``, which can satisfy this new requirement.
3232
3333A complete example can be found in the `FFI example <https://github.com/apache/datafusion-python/tree/main/examples/datafusion-ffi-example >`_.
34- The constructor for your provider needs to take an an input the ``SessionContext ``
34+ The constructor for your provider needs to take as an input the ``SessionContext ``
3535python object. Instead of calling ``FFI_CatalogProvider::new `` you can use the
3636added method ``FFI_CatalogProvider::new_with_ffi_codec `` as follows:
3737
@@ -95,12 +95,12 @@ using the specific datafusion project crates.
9595
9696For example, instead of including expressions like:
9797
98- .. code-block: rust
98+ .. code-block :: rust
9999
100100 use datafusion::catalog::MemTable;
101101
102102 Instead you can now write:
103103
104- .. code-block: rust
104+ .. code-block :: rust
105105
106106 use datafusion_catalog::MemTable;
You can’t perform that action at this time.
0 commit comments