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 2020/12/23 21:39:03 UTC

[GitHub] [airflow] houqp commented on pull request #13278: fix dag run type enum query for mysqldb driver

houqp commented on pull request #13278:
URL: https://github.com/apache/airflow/pull/13278#issuecomment-750483833


   @ashb because when running the tests, run_type are being written as string `'DagRunType.SCHEDULED'` into the db, so when it's queried using the same value, tests passed. We ran into this issue during upgrade because all of our old db rows has the column populated as string `scheduled`, which lead to crashes due to queries returning empty result.
   
   All existing mysql users using mysqlclient driver will run into this issue after performing the upgrade. New 2.0 mysql users might already have db populated with `'DagRunType.SCHEDULED'`, which needs manual fix up.
   
   I will prepare a test case to guard against this regression going forward.


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