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

[MySQL] DOUBLE UNSIGNED and FLOAT UNSIGNED datatypes are not supported #1607

Open
shubham-yb opened this issue Jul 2, 2024 · 0 comments
Open
Labels
triage Needs to be triaged

Comments

@shubham-yb
Copy link
Contributor

If the schema has a table with a DOUBLE UNSIGNED or FLOAT UNSIGNED column, those are not converted by Voyager to YB relevant syntax and thus get errored out during import. These datatypes are deprecated as of MySQL 8.0.17

Workaround: Manually change the exported schema to the closest YB supported syntax.

Example:

MySQL source:

create table test(
                  id int, 
                  n double unsigned, 
                  f float unsigned
);

Exported Schema:

CREATE TABLE test (
        id bigint,
        n DOUBLE UNSIGNED,
        f FLOAT UNSIGNED
);

Suggested Changes:

Change to YB compatible syntax closest to the respective datatypes.

CREATE TABLE test (
        id bigint,
        n DOUBLE PRECISION CHECK (n >= 0),
        f REAL CHECK (f >= 0)
);

@github-actions github-actions bot added the triage Needs to be triaged label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant