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 44ab9fb commit 5fc66d6Copy full SHA for 5fc66d6
python/datafusion/catalog.py
@@ -149,6 +149,14 @@ def __repr__(self) -> str:
149
"""Print a string representation of the table."""
150
return self.table.__repr__()
151
152
+ def __datafusion_table_provider__(self) -> object: # noqa: D105
153
+ """Expose the internal DataFusion table provider PyCapsule.
154
+
155
+ This forwards the call to the underlying Rust-backed RawTable so the
156
+ object can be used as a TableProviderExportable by the FFI layer.
157
+ """
158
+ return self.table.__datafusion_table_provider__()
159
160
@staticmethod
161
def from_dataset(dataset: pa.dataset.Dataset) -> Table:
162
"""Turn a pyarrow Dataset into a Table."""
0 commit comments