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 2021/06/18 21:27:50 UTC

[GitHub] [airflow] LukeHong opened a new issue #16520: DbApiHook.get_uri() doesn't follow PostgresHook schema argument

LukeHong opened a new issue #16520:
URL: https://github.com/apache/airflow/issues/16520


   **Apache Airflow version**:
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   `get_uri()` and `get_sqlalchemy_engine()` had not been implemented in PostgresHook.
   
   When using `PostgresHook('CONNECTION_NAME', schema='another_schema').get_sqlalchemy_engine()` that will still use connection default schema setting through `get_uri()`, instead of schema that is assigned to `PostgresHook()`.
   
   **What you expected to happen**:
   `get_uri()` should follow schema in PostgresHook.
   
   **How to reproduce it**:
   `PostgresHook('CONNECTION_NAME', schema='another_schema'). get_uri()`
   
   **Anything else we need to know**:
   
   


-- 
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.

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



[GitHub] [airflow] xinbinhuang closed issue #16520: DbApiHook.get_uri() doesn't follow PostgresHook schema argument

Posted by GitBox <gi...@apache.org>.
xinbinhuang closed issue #16520:
URL: https://github.com/apache/airflow/issues/16520


   


-- 
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.

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #16520: DbApiHook.get_uri() doesn't follow PostgresHook schema argument

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #16520:
URL: https://github.com/apache/airflow/issues/16520#issuecomment-863730660


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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.

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