adp.delivery.rollback.get_version_to_rollback_to
- adp.delivery.rollback.get_version_to_rollback_to(path: str, rollback_datetime: datetime) int | None
get_version_to_rollback_to returns the version to rollback to
If no version can be determined, -1 is returned. This will truncate the table later.
Examples
>>> get_version_to_rollback_to(path='path', rollback_datetime=datetime.now())
- Parameters:
path (str) – The path to the table. This path is the Delta table path (3 part name)
rollback_datetime (datetime) – The date to rollback to