Google bigquery 找不到DBT 404:数据集hello数据管道:在位置EU中找不到staging_benjamin

Google bigquery 找不到DBT 404:数据集hello数据管道:在位置EU中找不到staging_benjamin,google-bigquery,sqldbtype,dbt,Google Bigquery,Sqldbtype,Dbt,在执行“DBT run”时,我得到以下错误 {{ config(materialized='table') }} SELECT customer_id FROM `hello-data-pipeline.adwords.google_ads_campaign_stats` 15:41:51 | 2 of 3 START table model staging_benjamin.yo......................... [RUN] 15:41:51 | 2 of 3 ERROR

在执行“DBT run”时,我得到以下错误

{{ config(materialized='table') }}

SELECT customer_id FROM `hello-data-pipeline.adwords.google_ads_campaign_stats` 
15:41:51 | 2 of 3 START table model staging_benjamin.yo......................... [RUN]
15:41:51 | 2 of 3 ERROR creating table model staging_benjamin.yo................ [ERROR in 
0.32s]
Runtime Error in model yo (models/yo.sql)
404 Not found: Dataset hello-data-pipeline:staging_benjamin was not found in location EU
我要确保我的起始位置包含3个部分

  • 项目(hello数据管道)
  • 数据库(adwords)
  • 一张表格(谷歌广告、活动统计)
但是我得到了以下错误

{{ config(materialized='table') }}

SELECT customer_id FROM `hello-data-pipeline.adwords.google_ads_campaign_stats` 
15:41:51 | 2 of 3 START table model staging_benjamin.yo......................... [RUN]
15:41:51 | 2 of 3 ERROR creating table model staging_benjamin.yo................ [ERROR in 
0.32s]
Runtime Error in model yo (models/yo.sql)
404 Not found: Dataset hello-data-pipeline:staging_benjamin was not found in location EU
注意。在Bigquery编辑器中执行此查询时,Bigquery不会显示任何错误。 NB 2 DBT在脚本编辑器中直接“运行sql”命令时不显示任何错误


我做错了什么?

您可能需要指定运行查询的位置。在特定位置运行的查询只能引用该位置的数据。您可以选择“自动选择”在数据所在的位置运行查询


阅读更多关于我找到的OK的信息。我需要在profile.yml文件中指定位置。 =>


在DBT cloud中,您将在设置项目时找到它

不幸的是,我的所有数据集都已处于“自动选择”状态:/因此您应该检查数据集所在的位置(您可以在UI中根据您的问题访问该位置),然后在代码中显式指定该位置!