Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use checkpoint_kwargs with conn_id #143

Open
Rmjp opened this issue May 7, 2024 · 0 comments
Open

Can't use checkpoint_kwargs with conn_id #143

Rmjp opened this issue May 7, 2024 · 0 comments

Comments

@Rmjp
Copy link

Rmjp commented May 7, 2024

When I add checkpoint_kwargs to my code it error. But if I delete checkpoint_kwargs the task can run success.
This is my code:

GreatExpectationsOperator(
        task_id="task_1234",
        data_context_root_dir="/opt/airflow/plugins/gx/",
        conn_id="postgres",
        schema="public",
        data_asset_name="table",
        query_to_validate=query_sql,
        expectation_suite_name="sample_suite",
        checkpoint_kwargs={
            "action_list":[],
        },
        return_json_dict=True,
        dag=dag,
    )

ERROR:

File "/home/airflow/.local/lib/python3.12/site-packages/great_expectations/checkpoint/checkpoint.py", line 282, in run
    raise gx_exceptions.CheckpointError(
great_expectations.exceptions.exceptions.CheckpointError: Checkpoint "table.sample_suite.chk" must be called with a validator or contain either a batch_request or validations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant