Skip to content

Conversation

@MikeWallis42
Copy link
Contributor

Fixes #3500

Prior to this, as they have the same default value, if only 1 is used and then changed that would not result in a new data_hash and therefor would not be considered a breaking change when planning.

I'm fully aware that this may need a migration script, please let me know if so as I might need some assistance.

def test_pydantic_import_error() -> None:
class TestConfig(DuckDBConnectionConfig):
pass
TestConfig.model_rebuild()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to fix a local issue here but didn't completely fix it.


start_time, end_time = (
make_inclusive(start or c.EPOCH, end or c.EPOCH, self._dialect)
make_inclusive(start or c.EPOCH, end or c.EPOCH + timedelta(days=1), self._dialect)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is the only place where we use epoch as a placeholder. I wonder whether we should instead have 3 constants:

START_PLACEHOLDER END_PLACEHOLDER EXECUTION_TIME_PLACEHOLDER 

and use these instead throughout.

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

Labels

None yet

2 participants