From 9e6b3d8a8d688b2ca5a12cfb57f70e55f077378c Mon Sep 17 00:00:00 2001 From: Jonathon Belotti Date: Tue, 1 Aug 2023 21:07:01 -0400 Subject: [PATCH] fix DBT example metadata (#386) --- 10_integrations/dbt/dbt_duckdb.py | 8 ++++--- 10_integrations/dbt/dbt_sqlite.py | 40 +++++++++++++++---------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/10_integrations/dbt/dbt_duckdb.py b/10_integrations/dbt/dbt_duckdb.py index c78d135bf..78ae82b53 100644 --- a/10_integrations/dbt/dbt_duckdb.py +++ b/10_integrations/dbt/dbt_duckdb.py @@ -1,5 +1,5 @@ # --- -# cmd: ["modal", "run", "dbt_duckdb.py::run", "--command", "run"] +# cmd: ["modal", "run", "10_integrations/dbt/dbt_duckdb.py::run", "--command", "run"] # --- # # This example contains a minimal but capable cloud data warehouse. @@ -81,8 +81,10 @@ # { # "Action": "s3:*", # "Effect": "Allow", -# "arn:aws:s3:::modal-example-dbt-duckdb-s3/*", -# "arn:aws:s3:::modal-example-dbt-duckdb-s3" +# "Resource": [ +# "arn:aws:s3:::modal-example-dbt-duckdb-s3/*", +# "arn:aws:s3:::modal-example-dbt-duckdb-s3" +# ], # "Sid": "duckdbs3access" # } # ], diff --git a/10_integrations/dbt/dbt_sqlite.py b/10_integrations/dbt/dbt_sqlite.py index c3438d24e..99b11d492 100644 --- a/10_integrations/dbt/dbt_sqlite.py +++ b/10_integrations/dbt/dbt_sqlite.py @@ -1,28 +1,26 @@ # --- -# lambda-test: false # cmd: ["modal", "run", "10_integrations.dbt.dbt_sqlite::run"] # --- +# +# This is a simple demonstration of how to run a dbt-core project on Modal +# using the dbt-sqlite adapter. +# +# The underlying DBT data and models are from https://docs.getdbt.com/docs/get-started/getting-started-dbt-core +# To run this example, first run the meltano example in 10_integrations/meltano to load the required data +# into sqlite. +# +# **Run this example:** +# +# ``` +# modal run dbt_sqlite.py::stub.run +# ``` +# +# **Launch an interactive sqlite3 shell on the output database:** +# +# ``` +# modal run dbt_sqlite.py::stub.explore +# ``` -""" -This is a simple demonstration of how to run a dbt-core project on Modal -using the dbt-sqlite adapter. - -The underlying DBT data and models are from https://docs.getdbt.com/docs/get-started/getting-started-dbt-core -To run this example, first run the meltano example in 10_integrations/meltano to load the required data -into sqlite. - -**Run this example:** - -``` -modal run dbt_sqlite.py::stub.run -``` - -**Launch an interactive sqlite3 shell on the output database:** - -``` -modal run dbt_sqlite.py::stub.explore -``` -""" import os import subprocess