ZuoTiJia opened a new issue, #5410:
URL: https://github.com/apache/arrow-datafusion/issues/5410
**Describe the bug**
Join two tables with the same schema, then union throws
`SchemaError(DuplicateUnqualifiedField )`
**To Reproduce**
```sql
create table ta(a bigint) as values(1);
create table tb(a bigint) as values(2);
select * from ta join tb on true
union all
select * from ta join tb on true;
```
SchemaError(DuplicateUnqualifiedField { name: "a" })
**Expected behavior**
query sucess.
**Additional context**
datafusion v18.0.0
--
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]