Skip to content

Add tests to test whether snowflake sql API handles invalid JSON #52118

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

AryanK1511
Copy link
Contributor

@AryanK1511 AryanK1511 commented Jun 23, 2025

closes: #52079. The original issue reported that the Snowflake SQL API codebase attempted to fetch JSON without raising for status, which could result in failures if an error occurred and the JSON was invalid. However, upon closer inspection, I found that this problem was actually addressed about five days ago in PR #51463 (which closed #50514). So, this issue was indirectly fixed.

However, there were no tests to confirm the fix. In this PR, I’ve added two test cases, one for the async and one for the sync API call in the hook. Both tests are passing, which validates that the change works as expected.


@boring-cyborg boring-cyborg bot added area:providers provider:snowflake Issues related to Snowflake provider labels Jun 23, 2025
Copy link
Contributor

@rawwar rawwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eladkal eladkal merged commit 7c74b2a into apache:main Jun 24, 2025
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:snowflake Issues related to Snowflake provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SnowflakeSqlApiOperator fails with JSONDecode at times Enhance Snowflake SQL API Hook with Retry Logic for Query Status Polling
4 participants