-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat(snowflake): add China region support #14434
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
feat(snowflake): add China region support #14434
Conversation
…lakecomputing.cn domain 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
@@ -110,6 +109,10 @@ class SnowflakeConnectionConfig(ConfigModel): | |||
default=None, | |||
description="OAuth token from external identity provider. Not recommended for most use cases because it will not be able to refresh once expired.", | |||
) | |||
snowflake_domain: str = pydantic.Field( | |||
default=DEFAULT_SNOWFLAKE_DOMAIN, | |||
description="Snowflake domain. Use 'snowflakecomputing.com' for most regions or 'snowflakecomputing.cn' for China (cn-northwest-1) region.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible for us to automatically figure this out from the region / account ID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered that but there are some legacy account ids without the region info. While we could likely overcome that, I think that:
- as of today, default works for most 99.99999% of users
- explicit is better than implicit, this can be opinionated though
- future-proof if snowflake adds more regions with different domains
…ain support 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Summary
Adds support for Snowflake China region (cn-northwest-1) which uses the
snowflakecomputing.cn
domain instead of the standardsnowflakecomputing.com
.Changes:
snowflake_domain
configuration parameter (defaults tosnowflakecomputing.com
, supportssnowflakecomputing.cn
for China)app.snowflake.cn
(TBC if this is really needed!)Usage:
For China region customers:
🤖 Generated with Claude Code