Skip to content

Duplicate unqualified name error on unions #20123

@gabotechs

Description

@gabotechs

Describe the bug

When going through Substrait in a query with unions, where two different union-ed columns have the same name, the following error happens:

Error: type_coercion
Schema contains duplicate unqualified field name "foo(bar(tags,Utf8(""baz"")))"

This seems to be a regression that started happening in v52 and was introduced in:

As reverting that PR fixes the problem.

To Reproduce

Run the new test introduced in #20106

Expected behavior

The test succeeds

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions