Include complete result_format and unexpected_index_column_names in datadocs #7090
Unanswered
spencervoorend
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to get the full result_format and the unexpected_index_column_names to show up in the data docs for false expectations with similar data to when the validator.expectation is ran?
I've tried a few different attempts with no success.
`checkpoint_config: dict = {
"class_name": "Checkpoint",
"validations": [
{
"batch_request": wdir_batch_request,
"expectation_suite_name": expectation_suite_name
}
],
"runtime_configuration": {
"result_format": {
"result_format": "COMPLETE",
"unexpected_index_column_names": ['timestamp_utc', 'equipment_id', 'locationid'],
"return_unexpected_index_query": True,
}
}
}
checkpoint = SimpleCheckpoint(
f"{validator.active_batch_definition.data_asset_name}_{expectation_suite_name}",
context,
**checkpoint_config
)
checkpoint_result = checkpoint.run(result_format= {
"result_format": "COMPLETE",
"unexpected_index_column_names": ['timestamp_utc', 'equipment_id', 'locationid'],
"return_unexpected_index_query": True,
})
context.build_data_docs()
validation_result_identifier = checkpoint_result.list_validation_result_identifiers()[0]
context.open_data_docs(resource_identifier=validation_result_identifier)`
Beta Was this translation helpful? Give feedback.
All reactions