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

VDiff: make enums comparable #6880

Merged
merged 3 commits into from
Oct 15, 2020
Merged

Conversation

rohitnayak
Copy link

If a table with a column of type Enum is participating in a vreplication workflow, the replication itself works. However VDiff fails while comparing enum values from source and target.

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

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
…arable types test

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohitnayak rohitnayak marked this pull request as ready for review October 14, 2020 15:26
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

This is likely not 100% correct because byte comparing enum for inequality may yield a different result than mysql. In the case of the other data types, it will still work because mysql's text rendering of those values coincidentally works correctly also.

We should ideally differentiate between equality vs inequality comparability. Let's merge this, but fix forward.

@sougou sougou merged commit 47aa0bf into vitessio:master Oct 15, 2020
@deepthi deepthi mentioned this pull request Oct 22, 2020
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.

4 participants