BigQuery Data Types

I start with a new project and just want to check before defining a table schema

Does BigQuery support anything but:

string – integerfloat– boolean – 
+6
source share
3 answers

BigQuery datatype white papers:


The previous answer lists the main data types:

  • LINE
  • INTEGER
  • Float
  • BOOLEAN

BigQuery also supports:

  • RECORD (JSON objects, see nested entries)
  • TIMESTAMP
  • BYTE
  • DATE
  • TIME
  • Datetime

More details:

+19
source

Yes indeed.

 BigQuery Type ICD Type Length Checks INTEGER Integer FLOAT Decimal STRING Text <65536 BOOLEAN Choice "true" or "false", case-insensitive 

https://developers.google.com/bigquery/articles/ingestionbestpractices#cutplace

+3
source

Boolean also supports 1 for true and 0 for false and Timestamp supports UTC or "YYYY-MM-DD HH: MM: SSSS"

+1
source

Source: https://habr.com/ru/post/921673/


All Articles