DDtKey opened a new issue, #4941:
URL: https://github.com/apache/arrow-datafusion/issues/4941
**Describe the bug**
If there is no valid fields for query it returns an error:
`Schema Error: No field named 'table'.'field'. Valid fields are .`
**To Reproduce**
```rs
let schema = DFSchema::empty();
let err = schema.index_of_column_by_name(Some("t1"), "c0").err().unwrap();
println!("{err}");
```
Or via SQL like this:
```sql
SELECT not_existed;
```
**Expected behavior**
`Valid fields are .` could be misleading, better to avoid this part of
message or replace it
**Additional context**
Prepared PR to address this:
--
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]