You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client is looking by default for the dataset in Region US while it is located in a different region.
use google_cloud_bigquery::client::{ClientConfig, Client};
#[tokio::main]
async fn main() {
let (config, project_id) = ClientConfig::new_with_auth().await.unwrap();
let client = Client::new(config).await.unwrap();
run(&client, project_id.as_deref().unwrap_or_default()).await;
}
The error:
thread 'main' panicked at src/main.rs:17:67:
called `Result::unwrap()` on an `Err` value: JobHttp(Response(ErrorResponse { code: 404, errors: Some([ErrorResponseItem { message: "Not found: Dataset PROJECT_ID:DATASET_ID **was not found in location US**", reason: "notFound" }]), message: "Not found: Dataset PROJECT_ID:DATASET_ID was not found in location US" }))
The text was updated successfully, but these errors were encountered:
The dataset is globally unique. So the location does not need to be specified when searching.
if the dataset cannot be found, you will get the error you have described.
Please check if the dataset you specified is available in one of the regions.
How can I set location in the BigQuery client?
The client is looking by default for the dataset in Region US while it is located in a different region.
The error:
The text was updated successfully, but these errors were encountered: