You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schema contains duplicate unqualified field name "id:1"
This occurs in queries involving multiple JOINs when using the substrait consumer, during the conversion of Substrait relations to the DataFusion Logical Plan — specifically when a query includes more than two JOINs.
I’ve opened a draft PR that addresses this issue. It includes some notes on my understanding of the problem, which seems to stem from how columns are aliased and renamed during the Substrait JOIN → DataFusion JOIN conversion, particularly in the requalify_sides_if_needed function.
There’s a Substrait reproducer and a test included in the PR, but I’m also linking it here for reference.
LiaCastaneda
changed the title
Duplicate unqualified schema names on queries with multiple JOIN
Duplicate unqualified field names error on queries with multiple JOIN
Mar 26, 2025
Describe the bug
👋 I'm getting the error :
Schema contains duplicate unqualified field name "id:1"
This occurs in queries involving multiple JOINs when using the substrait consumer, during the conversion of Substrait relations to the DataFusion Logical Plan — specifically when a query includes more than two JOINs.
I’ve opened a draft PR that addresses this issue. It includes some notes on my understanding of the problem, which seems to stem from how columns are aliased and renamed during the Substrait JOIN → DataFusion JOIN conversion, particularly in the requalify_sides_if_needed function.
There’s a Substrait reproducer and a test included in the PR, but I’m also linking it here for reference.
To Reproduce
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: