DBT 404 未找到:数据集 hello-data-pipeline:staging_benjamin 在欧盟位置未找到

DBT 404 Not found: Dataset hello-data-pipeline:staging_benjamin was not found in location EU

在执行 "DBT run" 时出现以下错误

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

SELECT customer_id FROM `hello-data-pipeline.adwords.google_ads_campaign_stats` 

我正在确保我的 FROM 位置包含 3 个部分

但是我得到以下错误

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 不会显示任何错误。 当直接在脚本编辑器中 "running sql" 命令

时,NB 2 DBT 不会显示任何错误

我做错了什么?

您可能需要指定查询的位置 运行。 运行 在特定位置的查询只能引用该位置的数据。您可以选择 auto-select 到 运行 数据所在位置的查询。

阅读更多关于 Dataset locations

好的,我找到了。我需要在 profile.yml 文件中指定位置。 => https://docs.getdbt.com/reference/warehouse-profiles/bigquery-profile/#dataset-locations

在DBT云中,您可以在设置项目时找到它