简体   繁体   English

Office365 Excel 作为 GCP BigQuery 的源

[英]Office365 Excel as source for GCP BigQuery

We are using Office365 Excel and manually creating some data that we need in BigQuery.我们正在使用 Office365 Excel 并在 BigQuery 中手动创建一些我们需要的数据。 What solution would you create to automatically load the data from this excel to a table in bq?您将创建什么解决方案来自动将此 excel 中的数据加载到 bq 中的表中? We are not allowed to use Google Sheets (which would solve all our problems).我们不允许使用 Google 表格(这将解决我们所有的问题)。

We use Matillion and GCP products.我们使用 Matillion 和 GCP 产品。

I have no idea how to solve this, and I don't find any information about this, so any suggestion or idea is appreciated.我不知道如何解决这个问题,也没有找到任何关于这个的信息,所以任何建议或想法都值得赞赏。

Cheers, Cris干杯,克里斯

You can save your data as csv and then load them to BigQuery.您可以将数据保存为 csv,然后将它们加载到 BigQuery。

Then, you can load data by using one of the following:然后,您可以使用以下方法之一加载数据:

The Google Cloud Console The bq command-line tool's bq load command The API The client libraries Google Cloud Console bq 命令行工具的 bq load 命令 API 客户端库

Here you can find more details Loading data from local files在这里您可以找到更多详细信息 从本地文件加载数据

As a different approach, you can also try this other option: BigQuery: loading excel file作为另一种方法,您还可以尝试其他选项: BigQuery: loading excel file

For this you will need to use Google Drive and federated tables.为此,您需要使用 Google Drive 和联合表。

Basically you will upload your Excel files to Google Drive with the option "Convert uploaded files to Google Docs editor format" checked in your settings, and upload to BigQuery from Google Drive.基本上,您会将 Excel 文件上传到 Google Drive,并在您的设置中选中“将上传的文件转换为 Google Docs 编辑器格式”选项,然后从 Google Drive 上传到 BigQuery。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM