davisp commented on code in PR #1396:
URL: 
https://github.com/apache/datafusion-python/pull/1396#discussion_r2921316996


##########
src/context.rs:
##########
@@ -659,6 +660,34 @@ impl PySessionContext {
         Ok(())
     }
 
+    pub fn register_table_factory(
+        &self,
+        format: &str,
+        factory: Bound<'_, PyAny>,
+    ) -> PyDataFusionResult<()> {
+        let py = factory.py();
+        let codec_capsule = create_logical_extension_capsule(py, 
self.logical_codec.as_ref())?;
+
+        let capsule = factory
+            .getattr("__datafusion_table_provider_factory__")?
+            .call1((codec_capsule,))?;
+        let capsule = capsule.cast::<PyCapsule>().map_err(py_datafusion_err)?;

Review Comment:
   Ope, I see it now. And can verify the update covers the issue.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to