-
Notifications
You must be signed in to change notification settings - Fork 16.4k
AIP-83 Restore uniqueness constraint on logical date and make logical date nullable #46232
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
Closed
vatsrahul1001
wants to merge
20
commits into
apache:main
from
astronomer:restore-unique-constraint-logical-date
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d0e22ad
restore unique constraint on logical date and make it nullable
vatsrahul1001 2b11aed
restore unique constraint on logical date and make it nullable
vatsrahul1001 237360d
fix migration file
vatsrahul1001 6f423c1
Merge branch 'main' into restore-unique-constraint-logical-date
vatsrahul1001 18efafb
fix migration file
vatsrahul1001 8f9e076
Merge branch 'restore-unique-constraint-logical-date' of github.com:a…
vatsrahul1001 1c47c75
Merge branch 'main' into restore-unique-constraint-logical-date
vatsrahul1001 d3bfe20
Merge branch 'main' of github.com:astronomer/airflow into restore-uni…
vatsrahul1001 0fa2477
Merge branch 'restore-unique-constraint-logical-date' of github.com:a…
vatsrahul1001 75a684a
fixing tests
vatsrahul1001 53d329b
resolve conflict
vatsrahul1001 c3e29c7
remove default date from logical date in dag run model
vatsrahul1001 0830d58
Merge branch 'main' of github.com:astronomer/airflow into restore-uni…
vatsrahul1001 2b4251d
fix task_filter
vatsrahul1001 3ec1ecd
merge main
vatsrahul1001 5680a76
Merge branch 'main' into restore-unique-constraint-logical-date
vatsrahul1001 16cd717
Merge branch 'main' into restore-unique-constraint-logical-date
vatsrahul1001 7d6c9f4
fix tests
vatsrahul1001 02a82a0
Merge branch 'restore-unique-constraint-logical-date' of github.com:a…
vatsrahul1001 83b62bb
implement review comments
vatsrahul1001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 232f2f252ce0d3889fa5a9ceb00c88788e12083a6ea0c155c74d3fe61ad02412 | ||
| 76818a684a0e05c1fd3ecee6c74b204c9a8d59b22966c62ba08089312fbd6ff4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hmm, this shouldn’t need to be changed. How does this fail originally?
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.
@uranusjr When we pass the
drobject to create_dagrun_after, it fails with a unique constraint error on the dag_run table. In dag_maker, we set logical_date to start_date if it's None here, and we are passing the same logical_date in create_dagrun_after due to which it fails.