-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Added azure postgres connection url format #15089
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
Conversation
|
What version of Airflow are you using? This code should not run on Airflow 1.10.14 and later.
Maybe we should add support for the airflow checkdb command to support older Airflow versions as well?http://airflow.apache.org/docs/apache-airflow/1.10.13/cli-ref.html#checkdb This command was added in Airflow 1.10.8, so it's a bit of a mature version. I would like to eliminate the source of the problem, so that it would not be necessary to make further improvements to this regular expression. |
I'm using airflow 2.0.1. without this change, the entrypoint fails saying BACKEND is not defined. |
|
in the airflow:2.0.1-python3.8 image I'm using, this line you're quoting doesn't exist, it always runs the wait_for_connection function |
|
@cccs-cat001 it is a new feature added by me. Can you copy this file to your image to check if this patch meets your requirements? |
|
Yeah I just ran with that version of the file. The |
|
I looked at it again, and this PR proposal is actually wrong. The URI you are trying to use is not correct according to URI specfication. We actually even have a detailed description about this in http://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html?highlight=uri#handling-of-special-characters-in-connection-params and we even described how to generate the connection URI properly: http://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html?highlight=uri#generating-connection-uri You are not supposed to have We MUST strictly follow the specification rather than bypass it. Read the "Reserved Characters" part of the specification. Those are the types of characters we have: Follow it further and you will see that while the user information can contain This means that in your case, if you want to use user name containing the I am closing that one as invalid - but it would be great @cccs-cat001 if you verify that the percent-encoding helps to address your problem. |
Adds back azure postgres connection info that got broke in the following commit: af5eb55
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.