mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
Fixed superset excp (#14447)
This commit is contained in:
parent
ffe4aa319f
commit
841fd9cfe7
@ -193,7 +193,7 @@ class SupersetAPISource(SupersetSourceMixin):
|
||||
for chart_id in self._get_charts_of_dashboard(dashboard_details):
|
||||
try:
|
||||
chart_json = self.all_charts.get(chart_id)
|
||||
if not chart_json:
|
||||
if not chart_json or not chart_json.datasource_id:
|
||||
logger.warning(
|
||||
f"chart details for id: {chart_id} not found, skipped"
|
||||
)
|
||||
|
@ -215,7 +215,7 @@ class SupersetDBSource(SupersetSourceMixin):
|
||||
if self.source_config.includeDataModels:
|
||||
for chart_id in self._get_charts_of_dashboard(dashboard_details):
|
||||
chart_json = self.all_charts.get(chart_id)
|
||||
if not chart_json:
|
||||
if not chart_json or not chart_json.datasource_id:
|
||||
logger.warning(
|
||||
f"chart details for id: {chart_id} not found, skipped"
|
||||
)
|
||||
|
@ -230,7 +230,7 @@ class SupersetSourceMixin(DashboardServiceSource):
|
||||
name=field.id,
|
||||
displayName=field.column_name,
|
||||
description=field.description,
|
||||
dataLength=col_parse.get("dataLength", 0),
|
||||
dataLength=int(col_parse.get("dataLength", 0)),
|
||||
)
|
||||
datasource_columns.append(parsed_fields)
|
||||
except Exception as exc:
|
||||
|
Loading…
x
Reference in New Issue
Block a user