feat(snowflake): add optional warehouse support to connection#1276
feat(snowflake): add optional warehouse support to connection#1276douenergy merged 2 commits intoCanner:mainfrom
Conversation
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant DataSource
participant IbisSnowflake
Caller->>DataSource: get_snowflake_connection(info)
DataSource->>DataSource: Build connection_params dict
alt private_key auth
DataSource->>DataSource: Add private_key to params
else password auth
DataSource->>DataSource: Add password to params
end
DataSource->>DataSource: Conditionally add warehouse
DataSource->>DataSource: Merge info.kwargs
DataSource->>IbisSnowflake: connect(**connection_params)
IbisSnowflake-->>DataSource: Connection object
DataSource-->>Caller: Return connection
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
goldmedal
left a comment
There was a problem hiding this comment.
Thanks @douenergy. I have only one suggestion for the get_snowflake_connection
Co-authored-by: Jax Liu <liugs963@gmail.com>
We should not restrict users from specifying the warehouse they use. If the warehouse is None, Snowflake will use the default warehouse automatically.
Summary by CodeRabbit