Skip to content

fix: set Snowflake warehouse via USE WAREHOUSE query#24

Closed
Abhishek Patil (abhishek-pattern) wants to merge 3 commits intomainfrom
fix/snowflake-warehouse-set
Closed

fix: set Snowflake warehouse via USE WAREHOUSE query#24
Abhishek Patil (abhishek-pattern) wants to merge 3 commits intomainfrom
fix/snowflake-warehouse-set

Conversation

@abhishek-pattern
Copy link
Copy Markdown
Contributor

@abhishek-pattern Abhishek Patil (abhishek-pattern) commented May 4, 2026

Summary

  • Passing warehouse as a Snowflake connection parameter silently fails to set it — the warehouse was never actually being applied
  • Fixed by executing USE WAREHOUSE <name> as a raw SQL query after the connection is established
  • Bumps version to 0.4.2

Test plan

  • Verify Snowflake queries run against the correct warehouse after the connection is created
  • Confirm no regression in existing Snowflake connection flows

🤖 Generated with Claude Code

… to 0.4.2

Passing warehouse in Snowflake connection parameters silently fails to set it.
Switched to executing USE WAREHOUSE as a raw query after connection is established.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 4, 2026 10:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes Snowflake warehouse selection in Metaflow connections by applying the warehouse after connection creation, since passing warehouse as a connection parameter was not taking effect.

Changes:

  • Remove warehouse from the Metaflow Snowflake(...) connection parameters and instead run USE WAREHOUSE <name> after establishing the connection.
  • Bump package version from 0.4.1 to 0.4.2 (including lockfile update).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/ds_platform_utils/metaflow/snowflake_connection.py Sets Snowflake warehouse via an explicit USE WAREHOUSE command after connecting.
pyproject.toml Bumps project version to 0.4.2.
uv.lock Updates lockfile to reflect the new package version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ds_platform_utils/metaflow/snowflake_connection.py
Comment thread src/ds_platform_utils/metaflow/snowflake_connection.py Outdated
Comment thread src/ds_platform_utils/metaflow/snowflake_connection.py Outdated
@abhishek-pattern Abhishek Patil (abhishek-pattern) deleted the fix/snowflake-warehouse-set branch May 4, 2026 10:27
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.

2 participants