-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dag run type enum query for mysqldb driver #13278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
Why didn't mysql unit tests fail before? |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
@ashb because when running the tests, run_type are being written as string All existing 1.x mysql users using mysqlclient driver will run into this issue after performing the 2.0 upgrade. New 2.0 mysql users might already have db populated with I will prepare a test case to guard against this regression going forward. |
b447218
to
7fc819d
Compare
Oooh. Fuuu. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(can't seem to comment without leaving a review anymore on Android app)
Not good :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised that this slipped in alpha/beta and rcs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
Just rebased, let's merge this one once it passes CI |
By default sqlalchemy pass query params as is to db dialect drivers for query execution. This causes inconsistent behavior of query param evaluation between different db drivers. For example, MySQLdb will convert `DagRunType.SCHEDULED` to string `'DagRunType.SCHEDULED'` instead of string `'scheduled'`. see #11621 for relevant discussions. (cherry picked from commit 53e8283)
By default sqlalchemy pass query params as is to db dialect drivers for query execution. This causes inconsistent behavior of query param evaluation between different db drivers. For example, MySQLdb will convert `DagRunType.SCHEDULED` to string `'DagRunType.SCHEDULED'` instead of string `'scheduled'`. see #11621 for relevant discussions. (cherry picked from commit 53e8283)
By default sqlalchemy pass query params as is to db dialect drivers for query execution. This causes inconsistent behavior of query param evaluation between different db drivers. For example, MySQLdb will convert `DagRunType.SCHEDULED` to string `'DagRunType.SCHEDULED'` instead of string `'scheduled'`. see apache#11621 for relevant discussions. (cherry picked from commit 53e8283) (cherry picked from commit 4b1a6f7)
same as apache#13278 but for `DagRunState` introduced in apache#16854 closes apache#17879
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 (cherry picked from commit a3f9c690aa80d12ff1d5c42eaaff4fced07b9429) GitOrigin-RevId: 66dcbf429aee0316e206a1d6ded089580fc94ddf
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
By default sqlalchemy pass query params as is to db dialect drivers for
query execution. This causes inconsistent behavior of query param
evaluation between different db drivers. For example, MySQLdb will
convert
DagRunType.SCHEDULED
to string'DagRunType.SCHEDULED'
instead of string
'scheduled'
.To keep the behavior consistent across DB dialects, this patch
introduces a new enum aware sqlalchemy type based of
sqlalchemy.types.String to do the query param conversion within
sqlalchemy's ORM layer before passing the value down to individual DB
driver.
see #11621 for relevant
discussions.