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

前端 未结 3 717
野性不改
野性不改 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` 
    
    0 讨论(0)
  • 2021-01-12 02:04

    In Web UI - click Show Options button and than select your location for "Processing Location"!

    Specify the location in which the query will execute. Queries that run in a specific location may only reference data in that location. For data in US/EU, you may choose Unspecified to run the query in the location where the data resides. For data in other locations, you must specify the query location explicitly.


    Update

    As it stated above - Queries that run in a specific location may only reference data in that location

    Assuming that censys-io.domain_public dataset has its data in US - you need to specify US for Processing Location

    0 讨论(0)
  • 2021-01-12 02:06

    The problem turned out to be due to wrong table name in the FROM clause. The right FROM clause should be:

    FROM `censys-io.domain_public.current`
    

    While I was typing:

    FROM domain_public.current
    

    So the project name is required in the FROM and `` are required because of - in the project name.

    0 讨论(0)
提交回复
热议问题