Skip to content

Commit 3f41ba5

Browse files
adding dbt dependencies
1 parent a4df6ca commit 3f41ba5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

card_data/pipelines/defs/load/load_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def load_series_data() -> None:
2626
print(colored(" ✖", "red"), "Error:", e)
2727

2828

29-
@dg.asset(deps=[load_series_data], kinds={"Soda"})
30-
def data_quality_check() -> None:
29+
@dg.asset(deps=[load_series_data], kinds={"Soda"}, key_prefix=["staging"], name="series")
30+
def data_quality_check_on_series() -> None:
3131
# Set working directory to where this file is located
3232
current_file_dir = Path(__file__).parent
3333
print(f"Setting cwd to: {current_file_dir}")
@@ -54,7 +54,7 @@ def data_quality_check() -> None:
5454
print(result.stderr)
5555

5656

57-
@dg.asset(deps=[extract_set_data], kinds={"Supabase", "Postgres"})
57+
@dg.asset(deps=[extract_set_data], kinds={"Supabase", "Postgres"}, key_prefix=["staging"], name="sets")
5858
def load_set_data() -> None:
5959
database_url: str = fetch_secret()
6060
table_name: str = "staging.sets"
@@ -69,7 +69,7 @@ def load_set_data() -> None:
6969
print(colored(" ✖", "red"), "Error:", e)
7070

7171

72-
@dg.asset(deps=[create_card_dataframe], kinds={"Supabase", "Postgres"})
72+
@dg.asset(deps=[create_card_dataframe], kinds={"Supabase", "Postgres"}, key_prefix=["staging"], name="cards")
7373
def load_card_data() -> None:
7474
database_url: str = fetch_secret()
7575
table_name: str = "staging.cards"

0 commit comments

Comments
 (0)