【问题标题】:BigQuery : export table not setting Content-Encoding to gzip in GCSBigQuery:导出表未在 GCS 中将 Content-Encoding 设置为 gzip
【发布时间】:2016-11-23 10:49:11
【问题描述】:

从 BigQuery 导出压缩文件时,导出到 Cloud Storage Content-Encoding 的文件未设置为 gzip 是正常的吗?

除了手动设置之外,还有其他解决方法吗?

【问题讨论】:

    标签: export google-bigquery google-cloud-storage


    【解决方案1】:

    默认情况下,您不是“导出压缩文件”,而只是“导出文件”。该对话框称为“导出到 Google Cloud Storage”。 如您所说,您可以手动指定它通过 UI 进行压缩。

    如果您不想在 UI 中进行设置,也可以通过命令行导出: https://cloud.google.com/bigquery/docs/exporting-data

    这是一个例子: bq extract --compression=GZIP 'bigquery-public-data:samples.shakespeare' gs://example-bucket/shakespeare.zip

    【讨论】:

      猜你喜欢
      • 2018-12-27
      • 2016-08-27
      • 2017-09-21
      • 1970-01-01
      • 2012-07-19
      • 1970-01-01
      • 2023-03-14
      • 1970-01-01
      • 2018-11-18
      相关资源
      最近更新 更多