-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
v18 backport: schemadiff
: fix diffing of textual columns with implicit charsets
#15873
v18 backport: schemadiff
: fix diffing of textual columns with implicit charsets
#15873
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…olumns with implicit charsets Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
schemadiff
: fix diffing of textual columns with implicit charsets
Seems like |
I saw this on my branch too. I think MySQL 5.7 and MySQL 8 had different behaviour around when and how charset and collation were part of the table definition. |
If I remember correctly, this might be related to the default charset on MySQL 5.7 being different from 8.0. So, on 5.7, the table will be created with |
That makes sense. I haven't had the time to dig into this deeply yet (about to work on the point release now) but will take a look within an hour or so. |
Seems like this is related to the alias? Here's another failing test case:
|
A bit struggling with the test failure and how to address it. |
Thanks for the pointer. FWIW, the best place for this kind of test is in |
This is passing for me in this PR though. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
OK, there's yet more code to backport, in particular |
I feel like this is the very problem we only fixed in v19 and could not backport to v18. The multitude of MySQL versions and their contextual environment. |
If I add the fix, that break 8.0 behavior. |
Maybe I can work around this on my side a bit by also setting the charset on the table itself so that hopefully both versions of MySQL will be happy? |
Let's see if c875fac will help. 🙇♂️ |
Seems like we won't be needing this PR after all, since #15859 found a simpler solution. Closing for now. |
Description
A manual (and partial) backport of #14930. This had to be made manually because the changes in
v19
rely on un-backportable changes we made to the collation environment.This fixes an issue in
v18
, described in #15859 (comment)Related Issue(s)
#15859 (comment)
Checklist
Deployment Notes