airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yu Ishikawa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1330) Connection.parse_from_uri doesn't work for google_cloud_platform and so on
Date Thu, 17 Aug 2017 06:42:02 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-1330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130013#comment-16130013
] 

Yu Ishikawa commented on AIRFLOW-1330:
--------------------------------------

Good point. I think we should consider backwards compatibility. We can offer both of the following
types to expose options for a connection type, host and port.

{noformat}
airflow connections --add --conn_id --conn_url mysql://fake-host:3306

airflow connections --add --conn_id --conn_type mysql --conn_host fake-host --conn_port 3306
{noformat}

> Connection.parse_from_uri doesn't work for google_cloud_platform and so on
> --------------------------------------------------------------------------
>
>                 Key: AIRFLOW-1330
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1330
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: cli
>            Reporter: Yu Ishikawa
>
> h2. Overview
> {{Connection.parse_from_uri}} doesn't work for some types like {{google_cloud_platform}}
whose type name includes under scores. Since `urllib.parse.urlparse()` which is used in {{Connection.parse_from_url}}
doesn't support a schema name which include under scores.
> So, airflow's CLI doesn't work when a given connection URI includes under scores like
{{google_cloud_platform://XXXXX}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message