mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
fix(GreatExpections): AssertionRunEventClass does not match the examp… (#8243)
This commit is contained in:
parent
addf76c849
commit
0def0e5a2e
@ -317,9 +317,11 @@ class DataHubValidationAction(ValidationAction):
|
||||
type=AssertionResultType.SUCCESS
|
||||
if success
|
||||
else AssertionResultType.FAILURE,
|
||||
rowCount=result.get("element_count"),
|
||||
missingCount=result.get("missing_count"),
|
||||
unexpectedCount=result.get("unexpected_count"),
|
||||
rowCount=parse_int_or_default(result.get("element_count")),
|
||||
missingCount=parse_int_or_default(result.get("missing_count")),
|
||||
unexpectedCount=parse_int_or_default(
|
||||
result.get("unexpected_count")
|
||||
),
|
||||
actualAggValue=actualAggValue,
|
||||
externalUrl=docs_link,
|
||||
nativeResults=nativeResults,
|
||||
@ -699,6 +701,13 @@ class DataHubValidationAction(ValidationAction):
|
||||
return None
|
||||
|
||||
|
||||
def parse_int_or_default(value, default_value=None):
|
||||
if value is None:
|
||||
return default_value
|
||||
else:
|
||||
return int(value)
|
||||
|
||||
|
||||
def make_dataset_urn_from_sqlalchemy_uri(
|
||||
sqlalchemy_uri,
|
||||
schema_name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user