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

[Bug] hash join node should keep at least one column after projection #12093

Closed
3 tasks done
starocean999 opened this issue Aug 26, 2022 · 0 comments · Fixed by #12080
Closed
3 tasks done

[Bug] hash join node should keep at least one column after projection #12093

starocean999 opened this issue Aug 26, 2022 · 0 comments · Fixed by #12080

Comments

@starocean999
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What's Wrong?

select CASE WHEN true THEN 1 ELSE 1 END AS c0 FROM (SELECT a AS c0 FROM outerjoin_A ) AS subq_1 RIGHT JOIN (SELECT a AS c0 FROM outerjoin_B ) AS subq_2 ON (subq_1.c0 = subq_2.c0 );

The above sql would crash. Because the hash join node has no column to output after projection.

What You Expected?

the sql execute correctly.

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant