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

Checkout "as of" a specific time #382

Open
rabernat opened this issue Nov 8, 2024 · 2 comments
Open

Checkout "as of" a specific time #382

rabernat opened this issue Nov 8, 2024 · 2 comments
Labels
enhancement ✨ New feature or request good first issue 🐣 Good for newcomers

Comments

@rabernat
Copy link
Contributor

rabernat commented Nov 8, 2024

Some users may want the ability to "audit" the state of their data at a particular time in the past. To support this, we should implement the following syntax:

repo.checkout(branch="main", asof=datetime(2024, 11, 2))

This would be implemented by filtering snapshots based on time to find the correct snapshot ID.

@rabernat rabernat added enhancement ✨ New feature or request good first issue 🐣 Good for newcomers labels Nov 8, 2024
@paraseba
Copy link
Contributor

paraseba commented Nov 8, 2024

There is also #273 , I'd like to have something like repo.checkout("main~4").

@rabernat
Copy link
Contributor Author

Here's how this works in SQL with Delta tables: https://docs.delta.io/latest/delta-batch.html#sql-as-of-syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request good first issue 🐣 Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants