Skip to content

Commit

Permalink
Merge pull request #968 from DalgoT4D/967-elementary-profile-for-bq-d…
Browse files Browse the repository at this point in the history
…oesnt-containschema

copy `dataset` to `schema`
  • Loading branch information
fatchat authored Feb 16, 2025
2 parents 1e05932 + 570617c commit c77cfb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ddpui/ddpdbt/elementary_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ def create_elementary_profile(org: Org):
logger.info("read dbt profile from %s", dbt_profile_file)

target = elementary_profile["elementary"].get("target", "default")
if elementary_profile["elementary"]["outputs"][target]["type"] == "bigquery":
elementary_profile["elementary"]["outputs"][target]["schema"] = elementary_profile[
"elementary"
]["outputs"][target]["dataset"]
elementary_schema = elementary_profile["elementary"]["outputs"][target]["schema"]
elementary_profile["elementary"]["outputs"][target] = dbt_profile[dbt_profile_name]["outputs"][
dbt_profiles_target
Expand Down

0 comments on commit c77cfb7

Please sign in to comment.