-
Notifications
You must be signed in to change notification settings - Fork 54
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
Issue in connecting the GX operator with Snowflake data #87
Comments
The above issue occur in the latest version of the great-expectations-operator too:
|
#84 should have closed this issue - can you please confirm you're using the operator version 0.2.4? |
@Bowrna can you confirm this is still an issue with the newest version? Thanks |
@denimalpaca this issue is persisting in the version I have verified it again |
I have verified the code in this link https://github.com/astronomer/airflow-provider-great-expectations/blob/main/great_expectations_provider/operators/great_expectations.py#L253-L266
in latest version of airflow, self.conn.extra_dejson dict doesn't have the key "extra__snowflake__account". so the above code starts to throw error. We could handle it by changing the code like below
|
I think that code should throw and error when no account is specified; do you think the wrong error is being thrown? The key error Are you unable to use the operator because of the current behavior? |
As Tamara noted... snowflake connector changed in 4.0.2: https://airflow.apache.org/docs/apache-airflow-providers-snowflake/stable/index.html#id2. Will post a PR here shortly. |
Yes, i am unable to use the operator because of the current behavior. I had to run the snowflake query in separate task and pass the result to the GX operator rather than passing the snowflake query directly to GX operator |
PR for this #95 |
* Update great_expectations.py * Update great_expectations.py * Update great_expectations.py * Update great_expectations.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
thanks @denimalpaca |
Hi @Bowrna I just released version 0.2.5 with this fix. Will close the issue! |
I am currently using the following version:
airflow-provider-great-expectations==0.2.0
I am trying to run Great Expectations operator and pass the snowflake connection id and execute the query.
My code throws out the following error trace:
On logging the conn in Airflow using the below code:
Reference issue at airflow side:
apache/airflow#26764
The text was updated successfully, but these errors were encountered: