Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Load csv without any header and later assign header from separate file.

Hi

I have a big csv loaded in GCS (~143GB) but it does not have any header row (csv has only the data). I have the header file separately in GCS (as well as on my local machine). 

Is there a way that I can load this csv (from GCS) as  a table in BigQuery and get the column names from the header file that is also there in GCS separately? 

Or how can I provide manual schema in Bigquery when I create the table? 

P.S. : My data has 900 columns so I cannot type in everything. It has to be either copy-paste or directly reading from the file. 

0 1 2,809
1 REPLY 1