[AIRFLOW-1700] Support conn_type overwrite when url scheme is invalid#2682
[AIRFLOW-1700] Support conn_type overwrite when url scheme is invalid#2682fenglu-db wants to merge 2 commits into
Conversation
|
@criccomini PTAL and can we also get this into 1.9.0-alpha1? |
|
Sorry, this duplicates with #2525. |
Codecov Report
@@ Coverage Diff @@
## master #2682 +/- ##
==========================================
+ Coverage 71.67% 71.68% +<.01%
==========================================
Files 154 154
Lines 11814 11814
==========================================
+ Hits 8468 8469 +1
+ Misses 3346 3345 -1
Continue to review full report at Codecov.
|
|
Ack, missed that when I searched open issues re:conn_type. Thanks for the link. @mrkm4ntr @criccomini |
|
@fenglu-g In my first commit, it was a fix like your suggestion to only add conn_type and overwrite it only if the schema is None. However, as discussed here, I changed to the current fix because it is not preferable the schema of URI to be None. Anyway, if we continue discussion any further, I think I should do it here. |
ce5ccc7 to
157ee7f
Compare
|
The discussion is moved to #2525, closing this PR now. |
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
https://issues.apache.org/jira/browse/AIRFLOW-1700
Description
When creating a new connection via airflow cli, the connection type is inferred from the conn-uri argument (i.e., conn_type = url scheme). However, for connection types like "hive_cli" and "google_cloud_platform", urlparse (by design) was unable to get the connection type as '_' is not a valid scheme character.
Tests