Error: Not found: Dataset my-project-name:domain_public was not found in location US

前端 未结 3 719
野性不改
野性不改 2021-01-12 01:42

I need to make a query for a dataset provided by a public project. I created my own project and added their dataset to my project. There is a table named: domain_publi

3条回答
  •  暖寄归人
    2021-01-12 01:50

    BigQuery can't find your data

    How to fix it

    Make sure your FROM location contains 3 parts

    1. A project (e.g. bigquery-public-data)
    2. A database (e.g. hacker_news)
    3. A table (e.g. stories)

    Like so

    `bigquery-public-data.hacker_news.stories`
    

    *note the backticks

    Examples

    Wrong

    SELECT *
    FROM `stories`
    

    Wrong

    SELECT *
    FROM `hacker_news.stories` 
    

    Correct

    SELECT *
    FROM `bigquery-public-data.hacker_news.stories` 
    

提交回复
热议问题