jyotsa09 opened a new issue #18482:
URL: https://github.com/apache/airflow/issues/18482


   ### Apache Airflow version
   
   2.2.0b1 (beta snapshot)
   
   ### Operating System
   
   Debian buster
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   astro dev start
   Dockerfile - 
https://gist.github.com/jyotsa09/267940333ffae4d9f3a51ac19762c094#file-dockerfile
   
   ### What happened
   
   Both connection pointed to the same database where table "Person" doesn't 
exist.
   
   When there is a SQL failure in PostgressOperator then logs are saying - 
   ```
   psycopg2.errors.UndefinedTable: relation "person" does not exist
   LINE 1: Select * from Person
   ```
   
   
   When there is a SQL failure in JDBCOperator then logs are just saying -
   ```
   [2021-09-23, 19:06:22 UTC] {local_task_job.py:154} INFO - Task exited with 
return code
   ```
   
   
   
   
   
   ### What you expected to happen
   
   JDBCOperator should show "Task failed with exception" or something similar 
to Postgress.
   
   ### How to reproduce
   
   Use this dag - 
https://gist.github.com/jyotsa09/267940333ffae4d9f3a51ac19762c094 
   (Connection extras is in the gist.)
   
   ### Anything else
   
   Related: https://github.com/apache/airflow/issues/16564
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to