Help Center/ DataArts Studio/ FAQs/ DataArts Migration (Real-Time Jobs)/ How Do I Handle Source tinyint(1) Fields During Real-Time Data Synchronization from MySQL to Doris?
Updated on 2025-08-05 GMT+08:00

How Do I Handle Source tinyint(1) Fields During Real-Time Data Synchronization from MySQL to Doris?

Symptom

In a real-time job for migrating data from MySQL to Doris, source tinyint(1) fields are automatically converted to boolean fields during automatic table creation. When a value other than 0 or 1 is inserted into such fields, an error will occur.

Possible Causes

Source tinyint(1) fields are converted to fields of an inappropriate type during automatic table creation.

Solution

Add attribute tinyInt1isBit to the MySQL data connection and set its value to false. In this way, source tinyint(1) fields can be converted to fields of a type that fits the destination.