Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion great_expectations/validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,14 @@ def _resolve_suite_level_graph_and_process_metric_evaluation_errors( # noqa: PL
# Report all MetricResolutionError occurrences impacting expectation and append it to rejected list. # noqa: E501 # FIXME CoP
if len(metric_exception_info) > 0:
configuration = expectation_validation_graph.configuration
# Flatten the metric_exception_info dict to get a single ExceptionInfo
# instead of a dict keyed by metric identifiers, so that exception_info
# has the expected flat structure: {raised_exception, exception_traceback,
# exception_message}. See https://github.com/great-expectations/great_expectations/issues/10849
first_exception_info = next(iter(metric_exception_info.values()))
result = ExpectationValidationResult(
success=False,
exception_info=metric_exception_info,
exception_info=first_exception_info,
expectation_config=configuration,
)
evrs.append(result)
Expand Down
Loading