I am trying to transfer some files to BigQuery which are stored in my VM Instances. Normally we do a two steps process:
Now, I want to take files directly from VM Instances to BigQuery platform. Is there any way to do it?
You can load data directly from a readable data source (such as your local machine) by using:
Please, follow the official documentation to see examples of using each way.
Moreover, if you want to stay with idea of sending your files to Cloud Storage bucket, you can think about using Dataflow templates:
which allows you to read text files stored in Cloud Storage, transform them using a JavaScript User Defined Function (UDF) that you provide, and output the result to BigQuery.It is automated solution.
I hope you find the above pieces of information useful.
The solution would be to use bq command for this. The command would be like this: bq load --autodetect --source_format=CSV xy abc.csv
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.