We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cb854 commit b10218fCopy full SHA for b10218f
data_utils/datahub_source.py
@@ -47,7 +47,15 @@ def get_table_name(self, urn):
47
urn, aspect_type=DatasetPropertiesClass
48
)
49
if dataset_properties:
50
- return dataset_properties.get("name", None)
+ database_info = dataset_properties.get("customProperties", {}).get(
51
+ "dbt_unique_id", ""
52
+ )
53
+ if database_info:
54
+ database_info = database_info.split(".")[-2]
55
+ else:
56
+ database_info = ""
57
+ table_info = dataset_properties.get("name", None)
58
+ return database_info + "." + table_info
59
return None
60
61
def get_table_description(self, urn):
0 commit comments