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

Improvise repartition join section #1036

Open
ghost opened this issue Mar 21, 2022 · 0 comments
Open

Improvise repartition join section #1036

ghost opened this issue Mar 21, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 21, 2022

https://docs.citusdata.com/en/v10.2/develop/reference_sql.html#repartition-joins

From this link it suggests that we support join on two tables on columns other than the distribution column. But we support only simple joins (and not complex joins, such as outer joins). Outer joins are not supported, and it's documented here https://docs.citusdata.com/en/v10.2/develop/reference_workarounds.html#sql-support-and-workarounds.

We should add a note in the first link to avoid any ambiguity.

SELECT * from table_1 p join table_2 s on s.id = p.from_id; <<< supported
SELECT * from table_1 p left join table_2 s on s.id = p.from_id; <<< not supported
ERROR: complex joins are only supported when all distributed tables are co-located and joined on their distribution columns.

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

No branches or pull requests

0 participants