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 918b1ce commit 93f0a31Copy full SHA for 93f0a31
examples/datafusion-ffi-example/python/tests/_test_table_provider.py
@@ -18,16 +18,14 @@
18
from __future__ import annotations
19
20
import pyarrow as pa
21
-from datafusion import SessionContext, TableProvider
+from datafusion import SessionContext, Table
22
from datafusion_ffi_example import MyTableProvider
23
24
25
def test_table_loading():
26
ctx = SessionContext()
27
table = MyTableProvider(3, 2, 4)
28
- ctx.register_table(
29
- "t", TableProvider.from_capsule(table.__datafusion_table_provider__())
30
- )
+ ctx.register_table("t", Table.from_capsule(table.__datafusion_table_provider__()))
31
result = ctx.table("t").collect()
32
33
assert len(result) == 4
0 commit comments