Skip to content

Commit

Permalink
update path of the seed file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishankoradia committed Feb 14, 2025
1 parent 1ecb93c commit 8bd3870
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ddpui/dbt_automation/seeds/seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import argparse
import os
import json
from pathlib import Path
from logging import basicConfig, getLogger, INFO
from google.cloud import bigquery
from dotenv import load_dotenv
from ddpui.dbt_automation.utils.warehouseclient import get_client
from ddpui.dbt_automation import seeds


basicConfig(level=INFO)
Expand All @@ -21,7 +23,10 @@
load_dotenv("dbconnection.env")

for json_file, tablename in zip(
["seeds/sample_sheet1.json", "seeds/sample_sheet2.json"],
[
os.path.join(os.path.abspath(seeds.__file__), "..", "sample_sheet1.json"),
os.path.join(os.path.abspath(seeds.__file__), "..", "sample_sheet2.json"),
],
["_airbyte_raw_Sheet1", "_airbyte_raw_Sheet2"],
):
logger.info("seeding %s into %s", json_file, tablename)
Expand Down

0 comments on commit 8bd3870

Please sign in to comment.