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

incorrect where clause comparison while using table alias #3073

Closed
waitingkuo opened this issue Aug 8, 2022 · 0 comments · Fixed by #3228
Closed

incorrect where clause comparison while using table alias #3073

waitingkuo opened this issue Aug 8, 2022 · 0 comments · Fixed by #3228
Labels
bug Something isn't working

Comments

@waitingkuo
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

DataFusion CLI v10.0.0
❯ select * from (select 1 as a) f where f.a=2;
+---+
| a |
+---+
| 1 |
+---+
1 row in set. Query took 0.000 seconds.

while this works in postgresql

willy=# select * from (select 1 as a) f where f.a=2;
 a 
---
(0 rows)

Expected behavior

should output 0 row

Additional context
Add any other context about the problem here.

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.

1 participant