-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(ingest/snowflake) - Fixing snowflake url with default region #9443
fix(ingest/snowflake) - Fixing snowflake url with default region #9443
Conversation
@@ -82,7 +82,7 @@ def create_snowsight_base_url( | |||
if privatelink: | |||
url = f"https://app.{account_locator}.{cloud_region_id}.privatelink.snowflakecomputing.com/" | |||
elif cloud == SNOWFLAKE_DEFAULT_CLOUD: | |||
url = f"https://app.snowflake.com/{cloud_region_id}/{account_locator}/" | |||
url = f"https://app.snowflake.com/{cloud_region_id}.{SNOWFLAKE_DEFAULT_CLOUD}/{account_locator}/" |
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.
It looks like - there is some peculiar behavior in snowflake when it comes to "aws". Please see - https://docs.snowflake.com/en/user-guide/admin-account-identifier#non-vps-account-locator-formats-by-cloud-platform-and-region
.aws
is not added in account identifier for some cloud regions in aws - namely - us-west-2, us-east-1, eu-west-1, eu-central-1, ap-southeast-1, ap-southeast-2
. We would need to not append .aws
for these regions.
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.
thanks, I updated based on this
url_cloud_provider_suffix = f".{cloud}" | ||
|
||
if cloud == SnowflakeCloudProvider.AWS: | ||
if cloud_region_id in [ |
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.
Can we please extract these regions list as a constant and mark this constant with the snowflake link -> from where we figured out these ?
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.
lgtm
One lint issue, and also the
|
Fix mssql sqlalchemy python 3.7 deprecation with the latest driver
The airflow test failures are unrelated and will be fixed by #9434 |
Checklist