如何将多个文件(相同模式)加载到BigQuery中的表中? [英] How to load multiple files (same schema) into a table in BigQuery?

查看:158
本文介绍了如何将多个文件(相同模式)加载到BigQuery中的表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个csv文件的文件夹,它具有与我想要加载到bigquery表中相同的模式。

是否有一个选项可以将文件夹路径作为BQ命令的输入加载到bigquery表中?我很想知道是否可以在不迭代文件或合并源文件中的输入文件的情况下完成。

如果使用云存储是一种选择,则可以将它们全部放在存储桶中的通用前缀中,并使用通配符,例如 gs:// my_bucket / some / path / files * 可快速指定具有多个输入的单个加载作业。


I have a folder of csv files with the same schema that I want to load into a bigquery table.

Is there an option to give folder path as the input to BQ command to load into bigquery table? I'm interested to know if it can be done without iterating over the files or merging the input files at the source.

解决方案

If using cloud storage is an option, you can put them all in a common prefix in a bucket and use a wildcard e.g. gs://my_bucket/some/path/files* to specify a single load job with multiple inputs quickly.

这篇关于如何将多个文件(相同模式)加载到BigQuery中的表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆