Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Join: Schema error: Schema contains duplicate unqualified field name #7027

Closed
alamb opened this issue Jul 19, 2023 · 2 comments · Fixed by #7035
Closed

Error on Join: Schema error: Schema contains duplicate unqualified field name #7027

alamb opened this issue Jul 19, 2023 · 2 comments · Fixed by #7035
Labels
bug Something isn't working

Comments

@alamb
Copy link
Contributor

alamb commented Jul 19, 2023

Describe the bug

When trying to join two relations that have a column with the same name, we see an error

Schema error: Schema contains duplicate unqualified field name cron_job_name

To Reproduce

DataFusion CLI v27.0.0
❯ SELECT *
FROM (
VALUES ('catan-prod1-daily', 'success')
) as jobs(cron_job_name, status)
JOIN (
VALUES ('catan-prod1-daily', 'high')
) as severity(cron_job_name, level) ON (severity.cron_job_name =
jobs.cron_job_name);
Schema error: Schema contains duplicate unqualified field name cron_job_name
❯

Expected behavior

Query should run

Additional context

No response

@alamb alamb added the bug Something isn't working label Jul 19, 2023
@dburton-influxdata
Copy link

@alamb Should this fix be applied to the customer's cluster environment or will it be applied sometime in the future? Also should the query work if the customer used the INNER JOIN instead of just JOIN?

@alamb
Copy link
Contributor Author

alamb commented Aug 3, 2023

@alamb Should this fix be applied to the customer's cluster environment or will it be applied sometime in the future?

I will answer this elsewhere via DM to you

Also should the query work if the customer used the INNER JOIN instead of just JOIN?

I do not think this will make a difference -- INNER JOIN and JOIN are synonyms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants