-
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
feat(ingest): update snowflake docs, add simple validations #6636
feat(ingest): update snowflake docs, add simple validations #6636
Conversation
"role": "sysadmin", | ||
} | ||
) | ||
excinfo.value == f"Please remove trailing {SNOWFLAKE_HOST_SUFFIX} from `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.
why can't we just do this automatically?
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.
+1
@@ -41,6 +41,8 @@ | |||
"OAUTH_AUTHENTICATOR": OAUTH_AUTHENTICATOR, | |||
} | |||
|
|||
SNOWFLAKE_HOST_SUFFIX = ".snowflakecomputing.com" |
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.
nice refactor!
else: | ||
if account_id.endswith(SNOWFLAKE_HOST_SUFFIX): | ||
raise ValueError( | ||
f"Please remove trailing {SNOWFLAKE_HOST_SUFFIX} from `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.
Why don't we just do this for them? same as here? host_port = remove_suffix(host_port, SNOWFLAKE_HOST_SUFFIX)
remember, we should really avoid failing.
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.
got it. will change that.
c6ba081
to
5fba301
Compare
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
Checklist