Skip to content

Conversation

@uranusjr
Copy link
Member

The column has also been renamed to logical_date, although the Python model is not changed. This allows us to not need to fix all the Python code at once (we'll do that later), but still do the two changes in one migration instead of two.

Note that this one is not breaking—the metadatabase interface is not user-facing, we’re only removing a check that stopped impossible things.

@uranusjr uranusjr added the AIP-83 Remove Execution Date Unique Constraint from DAG Run label Aug 28, 2024
@uranusjr uranusjr force-pushed the remove-execution-date branch from 5282e03 to c14aff3 Compare August 28, 2024 09:38
Copy link
Collaborator

@sunank200 sunank200 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the tests has to change as well

@uranusjr
Copy link
Member Author

uranusjr commented Sep 4, 2024

Fixed. If this passes, I think it can be merged first.

@uranusjr uranusjr force-pushed the remove-execution-date branch 2 times, most recently from 2181c46 to b28fa5a Compare September 4, 2024 06:31
@uranusjr uranusjr force-pushed the remove-execution-date branch from d87ad4a to 5145387 Compare September 4, 2024 07:10
Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn’t breaking change but might be worth mentioning in Towncrier notes as a note-worthy change if someone is using combination of dag_id & execution_date to retrieve DagRuns

The column has also been renamed to logical_date, although the Python
model is not changed. This allows us to not need to fix all the Python
code at once (we'll do that later), but still do the two changes in one
migration instead of two.
This seems to affect SQLite.
This seems to work with SQLite. Alembic is stupid...
@uranusjr uranusjr force-pushed the remove-execution-date branch from aadab74 to 8d52673 Compare September 4, 2024 11:15
@uranusjr
Copy link
Member Author

uranusjr commented Sep 4, 2024

I think it is more appropriate to attach the news fragment on the next PR that will rename the attribute on DagRun instead. That one is the actual breaking change most people will notice.

This PR only affects the SQL layer, not Python. Having separate fragments for changes in each layer will likely be a bit confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-83 Remove Execution Date Unique Constraint from DAG Run area:db-migrations PRs with DB migration kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants