diff --git a/ingestion/src/metadata/ingestion/source/dashboard/metabase/metadata.py b/ingestion/src/metadata/ingestion/source/dashboard/metabase/metadata.py index 42a1e062258..f78fc15e603 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/metabase/metadata.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/metabase/metadata.py @@ -148,7 +148,7 @@ class MetabaseSource(DashboardServiceSource): f"{replace_special_with(raw=dashboard_details.name.lower(), replacement='-')}" ) dashboard_request = CreateDashboardRequest( - name=EntityName(dashboard_details.id), + name=EntityName(str(dashboard_details.id)), sourceUrl=SourceUrl(dashboard_url), displayName=dashboard_details.name, description=Markdown(dashboard_details.description) diff --git a/ingestion/src/metadata/ingestion/source/dashboard/metabase/models.py b/ingestion/src/metadata/ingestion/source/dashboard/metabase/models.py index 5b791eada4f..c720fb0e412 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/metabase/models.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/metabase/models.py @@ -33,7 +33,7 @@ class MetabaseCollection(BaseModel): """ name: str - id: str + id: int class MetabaseDashboardList(BaseModel): diff --git a/ingestion/src/metadata/ingestion/source/dashboard/redash/metadata.py b/ingestion/src/metadata/ingestion/source/dashboard/redash/metadata.py index 56efb094a8e..c37c0efe76b 100644 --- a/ingestion/src/metadata/ingestion/source/dashboard/redash/metadata.py +++ b/ingestion/src/metadata/ingestion/source/dashboard/redash/metadata.py @@ -158,7 +158,7 @@ class RedashSource(DashboardServiceSource): dashboard_description = widgets.get("text") dashboard_request = CreateDashboardRequest( - name=EntityName(dashboard_details["id"]), + name=EntityName(str(dashboard_details["id"])), displayName=dashboard_details.get("name"), description=Markdown(dashboard_description) if dashboard_description @@ -274,7 +274,7 @@ class RedashSource(DashboardServiceSource): continue yield Either( right=CreateChartRequest( - name=EntityName(widgets["id"]), + name=EntityName(str(widgets["id"])), displayName=chart_display_name if visualization and visualization["query"] else "", diff --git a/ingestion/src/metadata/ingestion/source/database/dbt/metadata.py b/ingestion/src/metadata/ingestion/source/database/dbt/metadata.py index 4fcc458e116..fb1b8b812a2 100644 --- a/ingestion/src/metadata/ingestion/source/database/dbt/metadata.py +++ b/ingestion/src/metadata/ingestion/source/database/dbt/metadata.py @@ -446,7 +446,7 @@ class DbtSource(DbtServiceSource): if dbt_raw_query else None, # SQL Is a required param for the DataModel - sql=SqlQuery(dbt_compiled_query or dbt_raw_query), + sql=SqlQuery(dbt_compiled_query or dbt_raw_query or ""), columns=self.parse_data_model_columns( manifest_node, catalog_node ),