📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

Data Pipeline SQL Compatibility for TiDB Cloud Lake



This document describes the DDL, DML, and column type support for TiDB Cloud Data Pipeline when replicating data to TiDB Cloud Lake. Use it to plan your pipeline, validate schema compatibility, or troubleshoot type conversions.

DDL support summary

DDL operationStatusNotes
CREATE TABLE✅
ADD COLUMN✅
ADD COLUMN ... NOT NULL DEFAULT ...✅
DROP COLUMN✅
RENAME COLUMN✅
MODIFY COLUMN⚠️ Partial supportSupported only for the schema-evolution cases listed below. Other conversions are not guaranteed and can block downstream consumption.

Supported MODIFY COLUMN conversions

FromToNotes
VARCHARTEXTCommon widening conversion during schema evolution.
TINYINTINTPromotes integer storage width.
INTBIGINTCommon widening conversion during schema evolution.
INTVARCHAR / TEXTUsed when the target type is converted to a string representation.

DDL operations not listed here are not processed by the pipeline and might block subsequent consumption for the affected table. In addition, combining multiple changes in a single ALTER TABLE statement is not supported.

DML support summary

DML operationStatus
INSERT✅
UPDATE✅
DELETE✅

DML operations not listed here are not propagated to the destination.

Type mapping reference

Integer types

TiDB typeTiDB Cloud Lake type
TINYINTINT8
TINYINT UNSIGNEDUINT8
SMALLINTINT16
SMALLINT UNSIGNEDUINT16
MEDIUMINTINT32
INT / INTEGERINT32
MEDIUMINT UNSIGNED / INT UNSIGNED / INTEGER UNSIGNEDUINT32
BIGINTINT64
BIGINT UNSIGNEDUINT64

Floating-point types

TiDB typeTiDB Cloud Lake type
FLOATFLOAT32
DOUBLE / REALFLOAT64

Exact numeric types

TiDB typeTiDB Cloud Lake typeNotes
DECIMAL(P,S)DECIMAL(P,S)Precision and scale are preserved exactly. The same applies to NUMERIC(P,S).
DECIMAL (no precision)DECIMAL(76,30)Automatically widened to the maximum valid precision to avoid silent truncation.
NUMERIC (no precision)DECIMAL(76,30)Same as above.

Date and time types

TiDB typeTiDB Cloud Lake typeNotes
DATEDATE
DATETIME / DATETIME(n)TIMESTAMPFractional-second precision is supported.
TIMESTAMP / TIMESTAMP(n)TIMESTAMPFractional-second precision is supported.
TIMEVARCHARTiDB Cloud Lake has no standalone TIME type, so it is stored as text.
YEARINT16Mapped as an integer, not a temporal type.

String types

TiDB typeTiDB Cloud Lake typeNotes
CHAR / VARCHARVARCHARLength is not preserved.
TINYTEXT / TEXT / MEDIUMTEXT / LONGTEXTVARCHAR
ENUMVARCHARRequires a content-compatible=true changefeed to preserve the enum text.
SETVARCHARRequires a content-compatible=true changefeed to preserve the element text.

Binary types

TiDB typeTiDB Cloud Lake type
BINARY / VARBINARYBINARY
TINYBLOB / BLOB / MEDIUMBLOB / LONGBLOBBINARY

Other types

TiDB typeTiDB Cloud Lake typeNotes
BOOLEAN / BOOLBOOLEAN
BITUINT64Always mapped as unsigned. All-ones BIT(64) exceeds the signed INT64 range.
JSONVARIANT
Unknown / unlisted typeVARCHARFallback mapping; typed semantics are lost.

Was this page helpful?