-
Notifications
You must be signed in to change notification settings - Fork 43
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
Check if connection is minio then set use_native_support=False #1767
Conversation
Codecov ReportBase: 92.62% // Head: 93.05% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1767 +/- ##
==========================================
+ Coverage 92.62% 93.05% +0.42%
==========================================
Files 93 93
Lines 4923 4937 +14
Branches 484 486 +2
==========================================
+ Hits 4560 4594 +34
+ Misses 265 248 -17
+ Partials 98 95 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@sunank200 can you please offer more context in the PR template as to what this PR is doing and why we are doing it? Maybe a bit on how it solves this bug? |
sure @dimberman This PR is still in draft but I have updated the PR description |
0fdb9cb
to
60b3d14
Compare
# Description ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> When the user passes the s3 url but has minio as the setup, for minio to any database transfers by default it uses the native path and fails as there is no native path. There is no direct way to check if the connection is of type minio. Introducing a parameter `minio` in extras as part of connections would help to recognize the connection type <!-- Issues are required for both bug fixes and features. Reference it using one of the following: closes: #ISSUE related: #ISSUE --> closes: #1746 ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Check if the AWS connection has `minio` in `extra` then set use_native_support=False - Example minio conn: ``` - conn_id: minio_conn conn_type: aws description: null extra: aws_access_key_id: "dummy" aws_secret_access_key: "dummy" endpoint_url: "http://127.0.0.1:9000" minio: True ``` ## Does this introduce a breaking change? No ### Checklist - [x] Created tests which fail without the change (if possible) - [x] Extended the README / documentation, if necessary --------- Co-authored-by: utkarsh sharma <utkarsharma2@gmail.com>
Description
What is the current behavior?
When the user passes the s3 url but has minio as the setup, for minio to any database transfers by default it uses the native path and fails as there is no native path. There is no direct way to check if the connection is of type minio. Introducing a parameter
minio
in extras as part of connections would help to recognize the connection typecloses: #1746
What is the new behavior?
minio
inextra
then set use_native_support=FalseDoes this introduce a breaking change?
No
Checklist