Skip to content

Commit

Permalink
fix(ingest/dbt): allow custom owner types for dbt meta (#11460)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Sep 24, 2024
1 parent fe12395 commit 32c8702
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,7 @@ def meta_mapping_validator(
if v["operation"] == "add_owner":
owner_category = v["config"].get("owner_category")
if owner_category:
allowed_categories = [
value
for name, value in vars(OwnershipTypeClass).items()
if not name.startswith("_")
]
if (owner_category.upper()) not in allowed_categories:
raise ValueError(
f"Owner category {owner_category} is not one of {allowed_categories}"
)
mce_builder.validate_ownership_type(owner_category)
return meta_mapping

@validator("include_column_lineage")
Expand Down

0 comments on commit 32c8702

Please sign in to comment.