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

ASF subversion and git services commented on AIRFLOW-3189:
----------------------------------------------------------

Commit fcbd9c47c4c4753d70ec0e33c1958b10e24f56b7 in airflow's branch 
refs/heads/v1-10-test from zuku1985
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=fcbd9c4 ]

[AIRFLOW-3189] Remove schema from get_uri response if None (#6833)

"None" was appended to uri if schema=None. Check was added if
schema is None.

(cherry picked from commit e3bd2a2283c2448c988f621c9ce26c8786417953)


> DbAPI get_uri returns invalid uri if schema is None
> ---------------------------------------------------
>
>                 Key: AIRFLOW-3189
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3189
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks
>    Affects Versions: 1.10.0
>            Reporter: Thomas Haederle
>            Assignee: Tomasz Żukowski
>            Priority: Minor
>             Fix For: 1.10.7
>
>
> the current implementation of get_uri attaches the schema name to the URI 
> even if no schema was specified.
> This leads to errors in downstream functions such as returning an invalid 
> sqlalchemy engine.
> we should add a simple check, such when the schema is None, it should not be 
> appended to the URI.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to