All Products
Search
Document Center

OpenSearch:Mapping field types to database table field types

Last Updated:Apr 01, 2026

The following tables map OpenSearch Retrieval Engine Edition field types to the corresponding field types in MaxCompute and ApsaraDB RDS for MySQL. Use these mappings when you configure a data source.

Mappings between OpenSearch field types and MaxCompute field types

Important

MaxCompute data sources support only five data types: STRING, BOOLEAN, DOUBLE, BIGINT, and DATETIME.

For multi-value fields of integer, float, and double types, use a string type (VARCHAR or STRING) in MaxCompute and separate each value with "\x1D" ('^]').
OpenSearch Retrieval Engine Edition field typeMaxCompute field type
TEXTString types such as VARCHAR and STRING
STRINGString types such as VARCHAR and STRING
INT8Single-value field: TINYINT. Multi-value field: string types such as VARCHAR and STRING
UINT8Single-value field: TINYINT. Multi-value field: string types such as VARCHAR and STRING
INT16Single-value field: TINYINT and SMALLINT. Multi-value field: string types such as VARCHAR and STRING
UINT16Single-value field: TINYINT and SMALLINT. Multi-value field: string types such as VARCHAR and STRING
INTEGERSingle-value field: TINYINT, SMALLINT, and INT. Multi-value field: string types such as VARCHAR and STRING
UINT32Single-value field: TINYINT, SMALLINT, and INT. Multi-value field: string types such as VARCHAR and STRING
INT64Single-value field: TINYINT, SMALLINT, INT, and BIGINT. Multi-value field: string types such as VARCHAR and STRING
UINT64Single-value field: TINYINT, SMALLINT, INT, and BIGINT. Multi-value field: string types such as VARCHAR and STRING
FLOATSingle-value field: FLOAT and INT (integer values must be within the value range of FLOAT). Multi-value field: string types such as VARCHAR and STRING
DOUBLESingle-value field: DOUBLE, FLOAT, and INT. Multi-value field: string types such as VARCHAR and STRING
LOCATIONString types such as VARCHAR and STRING
LINEString types such as VARCHAR and STRING
POLYGONString types such as VARCHAR and STRING
DATEDATE
TIMEString types such as VARCHAR and STRING
TIMESTAMPDATETIME and TIMESTAMP

Mappings between OpenSearch field types and ApsaraDB RDS for MySQL field types

For multi-value fields of integer, float, and double types, use a string type (VARCHAR or STRING) in ApsaraDB RDS and separate each value with "\x1D" ('^]').
OpenSearch Retrieval Engine Edition field typeApsaraDB RDS for MySQL field type
TEXTString types such as VARCHAR
STRINGString types such as VARCHAR
INT8Single-value field: TINYINT. Multi-value field: string types such as VARCHAR and STRING
UINT8Single-value field: TINYINT. Multi-value field: string types such as VARCHAR and STRING
INT16Single-value field: TINYINT and SMALLINT. Multi-value field: string types such as VARCHAR and STRING
UINT16Single-value field: TINYINT and SMALLINT. Multi-value field: string types such as VARCHAR and STRING
INTEGERSingle-value field: TINYINT, SMALLINT, and INTEGER. Multi-value field: string types such as VARCHAR and STRING
UINT32Single-value field: TINYINT, SMALLINT, and INTEGER. Multi-value field: string types such as VARCHAR and STRING
INT64Single-value field: TINYINT, SMALLINT, INTEGER, and BIGINT. Multi-value field: string types such as VARCHAR and STRING
UINT64Single-value field: TINYINT, SMALLINT, INTEGER, and BIGINT. Multi-value field: string types such as VARCHAR and STRING
FLOATSingle-value field: FLOAT, NUMERIC, and INTEGER (integer values must be within the value range of FLOAT). Multi-value field: string types such as VARCHAR and STRING
DOUBLESingle-value field: DOUBLE, NUMERIC, FLOAT, and INTEGER. Multi-value field: string types such as VARCHAR and STRING
LOCATIONString types such as VARCHAR and STRING
LINEString types such as VARCHAR and STRING
POLYGONString types such as VARCHAR and STRING
DATEDATE
TIMETIME
TIMESTAMPDATETIME and TIMESTAMP