-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Resolve MSSQL DAG serialization bug by changing datatype for execution date #11512
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
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
|
|
@alexmc-ms @aneesh-joseph @jmfreeman @mattinbits @jatskin Can you look at it? I don't have experience with MSSQL. |
|
The Workflow run is cancelling this PR. Building image for the PR has been cancelled |
|
Hey @Kaash . Can you please rebase this one to latest master. We fixed (hopefully) a problem with queues of jobs for GitHub actions and I think when you rebase, it shoudl run much faster (more info on devlist shortly). |
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.
Do we really have to drop the whole table, instead of just changing the column type?
Can you link (here, not in code) the difference between DATETIME2 and what ever sa.TIMESTAMP gives?
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.
We cannot alter column 'execution_date' because it is 'timestamp'. We're basically stuck with what we have. Bear in mind that the way this is at the moment (sa.TIMESTAMP) doesn't work with MSSQL
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.
Also, I should add that this is because SQL Server doesn't allow it. Below is the official explanation from Microsoft documentation - hope this helps.
_****ALTER COLUMN
Specifies that the named column is to be changed or altered.
The modified column can't be:
A column with a timestamp data type.****_
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.
Wat.
Cool, thanks
|
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*. |
|
Awesome work, congrats on your first merged pull request! |
Submitting a PR to resolve the below reported issue when enabling serialization with MSSQ:: #11493