You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/27 20:09:36 UTC

[GitHub] [airflow] mtilda commented on issue #25317: `postgres://` vs `postgresql://` inconsistency

mtilda commented on issue #25317:
URL: https://github.com/apache/airflow/issues/25317#issuecomment-1197313881

   @dstandish I don't quite follow your explanation...
   
   Can you justify the behavior of this code?
   ```py
   from airflow.models.connection import Connection
   
   conn = Connection(uri="postgresql://")
   print(conn.get_uri())
   ```
   Output:
   ```
   postgres://
   ```
   
   ---
   
   It is my understanding that the class `Connection` should be completely agnostic to the system the connection is for (i.e. SQLAlchemy). Why would there be a hardcoded mutation of the `conn_id`?
   
   Let's assume I'm not using SQLAlchemy, rather some other system that requires the URI to start with `postgresql://`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org