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

ArrayScanNode formatting does not support all join types #176

Closed
ohaibbq opened this issue Feb 27, 2024 · 0 comments · Fixed by #180
Closed

ArrayScanNode formatting does not support all join types #176

ohaibbq opened this issue Feb 27, 2024 · 0 comments · Fixed by #180

Comments

@ohaibbq
Copy link
Contributor

ohaibbq commented Feb 27, 2024

Currently only a cross join is used, so clauses that use INNER JOIN or LEFT OUTER JOIN produce incorrect results.

WITH produce AS (select 'lettuce' AS item UNION ALL SELECT 'banana')
SELECT item, in_stock_items is not null AS item_in_stock FROM produce
LEFT OUTER JOIN unnest(['lettuce']) in_stock_items ON in_stock_items = item;
item item_in_stock
lettuce true
banana false
WITH produce AS (select 'lettuce' AS item UNION ALL SELECT 'banana')
SELECT item, in_stock_items is not null AS item_in_stock FROM produce
INNER JOIN unnest(['lettuce']) in_stock_items ON in_stock_items = item;
item item_in_stock
lettuce true
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