Skip to content

Commit

Permalink
fix(elastic): improve error handling for profiling (#8785)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Sep 5, 2023
1 parent 9f223c0 commit c38bb91
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,10 @@ def _extract_mcps(
row_count = 0
size_in_bytes = 0
for profile_info in profile_info_current:
row_count += int(profile_info["docs.count"])
size_in_bytes += int(profile_info["store.size"])
if profile_info["docs.count"] is not None:
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(
entityUrn=dataset_urn,
aspect=DatasetProfileClass(
Expand Down

0 comments on commit c38bb91

Please sign in to comment.