-
Notifications
You must be signed in to change notification settings - Fork 12
Support custom TableProvider #45
Comments
I believe it can work using https://pyo3.rs/v0.15.1/class.html?highlight=inheri#inheritance, close now |
I try both inheritance and non-inheritance, compiling works, but pytest still show error with inheritance, without inheritance, I have tried
|
@jimexist , sorry to bother, just wonder whether you have idea about how to resolve the type conversion error in #45 (comment) |
* Add register_table and deregister_table * expose public module and method for PyTable inheritant
Looks like it is not supported in pyo3. According to PyO3/pyo3#1444, even though
|
Background
I would like to use
datafusion-python
to query Bigtable. In Rust,datafusion-bigtable
have implement BigtableDataSource as custom TableProvider.Problem
I tried to add
register_table
in #46 and expose a pythonBigtableTable
indatafusion-bigtable
at datafusion-contrib/datafusion-bigtable#3.The problem is how to convert python
BigtableTable
to pythonTable
? Or how to serialize/deserialize rustTableProvider
to some Python Object?following is a non-working example, because
bigtable.table()
isTableProvider
(Rust) and have no corresponding python objectThe text was updated successfully, but these errors were encountered: