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

VReplication Reverse Workflows: add keyspace scope to vindex while creating reverse vreplication streams #8385

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

rohit-nayak-ps
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps commented Jun 25, 2021

Description

For sharded streams we add filters like select * from customer where in_keyrange(customer_id, 'keyspace1.hash', '-7f') where the vindex is scoped by the source keyspace. This is needed since other keyspaces might also contain vindexes of the same name and using just the vindex name would create an ambiguity.

This logic was missing while creating reverse streams which this PR adds.

Signed-off-by: Rohit Nayak rohit@planetscale.com

Related Issue(s)

#8259

Checklist

  • Tests were added or are not required

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

MoveTables / SwitchWrites vreplication error: "ambiguous vindex reference: hash"
2 participants