Repository: incubator-airflow Updated Branches: refs/heads/v1-9-test 40a936b67 -> 9e209bf30
[AIRFLOW-1706] Fix query error for MSSQL backend MSSQL doesn't support key word 'is' as synonym for '=' Closes #2733 from patsak/fix/illegal_query_for_mssql (cherry picked from commit c800632bb40882d06344be1ebe0022e0a50ff121) Signed-off-by: Bolke de Bruin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/9e209bf3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/9e209bf3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/9e209bf3 Branch: refs/heads/v1-9-test Commit: 9e209bf301e5f16da6535e3acd828cab9c3e1bb7 Parents: 40a936b Author: k.privezentsev <[email protected]> Authored: Mon Oct 30 20:06:41 2017 +0100 Committer: Bolke de Bruin <[email protected]> Committed: Mon Oct 30 20:07:25 2017 +0100 ---------------------------------------------------------------------- airflow/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/9e209bf3/airflow/jobs.py ---------------------------------------------------------------------- diff --git a/airflow/jobs.py b/airflow/jobs.py index 3da1128..584bde0 100644 --- a/airflow/jobs.py +++ b/airflow/jobs.py @@ -241,7 +241,7 @@ class BaseJob(Base, LoggingMixin): TI.execution_date == DR.execution_date)) .filter( DR.state == State.RUNNING, - DR.external_trigger.is_(False), + DR.external_trigger == False, DR.run_id.notlike(BackfillJob.ID_PREFIX + '%'), TI.state.in_(resettable_states))).all() else:
