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/11/05 08:48:33 UTC

[GitHub] [airflow] easontm commented on issue #19397: Upgrading from 2.1.2 to 2.2.1 airflow db upgrade errors

easontm commented on issue #19397:
URL: https://github.com/apache/airflow/issues/19397#issuecomment-961720395


   I also received this error with the following mysql packages:
   ```
   apache-airflow-providers-mysql==2.1.1
   mysql-connector-python==8.0.26
   mysqlclient==2.0.3
   ```
   
   Error:
   ```
   sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (1093, "You can't specify target table 'task_instance' for update in FROM clause")
   [SQL: delete from task_instance
           where (task_id, dag_id, execution_date) IN (
               select source.task_id, source.dag_id, source.execution_date
               from task_instance as source
               left join dag_run as dr
               on (source.dag_id = dr.dag_id and source.execution_date = dr.execution_date)
               where dr.id is null
           )
       ]
   ```


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