Jimexist opened a new issue #670:
URL: https://github.com/apache/arrow-datafusion/issues/670
**Describe the bug**
A clear and concise description of what the bug is.
with a join, we'd get false positive schema name collision
**To Reproduce**
Steps to reproduce the behavior:
this works:
```sql
SELECT
t1.c9 x
FROM test t1
INNER JOIN test t2
ON t1.c9 = t2.c9
ORDER BY x;
```
but this won't:
```sql
SELECT
t1.c9 x, t1.c1 c1
FROM test t1
INNER JOIN test t2
ON t1.c9 = t2.c9
ORDER BY x;
```
```
Plan("The left schema and the right schema have the following columns with
the same name without being on the ON statement: {Column { name: \"c1\", index:
0 }}. Consider aliasing them.")
```
**Expected behavior**
A clear and concise description of what you expected to happen.
**Additional context**
Add any other context about the problem here.
--
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]