我从创建了一个BigQuery表。我使用以下选项:gs://my_bucket/*..csv
Google Cloud Storage URIs begin with "gs://" and specify the bucket and object you want to load.
Example: gs://mybucket/path/to/mydata.csv
You can use a wildcard to load multiple files, for example gs://mybucket/path/to/my*
我的桶包含多个CSV文件。
每次我添加
我是GCP的新手,我可以从我的VM中获得一个文件到GCS,然后将它传输到bigquery。如何将多个文件从GCS传输到Bigquery。我知道通配符URi是它的解决方案,但是在下面的代码中还需要进行哪些其他更改?
def hello_gcs(event, context):
from google.cloud import bigquery
# Construct a BigQuery client object.
client = bigquery.Client()
# TODO(developer): Set table_id to the ID of t