Title
#beginners-need-help
r

RRoger

02/12/2022, 4:56 AM
In the data validation hooks example (https://kedro.readthedocs.io/en/stable/07_extend_kedro/02_hooks.html#add-data-validation), the
DATASET_EXPECTATION_MAPPING
is defined in the class itself:
class DataValidationHooks:

    # Map expectation to dataset
    DATASET_EXPECTATION_MAPPING = {
        "companies": "raw_companies_dataset_expectation",
        "preprocessed_companies": "preprocessed_companies_dataset_expectation",
    }
    ...
Is it possible to define this in the parameters yml?
before_node_run
and
after_node_run
doesn't seem to pass in the
context
.