Skip to content

Join two tables with the same schema, then union throws SchemaError(DuplicateUnqualifiedField ) #5410

@ZuoTiJia

Description

@ZuoTiJia

Describe the bug
Join two tables with the same schema, then union throws SchemaError(DuplicateUnqualifiedField )

To Reproduce

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions