fixed dm column names (#13615)

This commit is contained in:
Onkar Ravgan 2023-10-17 21:31:00 +05:30 committed by GitHub
parent 858d75f9c9
commit 84a41a6fbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
} }