alexandreyc opened a new issue, #9949:
URL: https://github.com/apache/arrow-datafusion/issues/9949
### Describe the bug
Putting a trailing comma after the last column/expression within a select
statement produces a misleading error message.
### To Reproduce
When running the following:
```sql
create table my_table as (
select 'Alice' as name, 42 as age
union all
select 'Bob' as name, 1337 as age
);
select
name,
age,
from
my_table
```
We got the following error message:
```
Schema error: No field named name.
```
### Expected behavior
Either:
- Accepting trailing comma
- Have an informative error message
### Additional context
I took me a while to figure out the problem so I though that it might be
helpful to improve on 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]