Data Type Conversion
When data of GaussDB(for MySQL) instances is synchronized to HTAP instances, the data type will be converted. For details, see Table 1.
Data Type |
GaussDB(for MySQL) Data Type |
HTAP Data Type |
NUMERTIC TYPES |
TINYINT |
Int8 |
SMALLINT |
Int16 |
|
MEDIUMINT |
Int32 |
|
INTEGER/INT |
Int32 |
|
BIGINT |
Int64 |
|
DECIMAL/NEMERIC |
Decimal |
|
FLOAT |
Float32 |
|
DOUBLE |
Float64 |
|
BIT |
UInt64 |
|
DATE TIME TYPES |
DATE |
Date |
DATETIME |
DateTime |
|
TIMESTAMP |
DateTime |
|
TIME |
String |
|
YEAR |
UInt16 |
|
String Data Types |
CHAR |
String |
VARCHAR |
String |
|
BINARY |
FixedString |
|
VARBINARY |
String |
|
BLOB |
String |
|
TEXT |
String |
|
ENUM |
Enum |
|
SET |
SET index |
|
Spatial Data Types |
GEOMETRY |
String |
POINT |
String |
|
LINESTRING |
String |
|
POLYGON |
String |
|
MULTIPOINT |
String |
|
MULTILINESTRING |
String |
|
MULTIPOLYGON |
String |
|
GEOMETRYCOLLECTION |
String |
|
JSON Data Types |
JSON |
String |
Feedback
Was this page helpful?
Provide feedbackThank 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