Use Table FQN instead of Name for usage status (#6952)

* Use Table FQN instead of Name for status

* Update log with fqn instead of name
This commit is contained in:
Mayur Singal 2022-08-26 12:28:30 +05:30 committed by GitHub
parent bdbbca0efe
commit 6c1f84dcd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,11 +117,13 @@ class MetadataUsageBulkSink(BulkSink):
)
logger.info(
"Successfully table usage published for {}".format(
value_dict["table_entity"].name.__root__
value_dict["table_entity"].fullyQualifiedName.__root__
)
)
self.status.records_written(
"Table: {}".format(value_dict["table_entity"].name.__root__)
"Table: {}".format(
value_dict["table_entity"].fullyQualifiedName.__root__
)
)
except ValidationError as err:
logger.error(
@ -131,11 +133,13 @@ class MetadataUsageBulkSink(BulkSink):
self.status.failures.append(table_usage_request)
logger.error(
"Failed to update usage for {} {}".format(
value_dict["table_entity"].name.__root__, err
value_dict["table_entity"].fullyQualifiedName.__root__, err
)
)
self.status.failures.append(
"Table: {}".format(value_dict["table_entity"].name.__root__)
"Table: {}".format(
value_dict["table_entity"].fullyQualifiedName.__root__
)
)
def iterate_files(self):