-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 missing pushdown_deny_usernames config to be used when use_queries_v2 #12527
feat(snowflake): add missing pushdown_deny_usernames config to be used when use_queries_v2 #12527
Conversation
…d when use_queries_v2
❌ 5 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
@@ -308,6 +308,13 @@ class SnowflakeV2Config( | |||
" assertions CLI in snowflake", | |||
) | |||
|
|||
pushdown_deny_usernames: List[str] = Field( |
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.
we should think about how we can avoid needing to specify every config twice - not sure if there's a good way to do it though
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.
While everything is possible, those refactors will be easier when we remove the code base for queries v1.
Some CI errors about kafka connect, so unrelated to this PR. Merging. |
…d when use_queries_v2 (datahub-project#12527)
…d when use_queries_v2 (datahub-project#12527)
The legacy
SnowflakeQueriesSource
inherits fromSnowflakeQueriesExtractorConfig
and so exposes the config paramdatahub/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_queries.py
Lines 113 to 115 in e2b1ed7
and then, uses it
datahub/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_queries.py
Lines 330 to 338 in e2b1ed7
However, the
SnowflakeV2Source
doesn'tdatahub/metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_config.py
Lines 182 to 190 in e2b1ed7
and so the proposal in this PR is to define the config param so it can be passed accordingly when instantiating the
SnowflakeQueriesExtractor
Checklist