Skip to content

Conversation

sgomezvillamor
Copy link
Contributor

@sgomezvillamor sgomezvillamor commented Aug 12, 2025

Summary

Adds support for Snowflake China region (cn-northwest-1) which uses the snowflakecomputing.cn domain instead of the standard snowflakecomputing.com.

Changes:

  • Added snowflake_domain configuration parameter (defaults to snowflakecomputing.com, supports snowflakecomputing.cn for China)
  • Enhanced Snowsight URL generation to support China region with app.snowflake.cn (TBC if this is really needed!)
  • Fixed AWS region cloud suffix mapping for Asia Pacific regions

Usage:

For China region customers:

source:
  type: snowflake
  config:
    account_id: "xy12345.cn-northwest-1"
    snowflake_domain: "snowflakecomputing.cn" 
    # other config...

⚠️ Note: This implementation is pending proper testing with actual China region accounts.

🤖 Generated with Claude Code

…lakecomputing.cn domain

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Aug 12, 2025
@sgomezvillamor sgomezvillamor changed the title feat(snowflake): add China region (cn-northwest-1) support feat(snowflake): add China region support Aug 12, 2025
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ahub/ingestion/source/snowflake/snowflake_utils.py 80.00% 1 Missing ⚠️

📢 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.",
Copy link
Collaborator

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?

Copy link
Contributor Author

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]>
@sgomezvillamor sgomezvillamor merged commit ea0677b into master Aug 29, 2025
60 checks passed
@sgomezvillamor sgomezvillamor deleted the feature/ing-1016/feat-snowflake-support-china-region branch August 29, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata pending-submitter-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants