How to configure your Bigquery warehouse
Run the following command to install the connector from the root of your project:
The sources files must be inside the queries/
folder.
To know how the source hierarchy works, please, visit How to configure sources.
To configure the connection with your Bigquery database follow these steps:
Create the source `.yaml` file within the `queries` folder if you haven't already
/queries/source.yml
Add the following code for your Bigquery connection
Replace the details section with your info and save
Done, now you can test your connection
gcloud auth print-access-token
For authentication, you’ll either have to choose the Credentials
or Token
approach. In case both are defined, Credentials approach takes preference.
To test the connection you can:
.sql
in the queries
directory that points to a table of your new connection in the FROM
clause. See the section SQL Syntax Basics to learn more.latitude run query_file_name
where query_file_name
is the name of your .sql
file. This will display the results in your terminal. See the section Running queries to learn more about how to query your data.