-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
importccl: enable importing MySQL BIT columns #32561
Comments
…chdb#32561 for unimplemented types Release note: None
…chdb#32561 for unimplemented types Release note: None
…chdb#32561 for unimplemented types Release note: None
The error message on this is also misspelled: This should be simple to automatically map to a 64-bit integer. I'm adding |
@rolandcrosby can I pick this up? |
@devdil you can give it a try |
With IMPORT MYSQLDUMP being deprecated: #93660 and Schema Conversion Tool being better for schema migrations this is no longer needed and can now be closed. |
Release note (sql change): Support importing MySQL BIT columns as CockroachDB 64-bit integers. The user no longer needs to perform this cast before importing MySQL data. Previously, importing MySQL BIT type columns was unsupported. This was being indicated with an error and a hint suggesting that the user should cast to a 64-bit integer before starting the import process. To address this, the imported MySQL BIT type is no longer being rejected and is instead being read as a 64-bit integer. Addresses cockroachdb#32561.
Release note (performance improvement): Import MySQL BIT(1) column as a Boolean, rather than as a 64-bit integer. This special case consumes 1 byte rather than the minimum value of 2 bytes. Previously, MySQL BIT(1) columns were being inserted as a 64-bit integer regardless of bit length, which is more bits than needed to represent MySQL BIT(1). To address this, the BIT length is being considered before importing a MySQL BIT column. If the BIT length is of 1, the value is imported as a Boolean; otherwise, as a 64-bit integer (as in the previous case). Build on cockroachdb#32561.
https://dev.mysql.com/doc/refman/5.7/en/bit-type.html
Under the hood MySQL's BIT is really just a 64-bit integer and behaves as such with regards to arithmetic.
This is very different from postgres' BIT type (a bit array of arbitrary length with special operators).
This type can be imported into CockroachDB as an integer.
Epic CRDB-8825
Jira issue: CRDB-4730
The text was updated successfully, but these errors were encountered: