Skip to content

fix: Handle empty query in execute_snowflake_statement#6249

Open
jials wants to merge 1 commit intofeast-dev:masterfrom
jials:fix/empty-snowflake-query
Open

fix: Handle empty query in execute_snowflake_statement#6249
jials wants to merge 1 commit intofeast-dev:masterfrom
jials:fix/empty-snowflake-query

Conversation

@jials
Copy link
Copy Markdown

@jials jials commented Apr 9, 2026

What this PR does / why we need it:

Adds an early return in execute_snowflake_statement when the query string is empty or whitespace-only. Previously, passing an empty query would attempt to execute it against Snowflake, resulting in error. Now it returns a cursor without executing.

Which issue(s) this PR fixes:

Fixes #5204

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Misc


Open with Devin

@jials jials requested a review from a team as a code owner April 9, 2026 02:56
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@jials jials force-pushed the fix/empty-snowflake-query branch from 5c4ea01 to 22c94b0 Compare April 9, 2026 03:30
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

Successfully merging this pull request may close these issues.

Snowflake Registry does not work

1 participant