GreatExpectationsOperator

Great Expectations

An operator to leverage Great Expectations as a task in your Airflow DAG.

View Source

Last Updated: Mar. 26, 2021

Access Instructions

Install the Great Expectations provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

run_nameOptional[str]Identifies the validation run (defaults to timestamp if not specified)
data_context_root_dirstrPath of the great_expectations directory
data_contexdictA great_expectations DataContext object
expectation_suite_namestrThe name of the Expectation Suite to use for validation
batch_kwargsdictThe batch_kwargs to use for validation
assets_to_validateiterableA list of dictionaries of batch_kwargs + Expectation Suites to use for validation
checkpoint_namestrA Checkpoint name to use for validation
fail_task_on_validation_failureFail the Airflow task if the Great Expectation validation fails
validation_operator_nameOptional[str]name of a Great Expectations validation operator, defaults to action_list_operator

Documentation

An operator to leverage Great Expectations as a task in your Airflow DAG.

Was this page helpful?