Skip to content

Commit 63f36bf

Browse files
committed
fix: update TableProvider registration for DeltaTable to use the correct method
1 parent 3eda22e commit 63f36bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/user-guide/data-sources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ as Delta Lake. This will require a recent version of
155155
from datafusion import TableProvider
156156
157157
delta_table = DeltaTable("path_to_table")
158-
provider = TableProvider.from_capsule(delta_table)
158+
provider = TableProvider.from_capsule(delta_table.__datafusion_table_provider__())
159159
ctx.register_table("my_delta_table", provider)
160160
df = ctx.table("my_delta_table")
161161
df.show()

0 commit comments

Comments
 (0)