Database Ingestion and Replication > Default data-type mappings > Db2 for LUW Source and Databricks Target
  

Db2 for LUW Source and Databricks Target

The following table identifies the recommended data-type mappings for Database Ingestion and Replication configurations with a Db2 for Linux, UNIX, and Windows (LUW) source and a Databricks target:
Db2 for LUW Source Data Type
Databricks Target Data Type
bigint
long
binary(size), 1 <= size <= 255
binary
boolean
boolean
char for bit data
binary
char(size) for bit data, 2 <= size <= 255
binary
character(size), 1 <= size <= 255
string
date
string
decfloat(precision), 16 <= p <= 34
string
decimal(p,s), 1 <= p <= 31, 0 <= s <= 31
decimal(p,s), 1 <= p <= 31, 0 <= s <= 31
double
double
integer
integer
long varchar
string
long varchar for bit data
binary
real
float
smallint
integer
time
string
timestamp(precision), 0 <= p <= 6
timestamp
timestamp(precision), 7 <= p <= 12
string
varbinary(size), 1 <= size <= 32672
binary
varchar(size) for bit data, 1 <= size <= 32672
binary
varchar(size), 1 <= size <= 32672
string