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
BigQuery can't find your data
Make sure your FROM
location contains 3 parts
bigquery-public-data
)hacker_news
)stories
)Like so
`bigquery-public-data.hacker_news.stories`
*note the backticks
Wrong
SELECT *
FROM `stories`
Wrong
SELECT *
FROM `hacker_news.stories`
Correct
SELECT *
FROM `bigquery-public-data.hacker_news.stories`
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
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.