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

Testing feature to set instance TTL "from" date #50445

Open
jobosk opened this issue Jun 1, 2023 · 3 comments
Open

Testing feature to set instance TTL "from" date #50445

jobosk opened this issue Jun 1, 2023 · 3 comments
Labels

Comments

@jobosk
Copy link

jobosk commented Jun 1, 2023

Use case

I have a very old tests with data that has dates from a specific point in time (let's say mid 2000).
I want to start using TTL settings to ensure my data is never more than 10 old.
We're in 2023, so my old tests will blow up immediately.
I don't want to update my tests to change the dates, specially if I have to do this over the years.
I don't want to set an incredibly large (and fake) TTL to avoid this behaviour.

Describe the solution you'd like

I would love to have a configuration (testing-only) feature when setting up my clickhouse instance, that allows me to set the date used to evaluate the TTL, to a fixed point in time.

@jobosk jobosk added the feature label Jun 1, 2023
@jobosk jobosk changed the title Fixed time for testing TTL settings with invariable data sets Change instance datetime to test TTL settings with old and invariable data sets Jun 2, 2023
@jobosk jobosk changed the title Change instance datetime to test TTL settings with old and invariable data sets Testing feature to set instance TTL "from" date Jun 20, 2023
@jobosk
Copy link
Author

jobosk commented Jun 20, 2023

Maybe I'm missing something... Can anyone tell me how's everyone else making their tests when using TTL in their tables?

@den-crane
Copy link
Contributor

den-crane commented Jun 20, 2023

My containers run with something like CMD ["date", "-s", "2000-01-01 00:00:00"]
obviously it's problem if SSL is needed

@den-crane
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants