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

Support COPY #748

Merged
merged 7 commits into from
Sep 14, 2024
Merged

Support COPY #748

merged 7 commits into from
Sep 14, 2024

Conversation

diPhantxm
Copy link
Collaborator

@diPhantxm diPhantxm commented Aug 26, 2024

I suggest routing COPY command according to data to be copied. We parse the data, then get route for each row and compare. For now support only routing to one shard, which means if routes are different, return error.

Parse COPY command and extract table and column names and options. Send the COPY query to all shards. Receive all CopyData and parse them. Check if they correspond to one shard. Send CopyData to that one shard. Then send CopyDone to all shards and receive responses.
@diPhantxm diPhantxm merged commit 924330d into master Sep 14, 2024
27 checks passed
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 this pull request may close these issues.

2 participants