I have gathered everything , I think a person should know about BigQuery.
The presentation was built based on real needs for organized knowledge sharing .
I hope this proved useful to other people as well, let me know if you have question or comments.
some FAQ’s will updated here on this post from time to time
How to create a table in BigQuery with Partitioning and clustering via DDL command?
The following code snippet is the answer, however, be very careful about what you choose as cluster fields as this may cause unintended performance and costs penalties
CREATE TABLE my_dataset.new_clustered_table ( date DATE, field_a STRING, field_b STRING, field_c STRING, field_d STRING, field_e STRING ) PARTITION BY date CLUSTER BY field_a, field_b OPTIONS ( description="a_table clustered_by_two_fields" )
this BigQuery create table example is also committed in your github
some relevant docs:
How to do something like show create table in BigQuery?
the short answer: you cant. The good news: there is a work around.
SELECT * FROM `myProjecId1234.MyDataSet.Table_Schema` where table_schema ='MyDataSet' and table_name ='MyTable'
The example is also committed in our GitHub
A good read about BigQuery implementation in Twitter:
I put a lot of thoughts into these blogs, so I could share the information in a clear and useful way. If you have any comments, thoughts, questions, or you need someone to consult with, feel free to contact me: