【问题标题】:What causes `Failure to read the spreadsheet` errors in BigQuery tables that are created from Google Sheets?是什么导致从 Google 表格创建的 BigQuery 表中出现“无法读取电子表格”错误?
【发布时间】:2019-11-29 21:16:20
【问题描述】:

我有一个正在运行的数据库表,它引用了一个从 Google 工作表创建的表。有时这个查询会运行,而其他时候我会看到错误

读取数据时出错,错误消息:无法读取电子表格。错误:截止日期=118.95772243s

如何使从此表中的查询更可靠?

【问题讨论】:

    标签: google-sheets google-bigquery


    【解决方案1】:

    documentation for external data sources 中所述,Google 表格可能存在一些延迟,因为数据不会持久保存到 BigQuery,这就是查询运行不一致的原因。如同一文档中所述,建议执行以下选项:

    1) 将 Google 表格 CSV 存储在 Google Cloud Storage 中。

    2)Load the data into BigQuery

    注意:目前不支持从 Google Drive 将数据加载到 BigQuery,因此需要上面的步骤“1”才能将 Google Sheets 数据加载到 BigQuery..

    此外,您还可以使用Google Cloud Composer 安排上述步骤。 Here 是如何使用 Cloud Composer 从 Google Cloud Storage 传输到 BigQuery 表的示例。

    【讨论】:

      猜你喜欢
      • 2018-08-23
      • 1970-01-01
      • 1970-01-01
      • 2019-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多