[AIRFLOW-4462] MSSQL backend broken #5241
[AIRFLOW-4462] MSSQL backend broken #5241deodeveloper wants to merge 1 commit intoapache:v1-10-stablefrom
Conversation
|
@deodeveloper You have some flake8 errors: Does this also fixes https://issues.apache.org/jira/browse/AIRFLOW-1987 ? |
|
@OmerJog Not sure what causing the travis ci build failure, it looks like one of the docker run is failing without any response. My changes are not related to the build failure. Can you please suggest how to deal with travis docker build failure? |
…d trigger doesn't always work on mssql(azure mssql, mssql 2017, other versions) * fix mssql server as airflow backend. Applies only to sql server 2005 later versions and azure sql db. Issue is with execution_date used as primary key in task_instance and a equality comparison column in dag_run. When comparing equality python microsecond precision to sql server, it returns false when the millisecond is non-zero,e.g, 2019-04-20T18:51:35.033. This change will make the execution_date from datetime to datetime(precision=6) matches with mysql precision. The date equality comparision works as desired. Microsoft also recommends to use datetime2. Without this fix, airflow is not usable in sql server and azure sql server db.
|
I think you should create your PR against Master and not against v1-10-stable |
|
Yep. It should be base on master @OmerJog @deodeveloper |
I created a pull request against the master branch. pull request #5255 (#5255) |
Without this fix, airflow is not usable in sql server and azure sql server db.
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8