Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data_generator/frankfurter_to_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"account": os.getenv("SNOWFLAKE_ACCOUNT"),
"user": os.getenv("SNOWFLAKE_USER"),
"password": os.getenv("SNOWFLAKE_PASSWORD"),
"warehouse": os.getenv("SNOWFLAKE_WAREHOUSE"),
"warehouse": "ECOMMERCE_BRONZE_WH",
"database": "ECOMMERCE_BRONZE_DB",
"schema": "FRANKFURTER",
"role": "ECOMMERCE_ENGINEER",
Expand Down Expand Up @@ -72,7 +72,7 @@ def run():

cur = conn.cursor()
cur.execute(f"USE ROLE ECOMMERCE_ENGINEER")
cur.execute(f"USE WAREHOUSE {SNOWFLAKE_CONFIG['warehouse']}")
cur.execute(f"USE WAREHOUSE ECOMMERCE_BRONZE_WH")
cur.close()

last_date = get_last_loaded_date(conn)
Expand Down
Loading