fix: set Snowflake warehouse via USE WAREHOUSE query#24
Closed
Abhishek Patil (abhishek-pattern) wants to merge 3 commits intomainfrom
Closed
fix: set Snowflake warehouse via USE WAREHOUSE query#24Abhishek Patil (abhishek-pattern) wants to merge 3 commits intomainfrom
Abhishek Patil (abhishek-pattern) wants to merge 3 commits intomainfrom
Conversation
… 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 started reviewing on behalf of
Abhishek Patil (abhishek-pattern)
May 4, 2026 10:12
View session
There was a problem hiding this comment.
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
warehousefrom the MetaflowSnowflake(...)connection parameters and instead runUSE WAREHOUSE <name>after establishing the connection. - Bump package version from
0.4.1to0.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
warehouseas a Snowflake connection parameter silently fails to set it — the warehouse was never actually being appliedUSE WAREHOUSE <name>as a raw SQL query after the connection is established0.4.2Test plan
🤖 Generated with Claude Code