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

Fix TypeError in SnowflakeConnector.fetch_all #16511

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Fix TypeError in SnowflakeConnector.fetch_all #16511

merged 1 commit into from
Dec 26, 2024

Conversation

zzstoatzz
Copy link
Collaborator

@zzstoatzz zzstoatzz commented Dec 26, 2024

closes #16110

The fetch_all method was failing with TypeError: 'NoneType' object is not an iterator because it was trying to fetch results before executing the query. This fix ensures the query is executed on the cursor before attempting to fetch results.

@github-actions github-actions bot added the bug Something isn't working label Dec 26, 2024
@zzstoatzz zzstoatzz added integrations Related to integrations with other services fix A fix for a bug in an existing feature labels Dec 26, 2024
@zzstoatzz zzstoatzz changed the title fix fetch_all Fix fetch_all to execute query before calling fetchall Dec 26, 2024
@zzstoatzz zzstoatzz changed the title Fix fetch_all to execute query before calling fetchall Fix TypeError in SnowflakeConnector.fetch_all Dec 26, 2024
@zzstoatzz zzstoatzz marked this pull request as ready for review December 26, 2024 16:55
@zzstoatzz zzstoatzz merged commit 05cb591 into main Dec 26, 2024
17 checks passed
@zzstoatzz zzstoatzz deleted the fix-16110 branch December 26, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix A fix for a bug in an existing feature integrations Related to integrations with other services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError when using SnowflakeConnector fetchall()
2 participants