Mapping Between MySQL and LakeFormation Field Types
DataArts Migration converts the source field type to the destination field type based on the default rule, and creates tables and synchronizes data in real time.
Field Type Mapping Rules
The following table lists the field types supported by a job that migrates data from MySQL to LakeFormation.
| Type | Source Data Type (MySQL) | Destination Data Type | Description |
|---|---|---|---|
| String | CHAR(M) | STRING | - |
| VARCHAR(M) | STRING | - | |
| Numeric | BOOLEAN | BOOLEAN | - |
| TINYINT | INT | By default, TINYINT(1) is converted to BOOLEAN. If you want to keep it as TINYINT(1), add the following attribute to the MySQL data connection in Management Center: tinyInt1isBit = false | |
| TINYINT UNSIGNED | INT | - | |
| SMALLINT | INT | - | |
| SMALLINT UNSIGNED | INT | - | |
| MEDIUMINT | INT | - | |
| MEDIUMINT UNSIGNED | LONG | - | |
| INT | INT | - | |
| INT UNSIGNED | LONG | - | |
| BIGINT | LONG | - | |
| BIGINT UNSIGNED | DECIMAL(38,0) | - | |
| REAL | DOUBLE | - | |
| DECIMAL(M,D) | DECIMAL(M,D) | - | |
| NUMERIC | DECIMAL(M,D) | - | |
| FLOAT | FLOAT | - | |
| DOUBLE | DOUBLE | - | |
| DOUBLE PRECISION | DOUBLE | - | |
| Bit | BIT(M) | BOOLEAN | - |
| Date and time | DATE | DATE | - |
| TIME | STRING | - | |
| DATETIME | TIMESTAMP | - | |
| TIMESTAMP | STRING | MySQL timstamps contain time zone information. LakeFormation does not support types with time zones. | |
| YEAR(M) | STRING | - | |
| Multimedia (binary) | BINARY(M) | BINARY | - |
| VARBINARY(M) | BINARY | - | |
| TEXT | STING | - | |
| TINYTEXT | STING | - | |
| MEDIUMTEXT | STING | - | |
| LONGTEXT | STING | - | |
| BLOB | BINARY | - | |
| TINYBLOB | BINARY | - | |
| MEDIUMBLOB | BINARY | - | |
| LONGBLOB | BINARY | A maximum of 4 GB data can be stored, which is not supported currently. | |
| Special types | SET | STRING | - |
| JSON | STRING | - | |
| ENUM | STRING | - |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot