【问题标题】:How do I run some code whenever a BigQuery table is updated?每当更新 BigQuery 表时,如何运行一些代码?
【发布时间】:2019-11-06 11:46:09
【问题描述】:

有什么方法可以在 BigQuery 表更新时运行一些 PySpark 代码?

每当使用 Cloud Functions 将文件上传到 Google Cloud Storage 时,我都会运行类似的东西,但我在 BigQuery 文档中找不到提供类似功能的任何内容。

不胜感激,谢谢!

【问题讨论】:

  • 查看此博客:e-nor.com/blog/bigquery/…
  • BigQuery 中不支持调用 Cloud Functions 或向 Pub/Sub 发送事件。就像上面提到的评论(通过博客文章)一样,您需要通过 Stackdriver 连接到 BigQuery 的事件。这是关于它的另一个资源/博客。 免责声明:我写的。 polleyg.dev/posts/bigquery-new-tables-dlp

标签: python google-cloud-platform google-bigquery google-cloud-functions


【解决方案1】:

目前没有适用于 Google Cloud Functions 的 BigQuery 触发器,但此功能目前正在进行中,应该很快就会推出(截至 2019 年 6 月)。

【讨论】:

    猜你喜欢
    • 2011-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-21
    • 1970-01-01
    相关资源
    最近更新 更多