rdettai opened a new issue #612:
URL: https://github.com/apache/arrow-datafusion/issues/612
**Describe the bug**
When the using an empty table (no column), a query like `select * from
empty_table` fails.
**To Reproduce**
```Rust
let mut ctx = ExecutionContext::new();
let empty_table = Arc::new(EmptyTable::new(Arc::new(Schema::empty())));
ctx.register_table("test_tbl", empty_table).unwrap();
let sql = "SELECT * FROM test_tbl";
let result = plan_and_collect(&mut ctx, sql)
.await
.expect("Query empty table");
```
**Expected behavior**
Returns an empty table
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]