SqlServer 对应 Flink SQL 数据类型映射关系
SQL Server Type | Flink SQL Type |
---|---|
char(n) | CHAR(n) |
varchar(n) | VARCHAR(n) |
nvarchar(n) | VARCHAR(n) |
nchar(n) | VARCHAR(n) |
text | STRING |
ntext | STRING |
xml | STRING |
decimal(p, s) | DECIMAL(p, s) |
money | DECIMAL(p, s) |
smallmoney | DECIMAL(p, s) |
numeric | NUMERIC |
float | DOUBLE |
real | DOUBLE |
bit | BOOLEAN |
int | INT |
tinyint | SMALLINT |
smallint | SMALLINT |
bigint | BIGINT |
date | DATE |
time(n) | TIME(n) |
datetime2 | TIMESTAMP(n) |
datetime | TIMESTAMP(n) |
smalldatetime | TIMESTAMP(n) |
datetimeoffset | TIMESTAMP_LTZ(3) |
Doris 和 Flink 数据类型映射关系
Doris Type | Flink Type |
---|---|
NULL_TYPE | NULL |
BOOLEAN | BOOLEAN |
TINYINT | TINYINT |
SMALLINT | SMALLINT |
INT | INT |
BIGINT | BIGINT |
FLOAT | FLOAT |
DOUBLE | DOUBLE |
DATE | DATE |
DATETIME | TIMESTAMP |
DECIMAL | DECIMAL |
CHAR | STRING |
LARGEINT | STRING |
VARCHAR | STRING |
STRING | STRING |
DECIMALV2 | DECIMAL |
ARRAY | ARRAY |
MAP | MAP |
JSON | STRING |
VARIANT | STRING |
IPV4 | STRING |
IPV6 | STRING |