简体   繁体   English

从GCS导入XLS文件到BigQuery

[英]Import XLS file from GCS to BigQuery

I have some .xls datas in my Google Cloud Storage and want to use airflow to store it to GCP. 我的Google Cloud Storage中有一些.xls数据,并希望使用气流将其存储到GCP。 Can I export it directly to BigQuery or can i use additional library (such a pandas and xlrd) to convert the files and store it into BigQuery? 我可以将其直接导出到BigQuery还是可以使用其他库(例如pandas和xlrd)转换文件并将其存储到BigQuery中? Thanks 谢谢

Bigquery don't support xls format. Bigquery不支持xls格式。 The easiest way is to transform the file in CSV and to load it into big query. 最简单的方法是将文件转换为CSV并将其加载到大查询中。 However, I don't know your xls format. 但是,我不知道您的xls格式。 If it's multisheet you have to work on the file. 如果是多页纸,则必须处理文件。

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

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