Reputation: 9
How can I send my google sheet into big query table? I want to sync the contents of the table once a day to Google sheet.
This simply means that I want my big query table to sync with a specific google sheet.
Upvotes: 0
Views: 2381
Reputation: 2391
There are a few problems with trying to "sync" a sheet with big query: (https://cloud.google.com/bigquery/loading-data-into-bigquery)
I suggest you use federated data sources: (https://cloud.google.com/bigquery/federated-data-sources)
Federated data sources allow you to create big query tables backed by a csv. You can either use a google sheet directly, or a csv stored in google cloud storage. Then you don't have to worry about syncing once a day as the data should be eventually consistent on update of your csv.
NOTE: There seems to be a bug when using a google sheet backed table and trying to either save your query as a view or accessing the table from a user that does not have access to the google sheet. It's an access issue that I'm currently trying to figure out. Good luck.
Upvotes: 2