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

Create Python API for Delta restore command #890

Closed
Maks-D opened this issue Jan 11, 2022 · 0 comments
Closed

Create Python API for Delta restore command #890

Maks-D opened this issue Jan 11, 2022 · 0 comments
Labels
acknowledged This issue has been read and acknowledged by Delta admins enhancement New feature or request

Comments

@Maks-D
Copy link
Contributor

Maks-D commented Jan 11, 2022

Create Python API for delta restore command (similar to restoreToVersion and restoreToTimestamp in Scala)

Will be unblocked after merging #863

@scottsand-db scottsand-db added acknowledged This issue has been read and acknowledged by Delta admins enhancement New feature or request labels Jan 12, 2022
Maks-D pushed a commit to Maks-D/delta that referenced this issue Jan 22, 2022
…\moving

 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```
 * Remove unnecessary caching of filesToRemove in RestoreTableCommand
 * Move RestoreTableCommand to org.apache.spark.sql.delta.commands

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>
Maks-D pushed a commit to Maks-D/delta that referenced this issue Jan 22, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```
 * Remove unnecessary caching of filesToRemove in RestoreTableCommand
 * Move RestoreTableCommand to org.apache.spark.sql.delta.commands

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>
Maks-D pushed a commit to Maks-D/delta that referenced this issue Jan 22, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```
 * Remove unnecessary caching of filesToRemove in RestoreTableCommand
 * Move RestoreTableCommand to org.apache.spark.sql.delta.commands

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>
Maks-D pushed a commit to Maks-D/delta that referenced this issue Jan 22, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```
 * Remove unnecessary caching of filesToRemove in RestoreTableCommand
 * Move RestoreTableCommand to org.apache.spark.sql.delta.commands

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>
Maks-D pushed a commit to Maks-D/delta that referenced this issue Jan 26, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>
allisonport-db pushed a commit that referenced this issue Feb 4, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```

Tested by unit tests.

Fixes #890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>

Closes #903

Signed-off-by: Venki Korukanti <venki.korukanti@databricks.com>
GitOrigin-RevId: 8ca6a3643d97b1a95ebf3a48edcb23f4f2adb6f4
jbguerraz pushed a commit to jbguerraz/delta that referenced this issue Jul 6, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```

Tested by unit tests.

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>

Closes delta-io#903

Signed-off-by: Venki Korukanti <venki.korukanti@databricks.com>
GitOrigin-RevId: 8ca6a3643d97b1a95ebf3a48edcb23f4f2adb6f4
jbguerraz pushed a commit to jbguerraz/delta that referenced this issue Jul 6, 2022
 * Add possibility to restore delta table using version or timestamp from pyspark
   Examples:
   ```
   DeltaTable.forPath(spark, path).restoreToVersion(0)
   DeltaTable.forPath(spark, path).restoreToTimestamp('2021-01-01 01:01-01')
   ```

Tested by unit tests.

Fixes delta-io#890

Signed-off-by: Maksym Dovhal <maksym.dovhal@gmail.com>

Closes delta-io#903

Signed-off-by: Venki Korukanti <venki.korukanti@databricks.com>
GitOrigin-RevId: 8ca6a3643d97b1a95ebf3a48edcb23f4f2adb6f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged This issue has been read and acknowledged by Delta admins enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants