-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get sqlmesh started without a default project ID (#2093)
* We should load the GCP project ID from .env * Adds a README for how to get started with sqlmesh
- Loading branch information
Showing
4 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# OSO sqlmesh pipeline | ||
|
||
## Setup | ||
|
||
Make sure to set the following environment variables | ||
in your .env file (at the root of the oso repo) | ||
|
||
``` | ||
GOOGLE_PROJECT_ID=opensource-observer | ||
SQLMESH_DUCKDB_LOCAL_PATH=/tmp/oso.duckdb | ||
``` | ||
|
||
Make sure you've logged into Google Cloud on your terminal | ||
|
||
```bash | ||
gcloud auth application-default login | ||
``` | ||
|
||
Now install dependencies and download playground data into | ||
a local DuckDB instance. | ||
|
||
```bash | ||
poetry install | ||
poetry shell | ||
oso metrics local initialize | ||
``` | ||
|
||
## Run | ||
|
||
```bash | ||
cd warehouse/metrics_mesh | ||
sqlmesh plan dev --start 2024-07-01 --end 2024-08-01 # to run for specific date rates (fast) | ||
sqlmesh plan # to run the entire pipeline (slow) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters