Skip to content

Cross-shard joins #94

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

Open
levkk opened this issue Apr 15, 2025 · 0 comments
Open

Cross-shard joins #94

levkk opened this issue Apr 15, 2025 · 0 comments
Labels
backend Feature to manage backend connections enhancement New feature or request

Comments

@levkk
Copy link
Collaborator

levkk commented Apr 15, 2025

Description

SELECT * FROM users INNER JOIN orders
ON order.not_sharding_key = users.not_sharding_key;

In this case, sending the query to all shards as-is produces the wrong result since values from shard A are not joined to values in shard B. We need to remove the join, get all rows, and re-apply the join in the pooler.

@levkk levkk added backend Feature to manage backend connections enhancement New feature or request labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Feature to manage backend connections enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant