Skip to content

Commit f302793

Browse files
committed
fix: correct attribute access for __datafusion_table_provider__ in RustWrappedPySchemaProvider
1 parent 5fc66d6 commit f302793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/catalog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl RustWrappedPySchemaProvider {
323323
}
324324

325325
if py_table.hasattr("__datafusion_table_provider__")? {
326-
let capsule = provider.getattr("__datafusion_table_provider__")?.call0()?;
326+
let capsule = py_table.getattr("__datafusion_table_provider__")?.call0()?;
327327
let capsule = capsule.downcast::<PyCapsule>().map_err(py_datafusion_err)?;
328328
validate_pycapsule(capsule, "datafusion_table_provider")?;
329329

0 commit comments

Comments
 (0)