timsaucer opened a new issue, #1444:
URL: https://github.com/apache/datafusion-python/issues/1444
**Describe the bug**
When you have a FFI based schema provider and you register a view with it,
it is unable to be executed. This is a regression from 51.0.0 to 52.3.0.
**To Reproduce**
Add this test to
`examples/datafusion-ffi-example/python/tests/_test_schema_provider.py`
```python
def test_table_provider_view():
ctx = SessionContext()
schema_provider = FixedSchemaProvider()
ctx.catalog().register_schema("ffi_schema", schema_provider)
df = ctx.read_table(create_test_dataset())
ctx.register_view("ffi_schema.my_view", df)
ctx.sql("SELECT * from ffi_schema.my_view").show()
```
**Expected behavior**
We should be able to read views like this.
**Additional context**
The error generated is:
```
E Exception: DataFusion error: FFI error: FFI error: Error serializing
custom table at
/Users/tsaucer/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/datafusion-proto-53.0.0/src/logical_plan/mod.rs:1194
E caused by
E This feature is not implemented: LogicalExtensionCodec is not
provided
```
--
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]