mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-06 04:25:20 +00:00
fixed dm column names (#13615)
This commit is contained in:
parent
858d75f9c9
commit
84a41a6fbf
@ -11,7 +11,6 @@
|
|||||||
"""PowerBI source module"""
|
"""PowerBI source module"""
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
import uuid
|
|
||||||
from typing import Any, Iterable, List, Optional, Union
|
from typing import Any, Iterable, List, Optional, Union
|
||||||
|
|
||||||
from metadata.generated.schema.api.data.createChart import CreateChartRequest
|
from metadata.generated.schema.api.data.createChart import CreateChartRequest
|
||||||
@ -348,7 +347,7 @@ class PowerbiSource(DashboardServiceSource):
|
|||||||
"dataType": ColumnTypeParser.get_column_type(
|
"dataType": ColumnTypeParser.get_column_type(
|
||||||
column.dataType if column.dataType else None
|
column.dataType if column.dataType else None
|
||||||
),
|
),
|
||||||
"name": str(uuid.uuid4()),
|
"name": column.name,
|
||||||
"displayName": column.name,
|
"displayName": column.name,
|
||||||
}
|
}
|
||||||
if column.dataType and column.dataType == DataType.ARRAY.value:
|
if column.dataType and column.dataType == DataType.ARRAY.value:
|
||||||
@ -367,7 +366,7 @@ class PowerbiSource(DashboardServiceSource):
|
|||||||
parsed_table = {
|
parsed_table = {
|
||||||
"dataTypeDisplay": "PowerBI Table",
|
"dataTypeDisplay": "PowerBI Table",
|
||||||
"dataType": DataType.TABLE,
|
"dataType": DataType.TABLE,
|
||||||
"name": str(uuid.uuid4()),
|
"name": table.name,
|
||||||
"displayName": table.name,
|
"displayName": table.name,
|
||||||
"description": table.description,
|
"description": table.description,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user