Chetan Joshi
03/30/2023, 1:10 AMlogRetentionDuration
for our delta table. Could someone advise on fetching this property using Python or Java? Thanks!
We tried the following but “detail” method is not available in 2.0.1 it seem:
DeltaTable deltaTable = DeltaTable.forPath(spark, pathToTable);
DataFrame detailDF = deltaTable.detail();
Jim Hibbard
03/30/2023, 6:40 AMspark.sql("DESCRIBE DETAIL delta.`path\to\delta\table\path`").show(truncate=False)
The property should be under the properties
column. Hope that helps!Chetan Joshi
04/03/2023, 9:21 PMlogRetentionDuration
value too. Any advice for this?Jim Hibbard
04/04/2023, 2:26 AMChetan Joshi
04/06/2023, 9:45 PMSakthivel B
04/12/2023, 11:22 PMdelta.logRetentionDuration = "interval <interval>"
delta.deletedFileRetentionDuration = "interval <interval>"
What is sql command or API to use, can someone point to the documentation.
though I am on Delta 2.0.1, I tried testing with 2.0.1 - I am able to see the detail()
-RECORD 0-----------------------------------------------------------
format | delta
id | 20ac2aac-b288-43b5-b98d-15442be9748f
name | null
description | null
createdAt | 2023-03-19 08:38:51.615
lastModified | 2023-03-19 14:50:59.891
numFiles | 112
sizeInBytes | 1144080
properties | {}
minReaderVersion | 1
minWriterVersion | 2
What is the method on DeltaTable object to update properties
Tristen
04/13/2023, 11:48 AMSakthivel B
04/13/2023, 1:51 PM