mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-22 07:28:46 +00:00
fix(elastic): improve error handling for profiling (#8785)
This commit is contained in:
parent
9f223c0069
commit
c38bb91519
@ -553,8 +553,10 @@ class ElasticsearchSource(Source):
|
|||||||
row_count = 0
|
row_count = 0
|
||||||
size_in_bytes = 0
|
size_in_bytes = 0
|
||||||
for profile_info in profile_info_current:
|
for profile_info in profile_info_current:
|
||||||
row_count += int(profile_info["docs.count"])
|
if profile_info["docs.count"] is not None:
|
||||||
size_in_bytes += int(profile_info["store.size"])
|
row_count += int(profile_info["docs.count"])
|
||||||
|
if profile_info["store.size"] is not None:
|
||||||
|
size_in_bytes += int(profile_info["store.size"])
|
||||||
yield MetadataChangeProposalWrapper(
|
yield MetadataChangeProposalWrapper(
|
||||||
entityUrn=dataset_urn,
|
entityUrn=dataset_urn,
|
||||||
aspect=DatasetProfileClass(
|
aspect=DatasetProfileClass(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user