Database Ingestion and Replication > Default data-type mappings > PostgreSQL Source and Google BigQuery Target
  

PostgreSQL Source and Google BigQuery Target

The following table identifies the recommended data-type mappings for Database Ingestion and Replication configurations with a PostgreSQL source and a Google BigQuery target:
PostgreSQL Source Data Type
Google BigQuery Target Data Type
bigint
int64
bit varying(precision), 1 <= p <= 83886080
bytes
bit(precision), 1 <= p <= 83886080
bytes
boolean
bool
box
bytes
character varying(size), 1 <= size <= 10485760
string
character(size), 1 <= size <= 10485760
string
cidr
string
circle
bytes
date
date
daterange
string
double precision
float64
inet
string
int4range
string
int8range
string
integer
int64
json
string
jsonb
string
line
bytes
lseg
bytes
macaddr
string
macaddr8
string
money
numeric
numeric
string
numeric(1,1)
numeric
numeric(10,10)
bignumeric
numeric(11,s), 10 <= s <= 11
bignumeric
numeric(12,s), 10 <= s <= 12
bignumeric
numeric(13,s), 10 <= s <= 13
bignumeric
numeric(14,s), 10 <= s <= 14
bignumeric
numeric(15,s), 10 <= s <= 15
bignumeric
numeric(16,s), 10 <= s <= 16
bignumeric
numeric(17,s), 10 <= s <= 17
bignumeric
numeric(18,s), 10 <= s <= 18
bignumeric
numeric(19,s), 10 <= s <= 19
bignumeric
numeric(2,s), 1 <= s <= 2
numeric
numeric(20,s), 10 <= s <= 20
bignumeric
numeric(21,s), 10 <= s <= 21
bignumeric
numeric(22,s), 10 <= s <= 22
bignumeric
numeric(23,s), 10 <= s <= 23
bignumeric
numeric(24,s), 10 <= s <= 24
bignumeric
numeric(25,s), 10 <= s <= 25
bignumeric
numeric(26,s), 10 <= s <= 26
bignumeric
numeric(27,s), 10 <= s <= 27
bignumeric
numeric(28,s), 10 <= s <= 28
bignumeric
numeric(3,s), 1 <= s <= 3
numeric
numeric(38,s), 10 <= s <= 38
bignumeric
numeric(4,s), 1 <= s <= 4
numeric
numeric(5,s), 1 <= s <= 5
numeric
numeric(6,s), 1 <= s <= 6
numeric
numeric(7,s), 1 <= s <= 7
numeric
numeric(8,s), 1 <= s <= 8
numeric
numeric(precision), 1 <= p <= 18
int64
numeric(p,s), 19 <= p <= 29, 0 <= s <= 9
numeric
numeric(p,s), 29 <= p <= 30, 10 <= s <= 29
bignumeric
numeric(p,s), 30 <= p <= 31, 1 <= s <= 30
bignumeric
numeric(p,s), 31 <= p <= 32, 1 <= s <= 31
bignumeric
numeric(p,s), 32 <= p <= 33, 1 <= s <= 32
bignumeric
numeric(p,s), 33 <= p <= 34, 1 <= s <= 33
bignumeric
numeric(p,s), 34 <= p <= 35, 1 <= s <= 34
bignumeric
numeric(p,s), 35 <= p <= 36, 1 <= s <= 35
bignumeric
numeric(p,s), 36 <= p <= 37, 1 <= s <= 36
bignumeric
numeric(p,s), 37 <= p <= 38, 1 <= s <= 37
bignumeric
numeric(p,s), 39 <= p <= 1000, 39 <= s <= 1000
string
numeric(p,s), 9 <= p <= 38, 1 <= s <= 9
numeric
numrange
string
path
bytes
point
bytes
polygon
bytes
real
float64
smallint
int64
time(precision) with time zone, 0 <= p <= 6
string
time(precision) without time zone, 0 <= p <= 6
time
timestamp(precision) with time zone, 0 <= p <= 6
timestamp
timestamp(precision) without time zone, 0 <= p <= 6
datetime
tsrange
string
tstzrange
string
uuid
string
xml
string
Limitations
Unsupported source data types
For initial load jobs, Database Ingestion and Replication does not support the following PostgreSQL data types:
For incremental load jobs, Database Ingestion and Replication does not support the following PostgreSQL data types, in addition to those not supported for initial load jobs:
Database ingestion and replication jobs either fail to deploy or propagate nulls for columns that have these data types.