Skip to content
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

Catch ProgrammingError raised by MSSQL which doesn't know JSON_VALID() #8385

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Catch ProgrammingError raised by MSSQL which doesn't know JSON_VALID() #8385

merged 1 commit into from
Apr 16, 2020

Conversation

BasPH
Copy link
Contributor

@BasPH BasPH commented Apr 15, 2020

Similar to #6920, this PR catches a ProgrammingError during migration of the rendered_task_instance_fields table, which will be raised by MSSQL because it doesn't know JSON_VALID().

Not sure if to test this, since Airflow doesn't actively support MSSQL and doesn't test it in the CI.

Note: this table was added in Airflow 1.10.10. Anybody installing Airflow 1.10.10 backed by MSSQL will encounter this error.


Make sure to mark the boxes below before creating PR: [x]


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@kaxil kaxil added this to the Airflow 1.10.11 milestone Apr 16, 2020
@kaxil kaxil merged commit a160886 into apache:master Apr 16, 2020
@BasPH BasPH deleted the catch_programmingerror branch April 17, 2020 06:43
kaxil pushed a commit that referenced this pull request Jun 16, 2020
(cherry picked from commit a160886)
potiuk pushed a commit that referenced this pull request Jun 29, 2020
(cherry picked from commit a160886)
@kaxil kaxil added the type:bug-fix Changelog: Bug Fixes label Jul 1, 2020
kaxil pushed a commit that referenced this pull request Jul 1, 2020
(cherry picked from commit a160886)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
(cherry picked from commit a160886)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants