Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google BigQuery Date Data Type?

Is there a date or datetime data type in Google BigQuery? I looked at the online documentation, but the data types mentioned didn't include any date types

like image 977
Lloyd Banks Avatar asked Aug 31 '12 17:08

Lloyd Banks


2 Answers

2013 update:

BigQuery now has a Timestamp type.

Look at: BigQuery datatypes

2018: TIMESTAMP, TIME, DATE, DATETIME

like image 174
Felipe Hoffa Avatar answered Sep 28 '22 08:09

Felipe Hoffa


2016 update:

BigQuery now also has real DATE type (in addition to TIMESTAMP type) in standard SQL:

https://cloud.google.com/bigquery/sql-reference/data-types#date-type https://cloud.google.com/bigquery/sql-reference/functions-and-operators#date

like image 23
Mosha Pasumansky Avatar answered Sep 28 '22 09:09

Mosha Pasumansky