Skip to main content
Feedback

BigQuery datatype mapping

The data types from BigQuery are aligned with the corresponding Data Integration data types during the data extraction process. In cases where a specific data type is not compatible, it is converted and assigned as a String type.

The table illustrates the correlation between BigQuery data types and the equivalent types compatible with Data Integration:

BigQuery DatatypeData Integration Mapping TypeBigQuery's Casting in Multi-Tables River ModeBigQuery's Casting in Custom Query River Mode
ARRAYSTRINGTO_JSON_STRINGTO_JSON_STRING
BIGNUMERICFLOAT
BOOLINTEGERINTEGERINTEGER
BYTESSTRINGTO_JSON_STRING
DATETIMEDATETIMEFORMAT_TIMESTAMP("%Y-%m-%d %H:%M:%E6S)FORMAT_TIMESTAMP("%Y-%m-%d %H:%M:%E6S)
DATEDATE
FLOAT64FLOAT
INT64INTEGER
NUMERICFLOAT
RECORDSTRINGTO_JSON_STRING
STRINGSTRINGTO_JSON_STRING
STRUCTSTRINGTO_JSON_STRING
TIMESTAMPTIMESTAMPFORMAT_TIMESTAMP("%Y-%m-%d %H:%M:%E6S)FORMAT_TIMESTAMP("%Y-%m-%d %H:%M:%E6S)
TIMETIME
GEOGRAPHYSTRINGST_ASGEOJSONTO_JSON_STRING
JSONSTRINGTO_JSON_STRINGTO_JSON_STRING
INTERVALSTRINGTO_JSON_STRINGTO_JSON_STRING