-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add runtime per-model warehouse config on snowflake models (#1358) #1788
Add runtime per-model warehouse config on snowflake models (#1358) #1788
Conversation
0f9eb1d
to
6748057
Compare
Add warehouse config to snowflake Add concept of adapter-level pre/post model hooks Use those hooks to optionally set a warehouse on a per-model basis Added some integration tests - one tests that the warehouse is applied by setting a bad one and failing - one that tests that overriding the warehouse to a good one is ok
6748057
to
a227b31
Compare
logging.getLogger('requests').setLevel(logging.ERROR) | ||
logging.getLogger('urllib3').setLevel(logging.ERROR) | ||
logging.getLogger('google').setLevel(logging.ERROR) | ||
logging.getLogger('snowflake.connector').setLevel(logging.ERROR) |
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.
🙌 🙏
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.
ship it
warehouse = config.get('warehouse', default_warehouse) | ||
if warehouse == default_warehouse or warehouse is None: | ||
return None | ||
previous = self._get_warehouse() |
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 like that this cost is only incurred if a non-default warehouse is specified!
Fixes #1358