-
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
ApplySchema vttablet RPC: allow special characters in table and column names #13054
Merged
rohit-nayak-ps
merged 1 commit into
vitessio:main
from
planetscale:apply-schema-special-chars
May 28, 2023
Merged
ApplySchema vttablet RPC: allow special characters in table and column names #13054
rohit-nayak-ps
merged 1 commit into
vitessio:main
from
planetscale:apply-schema-special-chars
May 28, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… table and column names can have special characters Signed-off-by: Rohit Nayak <rohit@planetscale.com>
vitess-bot
bot
added
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
labels
May 9, 2023
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
rohit-nayak-ps
changed the title
WIP: ApplySchema vttablet RPC: allow special characters in table and column names
ApplySchema vttablet RPC: allow special characters in table and column names
May 9, 2023
rohit-nayak-ps
added
Type: Bug
Component: VReplication
and removed
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
Component: VReplication
labels
May 9, 2023
mattlord
approved these changes
May 10, 2023
rohit-nayak-ps
requested review from
dbussink,
shlomi-noach,
harshit-gangal and
GuptaManan100
May 24, 2023 16:35
deepthi
approved these changes
May 27, 2023
rohit-nayak-ps
added
Backport to: release-14.0
and removed
Backport to: release-14.0
labels
May 28, 2023
I was unable to backport this Pull Request to the following branches: |
4 tasks
dbussink
added a commit
to dbussink/vitess
that referenced
this pull request
Jun 16, 2023
This was using the command line but we can use a proper mysql connection here. Follow up to vitessio#13054 where this was identified. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
dbussink
added a commit
that referenced
this pull request
Jun 17, 2023
This was using the command line but we can use a proper mysql connection here. Follow up to #13054 where this was identified. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
VReplication MoveTables workflows which contain a table name or a column which has special characters (like
ö
orü
) are currently failing. While tracking down the issue it turned out that the target table/column names are being generated with incorrect character mappings.Root Cause
VReplication uses the
tabletmanager
sApplySchema
RPC to copy over the schemas from the source to the target.It turns out that
ApplySchema
executes the actual ddl using the mysql CLI in themysqlctl
package!! It is not clear why we are following this approach instead of directly creating it in the tablet like howOnlineDDL
does it, for example: this code was added way back ~2016. It is possible this is legacy and can be refactored out.This PR sets the default character set in the extra config that is passed on to the CLI (
--default-character-set=utf8mb4
) command line argument. An existing e2e test has been updated to use special characters in both table and column names. It was failing before this change and passes with the change.Related Issue(s)
Checklist