We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2764bca commit fbf54f1Copy full SHA for fbf54f1
python/datafusion/context.py
@@ -685,6 +685,14 @@ def deregister_table(self, name: str) -> None:
685
"""Remove a table from the session."""
686
self.ctx.deregister_table(name)
687
688
+ def register_table_provider(self, name: str, provider: Any) -> None:
689
+ """Register a table provider.
690
+
691
+ This table provider must have a method called ``__datafusion_table_provider__``
692
+ which returns a PyCapsule that exposes a ``FFI_TableProvider``.
693
+ """
694
+ self.ctx.register_table_provider(name, provider)
695
696
def register_record_batches(
697
self, name: str, partitions: list[list[pyarrow.RecordBatch]]
698
) -> None:
0 commit comments